[][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>;
}

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: Eq + Hash, E> WeightedGraph<'a, N, E> for HashGraph<'a, N, E>[src]

Loading content...