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-plantriNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Generate all planar triangulations on 6 vertices (2 connected, 3-connected) and print each as graph6 string.
Install plantri binary (e.g., 'sudo apt install plantri' on Debian/Ubuntu, or download from https://users.cecs.anu.edu.au/~bdm/plantri/)
Use PlantriOptions(n=6, ...) and pass to functions
Update imports: from passagemath.plantri import ...
Use methods like g.graph6_string() or g.to_networkx() if passagemath-networkx installed