Trait matrixgraph::BasicGraphMethods [] [src]

pub trait BasicGraphMethods {
    fn size(&self) -> usize;
    fn get_edge(&self, edge: (usize, usize)) -> Option<f64>;
    fn set_edge(&mut self, edge: (usize, usize), value: Option<f64>);
}

Provides basic graph methods.

Required Methods

Returns the size of the graph, i.e. its number of vertices.

Returns the value of an edge of the graph.

Sets the value of an edge of the graph.

Implementors