rydiqule.sensor_utils.coupling_subgraph

rydiqule.sensor_utils.coupling_subgraph(coupling: Tuple[int | str | Tuple[float, ...] | List[int | str | Tuple[float, ...]] | Tuple[float | List[float], ...], int | str | Tuple[float, ...] | List[int | str | Tuple[float, ...]] | Tuple[float | List[float], ...]], coupling_graph: Graph) Graph[source]

Returns a subgraph view of the couplings_graph corresponding to coupling.

Parameters:
  • coupling (StateSpecs) – Coupling specification

  • coupling_graph (networkx.Graph) – Couplings graph to make the subgraph from

Returns:

View of the corresponding subgraph

Return type:

networkx.classes.graph.Graph