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§
- Graph
HopEdge - One edge in the neighborhood expansion (BFS order).
- Graph
Hub - A high-degree node for
GraphStats. - Graph
Neighborhood - Result of a neighborhood query around one node.
- Graph
Node Ref - Compact node identity for graph reports.
- Graph
Options - Options for
neighborhood. - Graph
Stats - Aggregate graph statistics (no seed required).
Enums§
- Graph
Direction - 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, orsymbol:…). - resolve_
graph_ target - Resolve a user target string to a
Node.