Trait petgraph::IntoWeightedEdge
source · [−]pub trait IntoWeightedEdge<E> {
type NodeId;
fn into_weighted_edge(self) -> (Self::NodeId, Self::NodeId, E);
}
Expand description
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 Associated Types
Required Methods
source