Skip to main content

Module knowledge_relations

Module knowledge_relations 

Source

Structs§

KnowledgeEdge
KnowledgeNodeRef
KnowledgeRelationGraph

Enums§

KnowledgeEdgeKind
The kinds this store writes. Every released reader of relations.json deserializes the kind strictly, so a new kind is added only once the oldest supported reader parses it; kinds a newer writer stored are kept as written (see KnowledgeRelationGraph::load).

Constants§

EDGES_PER_FACT
Average relations per current fact the graph may hold before its weakest edges are pruned. Knowledge has no fact limit; this bounds edge density (an edge-producing loop cannot grow the graph faster than the facts it links), so the bound grows with the store instead of capping it.
MIN_EDGE_BOUND
Floor of edge_bound, so a young store keeps room for relations (the bound the old default of 200 facts gave).

Functions§

edge_bound
The relation-edge bound for a store with current_facts current facts.
format_mermaid
parse_node_ref