gamma 0.1.1

Graph primitives and traversals for Rust.
Documentation
1
2
3
4
5
6
7
use crate::graph::Error;
use crate::graph::Graph;

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