Skip to main content

Module graph

Module graph 

Source
Expand description

Neighborhood inspection of the knowledge graph.

Complements FTS crate::query and agent crate::context: those pack content under a token budget; this module shows structure — who links to whom, with relation types and weights — as ASCII or JSON for humans/agents.

Edges come from SQLite (preserves relation_type). CSR graph.mmap is not required; run sync so edges exist.

Structs§

GraphHopEdge
One edge in the neighborhood expansion (BFS order).
GraphHub
A high-degree node for GraphStats.
GraphNeighborhood
Result of a neighborhood query around one node.
GraphNodeRef
Compact node identity for graph reports.
GraphOptions
Options for neighborhood.
GraphStats
Aggregate graph statistics (no seed required).

Enums§

GraphDirection
Which edge directions to follow when expanding from the root.

Functions§

graph_stats
Database-wide graph statistics and hubs.
neighborhood
Expand the k-hop neighborhood around target (path, id, title, or symbol:…).
resolve_graph_target
Resolve a user target string to a Node.