Trait librsnek::compiler::graph::Graph [] [src]

pub trait Graph {
    type Node: Node + ?Sized + Serialize;
    fn count(&self) -> usize;
    fn add_node(&self, _: Self::Node);
    fn get_node(&self, _: usize) -> Box<Self::Node>;
}

Minimal graph trait that only requires access to the count() of all

Associated Types

Required Methods

The number of nodes in the Graph.

Insert a node into the graph when it already defines its id and the id of its

Get a node by id.

Implementors