Feature for the rank-width graph decomposition

class sage.features.rankwidth.RankWidth(*args, **kwds)[source]

Bases: JoinFeature

A Feature indicating whether or not the rank-width graph decomposition is available.

This is a proxy for the build-time availability of the rankwidth (librw) library from the “rw” package; the associated module sage.graphs.graph_decompositions.rankwidth is built if and only if the library is detected, usable, and enabled.

EXAMPLES:

sage: from sage.features.rankwidth import RankWidth
sage: RankWidth().is_present()  # needs rankwidth
FeatureTestResult('rankwidth', True)
sage: RankWidth().is_present()  # needs !rankwidth
FeatureTestResult('sage.graphs.graph_decompositions.rankwidth', False)
sage.features.rankwidth.all_features()[source]