Skip to main content

neco_nodegraph/
lib.rs

1#![no_std]
2
3//! necosystems series node graph data model with port-typed nodes and edges.
4//!
5//! `NodeGraph<N, E>` provides a pure graph model for node editors. Edges are
6//! validated against port existence, direction, and `type_tag`, and the
7//! optional `json` feature enables `neco-json` based round-trip codec support.
8
9extern crate alloc;
10
11pub mod edge;
12pub mod error;
13pub mod graph;
14pub mod id;
15#[cfg(feature = "json")]
16mod json;
17pub mod node;
18pub mod port;
19
20pub use edge::Edge;
21pub use error::GraphError;
22pub use graph::NodeGraph;
23pub use id::{EdgeId, NodeId, PortId};
24pub use node::Node;
25pub use port::{Port, PortDirection};