Trait graph_neighbor_matching::Graph
[−]
[src]
pub trait Graph { type EDGE: Edges; type NODE: Clone; fn num_nodes(&self) -> usize; fn node_degree(&self, node_idx: usize) -> usize; fn node_value(&self, node_idx: usize) -> &Self::NODE; fn in_edges_of<'a>(&'a self, node_idx: usize) -> &'a Self::EDGE; fn out_edges_of<'a>(&'a self, node_idx: usize) -> &'a Self::EDGE; fn to_petgraph(&self) -> PetGraph<Self::NODE, Closed01<f32>, Directed> { ... } }