Skip to main content

Module builder

Module builder 

Source
Expand description

GraphBuilder for constructing knowledge graphs.

The builder orchestrates content discovery and graph construction:

  1. Discover content files using glob patterns
  2. Parse frontmatter and content
  3. Call GraphExtractor methods to extract nodes/edges
  4. 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_refs instead of silently dropped.
  • Bidirectional edge deduplication: Prevents duplicate edges when both sides of a relationship declare each other.

Structs§

BuildError
An error that occurred during building.
BuildStats
Statistics from a graph build operation.
GraphBuilder
Builder for constructing knowledge graphs.
ManualEdge
Manual edge definition loaded from JSON.

Enums§

ErrorHandling
Options for handling errors during graph building.