[][src]Trait gamma::graph::WeightedGraph

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

An undirected graph whose edges are arbitrarily weighted.

Required methods

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

Returns the weight between source and target.

Loading content...

Implementors

impl<'a, N: 'a + Eq + Hash, E: 'a> WeightedGraph<'a, N, E> for StableGraph<N, E>[src]

Loading content...