Skip to main content

mentedb_graph/
lib.rs

1//! MenteDB Graph: knowledge graph engine with CSR/CSC storage.
2//!
3//! This crate provides:
4//! - Compressed Sparse Row (CSR) and Compressed Sparse Column (CSC) graph storage
5//! - Typed, weighted edge traversal
6//! - Belief propagation and cascade updates
7//! - Subgraph extraction for context assembly
8
9/// Belief propagation across the knowledge graph.
10pub mod belief;
11/// Contradiction and supersession detection.
12pub mod contradiction;
13/// Compressed Sparse Row/Column graph storage.
14pub mod csr;
15/// High level graph manager with persistence.
16pub mod manager;
17/// BFS, DFS, shortest path, and subgraph extraction.
18pub mod traversal;
19
20pub use belief::{
21    PropagationConfig, propagate_delta, propagate_update, propagate_update_with_config,
22};
23pub use contradiction::{detect_cycles, find_contradictions, find_superseded};
24pub use csr::{CsrGraph, StoredEdge};
25pub use manager::GraphManager;
26pub use traversal::{bfs, bfs_filtered, dfs, extract_subgraph, shortest_path};