Expand description
GraphBuilder for constructing knowledge graphs.
The builder orchestrates content discovery and graph construction:
- Discover content files using glob patterns
- Parse frontmatter and content
- Call GraphExtractor methods to extract nodes/edges
- Build the final GraphData structure
§Taproot Adaptations
- Two-phase build: Phase 1 creates all nodes, Phase 2 creates all edges. This ensures all nodes exist before edge creation, handling forward references.
- Dangling reference tracking: Edges referencing missing nodes are logged
in
BuildStats::dangling_refsinstead of silently dropped. - Bidirectional edge deduplication: Prevents duplicate edges when both sides of a relationship declare each other.
Structs§
- Build
Error - An error that occurred during building.
- Build
Stats - Statistics from a graph build operation.
- Graph
Builder - Builder for constructing knowledge graphs.
- Manual
Edge - Manual edge definition loaded from JSON.
Enums§
- Error
Handling - Options for handling errors during graph building.