Skip to content

max_nodes truncation ignores node importance #2129

Description

@avigdorsky

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.

Activity

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

    enhancementNew feature or requestpriority/normalStandard review queue; useful PR with ordinary maintainer urgency.ux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions