Main-flow handle first (next/bottom), then branch handles.
(handle: string | undefined)
| 404 | |
| 405 | /** Main-flow handle first (next/bottom), then branch handles. */ |
| 406 | function nextFlowPriority(handle: string | undefined): number { |
| 407 | if (handle === undefined || handle === 'next' || handle === 'bottom' || handle === '') return 0; |
| 408 | return 1; |
| 409 | } |
| 410 | |
| 411 | /** |
| 412 | * BFS order with "next" (main flow) edge first at each node. First column is strictly |