nrepo graph
Synopsis
Section titled “Synopsis”nrepo graph <id> [options]Description
Section titled “Description”nrepo graph traverses the relation graph starting from a given idea and displays the connected ideas up to a configurable depth. This is useful for understanding how ideas relate to one another and for discovering indirect connections.
Options
Section titled “Options”| Flag | Type | Default | Description |
|---|---|---|---|
--depth <n> | number | 1 | How many hops to traverse. Maximum: 5. |
--type <types> | string | (all) | Comma-separated list of edge types to follow: related, blocks, inspires, supersedes, parent, duplicate. |
--json | boolean | (see auth) | Output as JSON. |
--human | boolean | (see auth) | Output as human-readable text. |
Examples
Section titled “Examples”Immediate connections
Section titled “Immediate connections”nrepo graph 42Output:
#42 Add dark mode to dashboard [exploring] ├─ related → #18 Theme system redesign [captured] ├─ inspires → #7 CSS variable cleanup [shipped] └─ parent ← #55 Dark mode v2 [building]Deeper traversal
Section titled “Deeper traversal”nrepo graph 42 --depth 3Filter by edge type
Section titled “Filter by edge type”nrepo graph 42 --type blocks,parentJSON output
Section titled “JSON output”nrepo graph 42 --depth 2 --jsonReturns a JSON object with nodes and edges arrays suitable for visualization tools.
{ "nodes": [ { "id": 42, "title": "Add dark mode to dashboard", "status": "exploring" }, { "id": 18, "title": "Theme system redesign", "status": "captured" } ], "edges": [ { "source": 42, "target": 18, "type": "related" } ]}Related commands
Section titled “Related commands”- nrepo links — list direct links for an idea
- nrepo show — view full idea details
- nrepo link — create a new relation