Trait petgraph::IntoWeightedEdge
[−]
[src]
pub trait IntoWeightedEdge<Ix, E> {
fn into_weighted_edge(self) -> (Ix, Ix, E);
}Convert an element like (i, j) or (i, j, w) into
a triple of source, target, edge weight.
For Graph::from_edges and GraphMap::from_edges.
Required Methods
fn into_weighted_edge(self) -> (Ix, Ix, E)
Implementors
impl<Ix, E> IntoWeightedEdge<Ix, E> for (Ix, Ix) where E: Defaultimpl<Ix, E> IntoWeightedEdge<Ix, E> for (Ix, Ix, E)impl<'a, Ix, E> IntoWeightedEdge<Ix, E> for (Ix, Ix, &'a E) where E: Cloneimpl<'a, Ix, E> IntoWeightedEdge<Ix, E> for &'a (Ix, Ix) where Ix: Copy, E: Defaultimpl<'a, Ix, E> IntoWeightedEdge<Ix, E> for &'a (Ix, Ix, E) where Ix: Copy, E: Clone