cgexplore.scram.ConfiguredCode

class cgexplore.scram.ConfiguredCode(topology_code, configuration)[source]

Bases: object

Naming convention for topology codes with configurations.

Parameters:
  • topology_code (TopologyCode) – The graph connecting the nodes.

  • configuration (Configuration) – The symmetry, or arrangement of different nodes on the graph.

Methods

get_graph

Convert TopologyCode and Configuration to rx graph.

is_isomorphic

Check if two configured codes are isomorphic.

Attributes

get_graph()[source]

Convert TopologyCode and Configuration to rx graph.

Return type:

PyGraph

is_isomorphic(other_configured_code)[source]

Check if two configured codes are isomorphic.

Parameters:

other_configured_code (Self)

Return type:

bool

configuration: Configuration
topology_code: TopologyCode