traitgraph_algo::dijkstra

Trait DijkstraWeightedEdgeData

Source
pub trait DijkstraWeightedEdgeData<WeightType: DijkstraWeight> {
    // Required method
    fn weight(&self) -> WeightType;
}
Expand description

Edge data that has a weight usable for shortest path computation.

Required Methods§

Source

fn weight(&self) -> WeightType

The weight of the edge.

Implementors§

Source§

impl<WeightType: DijkstraWeight + Copy> DijkstraWeightedEdgeData<WeightType> for WeightType