#151 – 8.8: Graph Visualizer — ASCII + DOT output #237

Open
Rockachopa wants to merge 1 commits from step35/151-8-8-graph-visualizer into main
Owner

What

Implements the Graph Visualizer (Acceptance Criteria #8.8).

New

  • scripts/graph_visualizer.py — CLI tool to visualize knowledge graph
    • ASCII tree rendering for terminal
    • DOT export for Graphviz
    • Subgraph extraction by seed node(s) + --max-depth
    • Filter by domain / category
    • Minimal deps (stdlib only)
  • scripts/test_graph_visualizer.py — smoke test (8/8 passing)

Verification

# ASCII full graph
python3 scripts/graph_visualizer.py

# Subgraph from a seed
python3 scripts/graph_visualizer.py --seed "hermes-agent:pitfall:001" --max-depth 2

# DOT export
python3 scripts/graph_visualizer.py --format dot --output knowledge/graph.dot

Acceptance

[x] Subgraph extraction
[x] ASCII rendering
[x] DOT export
[x] Configurable depth/filter

Closes #151

### What Implements the Graph Visualizer (Acceptance Criteria #8.8). ### New - `scripts/graph_visualizer.py` — CLI tool to visualize knowledge graph - ASCII tree rendering for terminal - DOT export for Graphviz - Subgraph extraction by seed node(s) + --max-depth - Filter by domain / category - Minimal deps (stdlib only) - `scripts/test_graph_visualizer.py` — smoke test (8/8 passing) ### Verification ```bash # ASCII full graph python3 scripts/graph_visualizer.py # Subgraph from a seed python3 scripts/graph_visualizer.py --seed "hermes-agent:pitfall:001" --max-depth 2 # DOT export python3 scripts/graph_visualizer.py --format dot --output knowledge/graph.dot ``` ### Acceptance [x] Subgraph extraction [x] ASCII rendering [x] DOT export [x] Configurable depth/filter Closes #151
Rockachopa added 1 commit 2026-04-26 01:00:54 +00:00
feat(graph): Add graph visualizer (ASCII + DOT) with subgraph extraction
Some checks failed
Test / pytest (pull_request) Failing after 35s
5f6a7f7265
Add scripts/graph_visualizer.py — standalone tool that:
- Builds knowledge graph from knowledge/index.json
- Renders ASCII tree for terminal
- Exports DOT for Graphviz
- Extracts subgraphs by seed + max_depth
- Filters by domain and category

Includes test_graph_visualizer.py smoke test (8/8)
Addresses #151
Some checks failed
Test / pytest (pull_request) Failing after 35s
Checking for merge conflicts…
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin step35/151-8-8-graph-visualizer:step35/151-8-8-graph-visualizer
git checkout step35/151-8-8-graph-visualizer
Sign in to join this conversation.