neighbour_sequence#
- neighbour_sequence(k: PlanarDiagram, node) tuple #
Computes the neighbor sequence for a given node in a PlanarDiagram.
- Args:
k (PlanarDiagram): The PlanarDiagram object containing nodes and edges. node: Starting node for which the neighbor sequence is computed.
- Returns:
- tuple: A tuple where each element represents the size of a neighbor
layer in the sequence, starting from the initial node.