pub trait VertexInfo {
// Required methods
fn vertex_edges(&self, v: &usize) -> Vec<&usize>;
fn nb_vertices(&self) -> usize;
}
Expand description
This trait gives some basic information on vertices
pub trait VertexInfo {
// Required methods
fn vertex_edges(&self, v: &usize) -> Vec<&usize>;
fn nb_vertices(&self) -> usize;
}
This trait gives some basic information on vertices