Cycles
cycles
Import-cycle detection for the move pipeline.
GraphEdits
dataclass
Edge additions and removals to apply to an import graph.
Source code in packages/axm-anvil/src/axm_anvil/core/cycles.py
cycles(graph)
Return SCCs of size > 1 plus self-loops.
Source code in packages/axm-anvil/src/axm_anvil/core/cycles.py
| Python | |
|---|---|
detect_new_cycle(graph, edits)
Apply edits to a copy of graph and return the first newly
introduced cycle, or None if the edits do not create any new cycle.
Pre-existing cycles (already present in graph) are ignored.