Skip to main content

Module graph

Module graph 

Source
Expand description

§Module: Graph

§Responsibility

Provides an in-memory knowledge graph with typed entities and relationships. Mirrors the public API of mem-graph.

§Guarantees

  • Thread-safe: GraphStore wraps state in Arc<Mutex<_>>
  • BFS/DFS traversal and shortest-path are correct for directed graphs
  • Non-panicking: all operations return Result

§NOT Responsible For

  • Persistence to disk or external store
  • Graph sharding / distributed graphs

Structs§

Entity
A node in the knowledge graph.
EntityId
Stable identifier for a graph entity.
GraphStore
In-memory knowledge graph supporting entities, relationships, BFS/DFS, shortest-path, weighted shortest-path, and graph analytics.
Relationship
A directed, typed edge between two entities.

Enums§

MemGraphError
Graph-specific errors, mirrors mem-graph::MemGraphError.