Skip to content

Graph Traversal

arx_edges

List all edges (connections) for a thought. Returns both incoming and outgoing connections.

Parameters:

NameTypeRequiredDescription
idstringYesThought UUID

Returns: Array of edges with source ID, target ID, edge type, and connected thought content.


Create an edge between two thoughts.

Parameters:

NameTypeRequiredDescription
from_idstringYesSource thought UUID
to_idstringYesTarget thought UUID
edge_typestringNoConnection type (default: relates_to)

Edge types:

TypeMeaning
relates_toGeneral connection
leads_toCausal relationship (A caused B)
blocksDependency (A blocks B)
implementsRealization (A implements B)
supersedesEvolution (A replaces B)
referencesCitation (A mentions B)

Example prompt: "Link the auth decision to the rate limiting pattern"


arx_traverse

Walk the knowledge graph from a starting thought, following edges N hops deep. Returns the subgraph around a node.

Parameters:

NameTypeRequiredDescription
idstringYesStarting thought UUID
depthnumberNoHops to traverse (default: 3)

Example prompt: "Show me everything connected to that privacy architecture decision, 2 hops out"

Returns: Tree structure of connected thoughts with edge types at each level.


arx_stats

Get knowledge graph statistics.

Returns:

json
{
  "thoughts": 2681,
  "edges": 8780,
  "health": "ok"
}

Built by Arc Labs