Commit 911da7e
committed
fix(gen): move perfect graph generators before default handling
- Move ptolemaic, modular, quasi-line checks earlier in generateBaseStructure
- Prevents these exact structures from being overridden by default connectivity handling
- Add perfect graph variants to hasExactStructure to prevent density edge additions
- Fixes root cause: ptolemaic generator creating paths, then generateDisconnectedEdges adding cycles
- Modular and quasi-line generators also benefit from this fix
This ensures graph class generators produce correct, unmolested structures.1 parent 989acf2 commit 911da7e
2 files changed
Lines changed: 23 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
503 | 521 | | |
504 | 522 | | |
505 | 523 | | |
| |||
573 | 591 | | |
574 | 592 | | |
575 | 593 | | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | 594 | | |
591 | 595 | | |
592 | 596 | | |
| |||
0 commit comments