Skip to content

explain: aggregate/paginate callers for high-degree nodes instead of truncating at ~20 #2009

Description

@uitholland

Problem. graphify explain "<symbol>" on a high-degree node (e.g. a logging helper with degree 692) prints ~20 connections plus "... and 672 more". The question that leads people to explain ("who calls this, what's the impact?") is exactly the one the truncation leaves unanswered — in our sessions the agent then falls back to a repo-wide grep, which is what the graph was meant to replace.

Proposal. For nodes above a degree threshold, group incoming edges by directory/file with counts (e.g. inc/email-inbox: 84 callers across 12 files), and/or add --callers --all / --group-by=dir flags. Full flat output behind a flag is fine; the default should just stop hiding 97% of the answer.

Environment. graphifyy 0.8.36, code-only graph, ~22k nodes / ~33k edges.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions