passagemath-rankwidth provides functions for computing rankwidth and rank decompositions of graphs using the rw library. Part of the passagemath ecosystem. Current version: 10.8.4, released as part of passagemath 10.8. Release cadence follows passagemath releases (roughly 2-3 per year).
pip install passagemath-rankwidthNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compute the rankwidth of the Petersen graph using the rw algorithm.
Use 'from passagemath.graphs.rankwidth import rankwidth' instead.
Install the rw library (e.g., on Debian/Ubuntu: apt-get install rw) or set algorithm='cunningham' for a pure Python implementation.
Use algorithm='cunningham' instead of algorithm='exact'.
Access the rankwidth as the first element, and the decomposition as the second.