remove_loops#
- remove_loops(k)#
Remove all loops (arcs whose endpoints share the same node).
Operates in place.
- Parameters:
k (PlanarDiagram) – Diagram to modify.
- Returns:
The number of removed loops.
- Return type:
int
Remove all loops (arcs whose endpoints share the same node).
Operates in place.
k (PlanarDiagram) – Diagram to modify.
The number of removed loops.
int