Skip to main content

Crate ison_graph

Crate ison_graph 

Source
Expand description

ISONGraph - A Token-Efficient Graph Store for Rust

A property graph implementation with ISON persistence. Supports multi-hop traversal, path finding, and fluent API.

§Example

use ison_graph::{ISONGraph, NodeRef, Direction};

let mut graph = ISONGraph::new("social");
graph.add_node("person", "1", vec![("name", "Alice"), ("age", "30")]).unwrap();
graph.add_node("person", "2", vec![("name", "Bob"), ("age", "25")]).unwrap();
graph.add_edge("KNOWS", ("person", "1"), ("person", "2"), vec![("since", "2020")]).unwrap();

let friends = graph.neighbors(&("person", "1"), Some("KNOWS"), Direction::Out);
let fof = graph.multi_hop(&("person", "1"), Some("KNOWS"), 2, Direction::Out);

Modules§

query
ISONQL - Pure Property Graph Query Language for ISONGraph (Rust)
schema
ISONGraph Schema Validation Module

Structs§

Edge
Represents a graph edge with properties
GraphTraversal
Fluent API for graph traversal
ISONGraph
In-memory property graph store with ISON persistence.
Node
Represents a graph node with properties
NodeId
Owned node reference
Path
Represents a path through the graph

Enums§

Direction
Traversal direction
GraphError

Constants§

VERSION
Version of the library

Type Aliases§

NodeRef
Node reference: (type, id)
Result