Registry / data / passagemath-plantri

passagemath-plantri

JSON →
library10.8.4pypypiunverified

A Python interface to plantri and fullgen for generating planar triangulations, cubic planar graphs, and other planar graph families. Part of the passagemath ecosystem. Current version 10.8.4, requires Python 3.11-3.14. Releases follow passagemath release cycle.

pip install passagemath-plantri
INSTALL
IMPORT
SIG · PASSAGEMATH-PLANTR
P
passagemath-plantri
datapythonv10.8.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

planar_triangulations
from passagemath_plantri import planar_triangulations
from passagemath.plantri import planar_triangulations

Generate all planar triangulations on 6 vertices (2 connected, 3-connected) and print each as graph6 string.

from passagemath.plantri import planar_triangulations for g in planar_triangulations(6): print(g.graph6_string())
Debug
Known issues
gotchaThe `plantri` and `fullgen` binaries must be installed separately (e.g., via system package manager or by downloading from plantri website) and placed in PATH. Wrapper does NOT bundle them.
fix
Install plantri binary (e.g., 'sudo apt install plantri' on Debian/Ubuntu, or download from https://users.cecs.anu.edu.au/~bdm/plantri/)
affects: all
deprecatedPassing integer arguments directly to plantri functions (e.g., planar_triangulations(6)) is deprecated. Use PlantriOptions class instead.
fix
Use PlantriOptions(n=6, ...) and pass to functions
affects: >=10.8
breakingBefore passagemath 10.0, the library was named 'plantri' on PyPI and imported as 'import plantri'. Now it's 'passagemath-plantri' and imported from passagemath.plantri.
fix
Update imports: from passagemath.plantri import ...
affects: >=10.0
gotchaGenerated graphs are passagemath Graph objects, not networkx or igraph. Use .graph6_string() or adjacency_matrix() to convert.
fix
Use methods like g.graph6_string() or g.to_networkx() if passagemath-networkx installed
affects: all
Upgrade
Version history
10.8.4latest on PyPI · released Apr 20, 2026
Audit
Dependencies
passagemath-corerequiredBase library providing graph objects and caching infrastructure
plantrioptionalThird-party binary (plantri/fullgen) must be available in PATH or configured
Agent activity
2 hits · last 30 days
node
2
Resources
passagemath-plantri — pip install passagemath-plantri · libregistry