graphify icon indicating copy to clipboard operation
graphify copied to clipboard

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

Open uitholland opened this issue 4 months ago • 1 comments

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.

uitholland avatar Jul 18 '26 17:07 uitholland

Fixed in v0.9.24 (#2094). explain on a high-degree node now groups the cut connections by file (with direction and count) instead of a bare '... and N more'. Thanks for the report. https://github.com/Graphify-Labs/graphify/releases/tag/v0.9.24

safishamsi avatar Jul 22 '26 18:07 safishamsi