[−][src]Trait abstractgraph::weight::WeightedOutboundEdge
The trait for types representing a single weighted graph edge from a known graph node
This could be a reference to some internal part of your data structure, an index or whatever else is suitable for your graph representation.
Required methods
fn weight(&self) -> W
Returns the weight / cost of this edge
Provided methods
fn into_destination_and_weight(self) -> (N, W) where
Self: Sized,
Self: Sized,
Implementors
impl<N, W> WeightedOutboundEdge<N, W> for WeightedEdge<N, W> where
N: Clone,
W: EdgeWeight,
[src]
N: Clone,
W: EdgeWeight,
impl<N, W, E> WeightedOutboundEdge<N, W> for UnitWeightEdge<E> where
W: EdgeWeight + One,
E: OutboundEdge<N>,
[src]
W: EdgeWeight + One,
E: OutboundEdge<N>,