BSD Ports

math/py-grandalf 0.8_1 DragonFly

Graph experimentation and drawing algorithms framework

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
graphics, math, python
Package size
73.7 KiB, 449.3 KiB installed

Description

Grandalf is a python package made for experimentations with graphs and drawing algorithms. It is written in pure python, and implements two layouts: the Sugiyama hierarchical layout and the force-driven or energy minimization approach. While not as fast or featured as _graphviz_ or other libraries like _OGDF_ (C++), _GDToolkit_ (C), _tulip_ (Java), it provides a way to draw and navigate graphs no larger than thousands of nodes, while keeping the source code simple enough to make it possible to easily tweak and hack any part of it for experimental purpose. With a total of about 1500 lines of python, the code involved in drawing the Sugiyama (dot) layout fits in less than 600 lines. The energy minimization approach is comprised of only 250 lines!

Grandalf does only two not-so-simple things: * computing the nodes (x,y) coordinates (based on provided nodes dimensions, and a chosen layout) * routing the edges with lines or nurbs

In the other systems

SystemPortVersion
DragonFlymath/py-grandalf0.8_1
FreeBSDmath/py-grandalf0.8_1
MidnightBSDmath/py-grandalf0.8_1
HardenedBSDmath/py-grandalf0.8_1
GhostBSDmath/py-grandalf0.8_1

Install

Binary package:

pkg install py311-grandalf

From DPorts:

cd /usr/dports/math/py-grandalf && make install clean

Dependencies

Run dependencies 2
Required by 1

Configuration

No options to configure.

Service scripts
none

Message after installing

===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

Depends on expired devel/py-pytest-runner.

It is scheduled to be removed on or after 2025-03-31.