Skip to content

perf: skip findType2Conflicts if no border dummy nodes are present - #520

Open
ckanz wants to merge 2 commits into
dagrejs:masterfrom
ckanz:pref/skip-type2-conflicts-scan-on-flat-graphs
Open

perf: skip findType2Conflicts if no border dummy nodes are present#520
ckanz wants to merge 2 commits into
dagrejs:masterfrom
ckanz:pref/skip-type2-conflicts-scan-on-flat-graphs

Conversation

@ckanz

@ckanz ckanz commented Aug 26, 2026

Copy link
Copy Markdown

findType2Conflicts only marks conflicts against cluster border dummies (dummy === "border"). Graphs that aren't compound don't have these nodes so the deep scan is not necessary.

This PR adds an early return in findType2Conflicts when no border dummies are present. Otherwise proceeds as usual.

Resolves #519

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.

Unnecessary type-2 scanning on non-clustered (flat) graphs

1 participant