Skip to content

feat: add call-graph sample and depth/breadth truncation#13

Merged
cristipufu merged 1 commit intomainfrom
feat/truncate-graph
Feb 15, 2026
Merged

feat: add call-graph sample and depth/breadth truncation#13
cristipufu merged 1 commit intomainfrom
feat/truncate-graph

Conversation

@cristipufu
Copy link
Member

Summary

  • Add truncate_graph() preprocessing function with max_depth and max_breadth options to prune large graphs before rendering, replacing truncated portions with ... placeholder nodes
  • Add new call-graph sample (pizza ordering system — 10 nodes, 12 edges, 4 layers) with screenshot
  • Add -d/--max-depth and -b/--max-breadth CLI flags
  • Bump version to 0.1.7

Test plan

  • 17 new tests covering depth truncation, breadth truncation, combined, edge cases, subgraph recursion, longest-path correctness, and render integration
  • All 101 tests pass
  • Verified CLI rendering with --max-depth and --max-breadth flags on call-graph sample
  • Ruff format/lint clean, ty type check clean

🤖 Generated with Claude Code

Add configurable max_depth and max_breadth options to prune large graphs
before rendering. Truncated portions are replaced with "..." placeholder
nodes. Includes a new call-graph sample (pizza ordering system) and
corresponding screenshot.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cristipufu cristipufu merged commit 68ff2f5 into main Feb 15, 2026
7 checks passed
@cristipufu cristipufu deleted the feat/truncate-graph branch February 15, 2026 12:17
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.

1 participant