TopologyDiagram.sequences

TopologyDiagram.sequences(keys=False)[source]

Iterate over all the sequences in the topology diagram in ascending order.

Parameters:

keys (bool, optional) – Defaults to False.

Yields:

sequence (Tuple[int] or Tuple[int, Tuple[int]]) – The next sequence if keys is False. Otherwise, a tuple with the sequence key and the corresponding node keys.