Skip to main content

hirn_graph/
lib.rs

1//! # hirn-graph — Property graph engine for hirn
2//!
3//! This crate provides the in-memory property graph, spreading activation,
4//! Hebbian learning, and lateral inhibition algorithms used by the hirn
5//! cognitive memory database.
6
7pub mod activation;
8pub mod graph;
9pub mod hebbian;
10
11pub use activation::{
12    ActivationConfig, ActivationMode, ActivationResult, ActivationTrace, PprConfig,
13    personalized_pagerank, spread_activation, static_activation,
14};
15pub use graph::{
16    CausalDirection, CausalEdgeData, ConnectBuilder, EdgeId, GraphEdge, GraphNodeData,
17    GraphSnapshot, MAX_EDGE_METADATA_BYTES, MAX_EDGES_PER_NODE, PropertyGraph, edge_metadata_bytes,
18    validate_edge_metadata,
19};
20pub use hebbian::{HebbianBuffer, HebbianConfig, HebbianUpdateResult, hebbian_update};
21pub use petgraph::stable_graph::NodeIndex;