Trait petgraph::IntoWeightedEdge [−][src]
pub trait IntoWeightedEdge<E> { type NodeId; fn into_weighted_edge(self) -> (Self::NodeId, Self::NodeId, 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
.
Associated Types
type NodeId
Required Methods
fn into_weighted_edge(self) -> (Self::NodeId, Self::NodeId, E)
Implementations on Foreign Types
impl<Ix, E> IntoWeightedEdge<E> for (Ix, Ix) where
E: Default,
[src]
impl<Ix, E> IntoWeightedEdge<E> for (Ix, Ix) where
E: Default,
type NodeId = Ix
fn into_weighted_edge(self) -> (Ix, Ix, E)
[src]
fn into_weighted_edge(self) -> (Ix, Ix, E)
impl<Ix, E> IntoWeightedEdge<E> for (Ix, Ix, E)
[src]
impl<Ix, E> IntoWeightedEdge<E> for (Ix, Ix, E)
type NodeId = Ix
fn into_weighted_edge(self) -> (Ix, Ix, E)
[src]
fn into_weighted_edge(self) -> (Ix, Ix, E)
impl<'a, Ix, E> IntoWeightedEdge<E> for (Ix, Ix, &'a E) where
E: Clone,
[src]
impl<'a, Ix, E> IntoWeightedEdge<E> for (Ix, Ix, &'a E) where
E: Clone,
type NodeId = Ix
fn into_weighted_edge(self) -> (Ix, Ix, E)
[src]
fn into_weighted_edge(self) -> (Ix, Ix, E)
impl<'a, Ix, E> IntoWeightedEdge<E> for &'a (Ix, Ix) where
Ix: Copy,
E: Default,
[src]
impl<'a, Ix, E> IntoWeightedEdge<E> for &'a (Ix, Ix) where
Ix: Copy,
E: Default,
type NodeId = Ix
fn into_weighted_edge(self) -> (Ix, Ix, E)
[src]
fn into_weighted_edge(self) -> (Ix, Ix, E)
impl<'a, Ix, E> IntoWeightedEdge<E> for &'a (Ix, Ix, E) where
Ix: Copy,
E: Clone,
[src]
impl<'a, Ix, E> IntoWeightedEdge<E> for &'a (Ix, Ix, E) where
Ix: Copy,
E: Clone,
type NodeId = Ix
fn into_weighted_edge(self) -> (Ix, Ix, E)
[src]
fn into_weighted_edge(self) -> (Ix, Ix, E)