Skip to content

[Feature]: Bound individual edge detours in cross-hierarchy crossing minimization #72

Open

Description

@Malcolmnixon

Problem Statement

The layout-quality work (#48/#60) accepts cross-hierarchy reordering proposals based on aggregate route quality, mostly crossings. This can push a large detour onto a single edge. In the GeneralViewUp benchmark scene, the overall crossings drop from 22 to 12, but Battery -> Mass grows from a 120 px straight run to a 675 px loop that enters Mass from the side.

Proposed Solution

Make the acceptance criterion consider per-edge route length or detour as well, for example a multi-objective score or a hard bound such as no edge growing by more than about 2x plus a constant unless the crossing gain is large. Alternatively, re-route the worst edge after reordering. A naive per-edge guard was tried and pushed fixed-order crossings from 12 back up to 19 and broke the zero-crossing cases in the Repro3 scene, so a smarter approach is needed.

Benefits

The crossing reduction is kept without single-edge regressions.

Priority

Medium - Would improve my workflow

Willingness to Contribute

Yes, I can submit a pull request

Activity

  1. added
    enhancement
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions