cgexplore.scram.TopologyCode¶
- class cgexplore.scram.TopologyCode(idx, vertex_map)[source]¶
Bases:
objectNaming convention for topology graphs.
Methods
True if the graph contains "double-walls".
True if the graph contains "1-loops".
True if the graph contains cycles of size x.
Convert TopologyCode to string of the vertex map.
Convert TopologyCode to a graph.
Take a graph and generate a layout from graph vertex positions.
Get the number of connected components.
Convert TopologyCode to a networkx graph.
Convert TopologyCode to a graph.
Attributes
- contains_xs(x)[source]¶
True if the graph contains cycles of size x.
Important
Warning: This does not currently handle repeated cycles, inverse cycles and shifted cycles.