$npx skillfedfor your agent

grandalf

Graph and drawing algorithms framework

With conditionsPyPI GraphicsReleased Jan 20232.8M downloads / moGPLv2 | EPLv1Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — grandalf-0.8-py3-none-any.whl
v0.8 · released 2023-01-10 · 1 runtime deps: pyparsing

Yes, if you need graph layout coordinates for experimental or small-scale work and want to control rendering separately. The low install friction and copyleft license are straightforward. However, dormant maintenance (last release January 2023) means you should not expect bug fixes or updates; use it only if the current feature set meets your needs and you are comfortable maintaining a fork if required.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction: pure Python with only pyparsing as a runtime dependency, distributed as a wheel.
  • Dormant maintenance status—last release was 2023-01-10 and no commits since 2024-08-10—means bug fixes or feature updates are unlikely, though the codebase is small and stable.

License · maintenance · safety

GPLv2 | EPLv1 (copyleft) — Dual-licensed under GPLv2 and EPLv1 (copyleft). Any derivative work or distribution must comply with copyleft terms; proprietary or closed-source projects may face licensing constraints.

last release 2023-01-10 (1312 days) · last repo commit 2024-08-10 · 268 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,833,940 downloads/mo, #2,870 on PyPI

Verify before relying

pip install grandalf

from grandalf.graphs import Graph, Vertex, Edge
from grandalf.layouts import SugiyamaLayout

v1, v2 = Vertex('a'), Vertex('b')
g = Graph()
g.add_vertices(v1, v2)
g.add_edge(Edge(v1, v2))
layout = SugiyamaLayout(g)
layout.compute_layout()
print(v1.x, v1.y)  # Node coordinates
  • Whether the package works reliably with modern Python versions (requires_python is unspecified in metadata).
  • Performance characteristics for graphs approaching the 'thousands of nodes' upper bound mentioned in the description.
Same gist for agents: .md · .json

What it is and what it does

Grandalf is a pure-Python graph layout library that solves the geometric problem of positioning nodes and routing edges for visualization. It implements two layout strategies: Sugiyama (hierarchical/dot-style) and force-driven (energy minimization), each designed to be simple enough to read and modify. The library does not handle rendering—it computes coordinates and edge paths, leaving the actual drawing to your choice of graphics toolkit (matplotlib, Qt, GTK, etc.).

The package is intentionally lightweight (about 1500 lines total, with individual algorithms under 600 lines) and trades speed for simplicity and hackability. It targets experimental work and small-to-medium graphs rather than production-scale visualization. With only pyparsing as a runtime dependency and no graphics toolkit requirement, it integrates easily into headless or custom rendering pipelines.

Use it for

  • Compute node positions for a hierarchical flowchart or organizational chart, then render with your preferred graphics library.
  • Prototype a force-directed graph layout algorithm by modifying the energy minimization code directly.
  • Generate graph coordinates in a headless environment (server, CLI tool) without requiring a display or graphics toolkit.
  • Integrate graph layout into a custom visualization pipeline where you control rendering separately from layout.
  • Experiment with graph drawing algorithms in a small, readable codebase without the overhead of heavyweight libraries.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need graph layout coordinates for experimental or small-scale work and want to control rendering separately.

The low install friction and copyleft license are straightforward. However, dormant maintenance (last release January 2023) means you should not expect bug fixes or updates; use it only if the current feature set meets your needs and you are comfortable maintaining a fork if required.

Install

grandalf on PyPI

Before you install

Low friction: pure Python with only pyparsing as a runtime dependency, distributed as a wheel. Dormant maintenance status—last release was 2023-01-10 and no commits since 2024-08-10—means bug fixes or feature updates are unlikely, though the codebase is small and stable.

License in practice

Dual-licensed under GPLv2 and EPLv1 (copyleft). Any derivative work or distribution must comply with copyleft terms; proprietary or closed-source projects may face licensing constraints.

Quickstart

pip install grandalf

from grandalf.graphs import Graph, Vertex, Edge
from grandalf.layouts import SugiyamaLayout

v1, v2 = Vertex('a'), Vertex('b')
g = Graph()
g.add_vertices(v1, v2)
g.add_edge(Edge(v1, v2))
layout = SugiyamaLayout(g)
layout.compute_layout()
print(v1.x, v1.y)  # Node coordinates

Verify before relying

  • Whether the package works reliably with modern Python versions (requires_python is unspecified in metadata).
  • Performance characteristics for graphs approaching the 'thousands of nodes' upper bound mentioned in the description.

Package facts

LicenseGPLv2 | EPLv1 copyleft
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pyparsing
MaintenanceDormant 1,312 days since the last release
Last repo commit
First released
Downloads2,833,940 / month, #2,870 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v2 (GPLv2)Programming Language :: Python :: 3

Evidence: grandalf-0.8-py3-none-any.whl

Tags

Capabilities
graph layout algorithmsnode coordinate computationhierarchical graph drawingforce-directed graph layoutedge routing for graphssugiyama layout implementationgraph visualization coordinates
Topics
graph-layoutvisualization-geometryexperimental-algorithms
PyPI keywords
graphdrawingsgraphviznetworkx

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “graph layout algorithms”

  • grandalfGrandalf computes node coordinates and routes edges for graph layouts…
  • pygraphvizPyGraphviz provides a Python interface to Graphviz, enabling you to…
  • planarityTests whether a graph is planar, computes planar embeddings, draws…

Give your agent the search over MCP, or paste the wish link into any chat.

More Graphics packages

pillow Worth it
PyPI · Graphics · released Jul 2026

Pillow adds image processing capabilities to Python, providing file format support, efficient pixel data handling, and image manipulation operations.

Install it if you need to work with images in Python—it is the de facto standard for this task.

MIT-CMUcompiled wheel · 3.10+
547.1Mdownloads / mo
fonttools Worth it
PyPI · Text Processing · released May 2026

fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.

Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.

permissive licensepure Python · 3.10+
235.9Mdownloads / mo
matplotlib-inline Worth it
PyPI · Graphics · released May 2026

Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.

BSD-3-Clausepure Python · 3.9+
130.5Mdownloads / mo
pymupdf Worth it
PyPI · Libraries · released Aug 2026

PyMuPDF extracts, renders, converts, and manipulates PDF and other document formats (XPS, EPUB, images, Office files via Pro) with high performance, providing text, tables, images, and metadata with precise layout information.

The AGPL license requires careful review if you are building proprietary software—commercial licensing is available from Artifex.

AGPLcompiled wheel · 3.10+
114.9Mdownloads / mo
pypdfium2 Worth it
PyPI · Libraries · released Aug 2026

pypdfium2 is a Python binding to PDFium that enables PDF rendering, inspection, manipulation, and creation through a ctypes interface to Google's PDFium library.

Install it if you need PDF rendering, inspection, or manipulation in Python; the medium install friction is offset by comprehensive platform support.

permissive licensecompiled wheel · 3.6+
76.9Mdownloads / mo
altair Worth it
PyPI · Graphics · released Jun 2026

Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.

BSD-3-Clausepure Python · 3.10+
54.5Mdownloads / mo

See also streamlit-agraph · planarity · pygraphviz · graphframes · graspologic · asciidag · graphviz · altgraph · GvGen · squarify