orientdb 0.1.2

A Rust library for in-memory graph database
Documentation
use orientdb::SimpleGraph;

fn main() {
    let mut graph = SimpleGraph::new();

    let start = graph.add_node("Plan");
    let build = graph.add_node("Build");
    let test = graph.add_node("Test");
    let deploy = graph.add_node("Deploy");

    graph.add_edge(start, build);
    graph.add_edge(build, test);
    graph.add_edge(test, deploy);

    if let Some(found) = graph.find(start, |&stage| stage == "Deploy") {
        if let Some(&stage) = graph.get_node(found) {
            println!("Reached the {stage} stage at node {found}.");
        }
    } else {
        println!("Unable to reach the Deploy stage.");
    }
}