Skip to main content

WeightedGraph

Trait WeightedGraph 

Source
pub trait WeightedGraph<'a, N: 'a, P, E>: Graph<'a, N, E> {
    // Required method
    fn weight(&self, source: &'a N, target: &'a N) -> Result<Option<&P>, E>;
}

Required Methods§

Source

fn weight(&self, source: &'a N, target: &'a N) -> Result<Option<&P>, E>

Returns the weight between source and target.

Implementors§