Layered graph drawing approach to minimize cable crossings: - Layer assignment via BFS from external connectors (J*, TP*, P*) - Barycenter ordering (forward + backward sweep) within each layer - Connection orientation: earlier connector always on the left - Pin reordering: weighted average neighbor position groups pins by destination, reducing within-connector crossings - Connection sorting: shorter (adjacent-pair) connections first Fixes from Apollo safety review: - Explicit ValueError on pin remapping failures (was silent KeyError) - Weighted pin averaging for star topology (GND shared across modules) - Fully deterministic sort keys for reproducible output - Documented closure capture pattern in loop sort keys |
||
|---|---|---|
| .. | ||
| fixtures | ||
| __init__.py | ||
| test_cli.py | ||
| test_filter.py | ||
| test_inter_module.py | ||
| test_netlist_parser.py | ||
| test_roundtrip.py | ||
| test_single_module.py | ||
| test_yaml_emitter.py | ||