Handle compound medial tires in cut labelling

This commit is contained in:
2026-06-15 21:46:56 -04:00
parent 37a7ff0b00
commit 1e8bee04ce
5 changed files with 296 additions and 110 deletions
@@ -812,7 +812,10 @@ def run(args: argparse.Namespace):
out_dir.mkdir(parents=True, exist_ok=True)
if args.graph6:
graphs = [nx.from_graph6_bytes(args.graph6.encode())]
graph = nx.from_graph6_bytes(args.graph6.encode())
if nx.node_connectivity(graph) < 5:
raise ValueError("--graph6 graph must be 5-connected")
graphs = [graph]
if args.source is None:
raise ValueError("--source is required with --graph6")
sources = [args.source]