Feature for the rank-width graph decomposition¶
- class sage.features.rankwidth.RankWidth(*args, **kwds)[source]¶
Bases:
JoinFeatureA
Featureindicating 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.rankwidthis 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)