Registry / database / passagemath-planarity

passagemath-planarity

JSON →
library10.8.4pypypiunverified

Wraps the edge addition planarity suite for graph planarity testing and embedding in passagemath. Version 10.8.4, requires Python >=3.11, <3.15. Part of the passagemath ecosystem. Release cadence follows passagemath.

pip install passagemath-planarity
INSTALL
IMPORT
SIG · PASSAGEMATH-PLANAR
P
passagemath-planarity
databasepythonv10.8.4
Install
11.3s avg
Import
Disk
368MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v10.6.48 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 13.7s
py 3.11
✓ —
✓ 8.4s
py 3.12
✓ —
✓ 8.1s
py 3.13
✕ build_error
✕ build_error
py 3.9
✓ —
✓ 15s
368MB installed
● package 368MB
Code
Verified usage

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

planarity
from sage.graphs.planarity import planarity
from passagemath.planarity import planarity

Quick example showing planarity test and planar embedding extraction.

from passagemath.planarity import planarity # Test planarity of a graph given as adjacency list # Graph: triangle with an extra isolated vertex adj = {0: [1,2], 1: [0,2], 2: [0,1], 3: []} result = planarity.is_planar(adj) print(result) # True # Get a planar embedding try: embedding = planarity.planar_embedding(adj) print(embedding) except Exception as e: print(e)
Debug
Known issues
gotchaThe library is part of the passagemath ecosystem. Do not import 'planarity' directly; always use 'from passagemath.planarity import planarity'.
fix
Use the correct import path: from passagemath.planarity import planarity
affects: >=10.8
deprecatedSome older examples use 'passagemath.planarity.planarity' (duplicated module name). This still works but is redundant; the canonical import is 'from passagemath.planarity import planarity'.
fix
Use the recommended import: from passagemath.planarity import planarity
affects: 10.8.x
gotchaRequires Python >=3.11, <3.15. Installing on Python 3.15+ will fail.
fix
Use a Python version from 3.11 to 3.14.
affects: 10.8.4
Upgrade
Version history
10.8.4latest on PyPI · released Apr 20, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources