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>; }
Returns the weight between source and target.