`max_nodes` truncation ignores node importance
Severity: medium.
GET /api/layout?max_nodes=5000 returns 514 edges out of ~179 000. Nodes appear
to be selected in id order rather than ranked, so the budget is spent on leaves.
Before excluding generated JSON it was 164 edges; removing ~4 600 noise nodes moved
it only to 514 — so ranking, not noise, is the binding constraint.
Ask: rank by (non-builtin) degree and status (entry, exported) when truncating.
Observed on v0.10.8 (build 996bad5fe6fb), macOS arm64, Python monorepo (~36k nodes / ~179k edges). Happy to provide a minimal reproduction repo if useful.
Thank you for the before/after edge counts and for separating node-selection quality from generated-node noise. The ranking policy under max_nodes needs a maintainer decision; I have no new layout change to report yet.
Thank you for separating node selection from generated-node noise. Ranking under the layout node budget still needs a maintainer decision. Sorry for the delay; I’ll follow up soon.