neco-nodegraph
necosystems series node graph data model with port-typed nodes and edges
Usage
use ;
let mut graph = new;
let source = graph.add_node_with_ports;
let target = graph.add_node_with_ports;
let edge = graph.add_edge?;
assert_eq!;
assert_eq!;
# Ok::
API
| Item | Description |
|---|---|
NodeGraph<N, E> |
Graph container with typed node payloads, edge payloads, and port validation |
Node<N> |
Node record with id, payload, and declared ports |
Edge<E> |
Directed edge between an output port and an input port |
Port |
Port definition with id, direction, and application-defined type_tag |
PortDirection |
Input or Output direction used during edge validation |
NodeId, EdgeId, PortId |
Opaque identifiers for nodes, edges, and ports |
GraphError |
Failure type for missing nodes, invalid endpoints, and JSON decode errors |
Features
| Feature | Description |
|---|---|
default |
No optional dependencies. Pure no_std + alloc graph model |
json |
Enables neco-json based to_json / from_json round-trip support |
License
MIT