Commit 612728b
committed
fix(gen): prioritize tree generator over planar for acyclic graphs
When both planar and acyclic constraints specified, the tree generator
must take precedence. Tree constraint (m = n-1) is stricter than planar
(m ≤ 3n-6).
Changes:
- Skip planar generation when cycles.kind === 'acyclic'
- Trees are always planar, so fall through to Phase 1 tree generator1 parent bd9cd5d commit 612728b
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
355 | 357 | | |
356 | 358 | | |
357 | 359 | | |
358 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
359 | 368 | | |
360 | 369 | | |
361 | 370 | | |
| |||
0 commit comments