Repository navigation
Tighten TALA hierarchy spacing and stabilize branches and labels - #3025
Merged
Merged
Conversation
- sent from alixander's Codex
- sent from alixander's Codex
…he layout extent - sent from alixander's Codex
- sent from alixander's Codex
- sent from alixander's Codex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human
AI
TALA now tries a tighter hierarchy using the winning seed, then compares the completed routes. It preserves padding inside containers, removes the outer row allowance in the compact candidate, and can shorten an unlabeled rank boundary crossed by one edge segment. A smaller candidate must improve the layout score and preserve the crossing, obstruction, node-overlap and text-occlusion metrics. A shared departure and a crossing inside two segments are counted separately.
After routing, interchangeable branches receive existing node positions and their attached paths in declaration order. The coordinates of the selected routes are preserved, including routes elsewhere in the graph. An isolated, unlabeled fan on two ranks also orders its existing port slots to keep arrows from crossing as they leave the hub. A directed split and rejoin can use three ranks when its own scope explicitly requests a direction. When greedy label placement leaves a collision, TALA can reposition a pair of automatic edge labels within the existing work budget.
Across 140 generated DAGs, 74 drawings shrank and 66 retained their area. Median drawing area fell 10.3%. Strict segment intersections fell from 143 to 138, with no individual increase. Two inputs added a bend. In the 38-example controlled set, 30 shrank and eight retained their area. A separate 900-input comparison isolated the compact trial. It introduced no measured interior crossings or label, node, or route obstructions relative to the incumbent. One rendered width grew by one pixel despite smaller internal bounds.
Compaction costs up to one additional layout attempt. On a 70-node split and rejoin, the default three-seed CLI run took about 1.69 s versus 1.45 s locally. The candidate added two crossings, so TALA retained the wider layout. A 70-stage chain shortened from 9,850 to 7,780 px.
The second commit refreshes the TALA snapshots for seven repository fixtures. In the single-seed nested-grid fixture, a narrower grid causes the surrounding general layout to place another container differently, lengthening one connector from 130 to 263 px. The disconnected rich-text fixture still has an overlap between its code and plain-text labels.
During final review, placing equivalent branches before routing introduced extra crossings when a legend, edge label, or adjacent workflow changed the router’s choices. A comparison of 648 fans, split-and-rejoin workflows and embedded DAGs with master found no additional strict crossings, visible overlaps, or routes through unrelated nodes after the fix. With and without the final sibling reassignment, all 648 diagrams produced identical sets of oriented route points, rendered SVG connection paths and node boxes. Six additional diagrams preserved authored styling, IDs, constraints and attachment at both ends of all 108 edges.
An automatic split and rejoin can fit the initial size estimate and still exceed TALA’s 30,000 px limit during placement. When this happens, the engine retries ordinary placement with the same seed. All 52 diagrams in a near-limit comparison compiled, including wide and tall workflows and workflows inside containers. An explicitly requested hierarchy continues to enforce the size limit.