Skip to content

fix(graph): recover call-graph layout when dagre rejects clusters - #50

Merged
maty-millien merged 1 commit into
mainfrom
fix/call-graph-layout-fallback
May 20, 2026
Merged

fix(graph): recover call-graph layout when dagre rejects clusters#50
maty-millien merged 1 commit into
mainfrom
fix/call-graph-layout-fallback

Conversation

@maty-millien

Copy link
Copy Markdown
Collaborator

Summary

  • Wrap the dagre call-graph layout in a try/catch and retry without folder clusters when it throws "Not possible to find intersection inside of the rectangle"
  • Prevents the call-graph view from crashing with a red error overlay on graphs where the compound layout collapses two connected nodes to the same coordinates

Retry dagre layout without folder clusters if it throws the 'Not possible
to find intersection' error, so the call graph renders instead of crashing.
@maty-millien
maty-millien merged commit 99be133 into main May 20, 2026
3 checks passed
@maty-millien
maty-millien deleted the fix/call-graph-layout-fallback branch May 20, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant