Expand description
Graph algorithms — BFS traversal, community detection, neighborhood queries.
Modules§
- community
- Louvain community detection with deterministic seeding.
- query
- BFS reachability search and orphan/stub detection.
- relations
- PART_OF hierarchy traversal — ancestors and descendants.
- topology
- Bulk per-mem topology projection —
{nodes, edges, communities}for one mem, in one call, coordinate-free.
Structs§
- Cluster
Info - Info about a single community cluster.
- Community
Bridge - Inter-cluster edge aggregation. Pair keys are lexicographically normalised
(
from_cluster <= to_cluster), so each unordered cluster pair appears at most once.sample_edgescarries the directed tuples as they exist in the store, capped atBRIDGE_SAMPLE_CAP. - Louvain
Output - Output of Louvain community detection: clusters, reverse lookup, and
quality metrics. Computed on demand by
Engine::communities()and cached in an in-memory memo that is invalidated whenever the graph mutates (seeEngine::invalidate_communities). - Sample
Edge - A directed sample edge for a
CommunityBridge.
Constants§
- BRIDGE_
SAMPLE_ CAP - Maximum number of
SampleEdgetuples attached to aCommunityBridge.