Trait petgraph::visit::EdgeRef [−][src]
pub trait EdgeRef: Copy { type NodeId; type EdgeId; type Weight; fn source(&self) -> Self::NodeId; fn target(&self) -> Self::NodeId; fn weight(&self) -> &Self::Weight; fn id(&self) -> Self::EdgeId; }
An edge reference.
Edge references are used by traits IntoEdges
and IntoEdgeReferences
.
Associated Types
Loading content...Required methods
fn source(&self) -> Self::NodeId
[src]
The source node of the edge.
fn target(&self) -> Self::NodeId
[src]
The target node of the edge.
fn weight(&self) -> &Self::Weight
[src]
A reference to the weight of the edge.
fn id(&self) -> Self::EdgeId
[src]
The edge’s identifier.
Implementations on Foreign Types
impl<'a, N, E> EdgeRef for (N, N, &'a E) where
N: Copy,
[src]
impl<'a, N, E> EdgeRef for (N, N, &'a E) where
N: Copy,
[src]Implementors
impl<'a, E, Ty, Ix> EdgeRef for petgraph::csr::EdgeReference<'a, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]
impl<'a, E, Ty, Ix> EdgeRef for petgraph::csr::EdgeReference<'a, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]impl<'a, Ix, E> EdgeRef for petgraph::graph::EdgeReference<'a, E, Ix> where
Ix: IndexType,
[src]
impl<'a, Ix, E> EdgeRef for petgraph::graph::EdgeReference<'a, E, Ix> where
Ix: IndexType,
[src]impl<'a, Ix, E> EdgeRef for petgraph::stable_graph::EdgeReference<'a, E, Ix> where
Ix: IndexType,
[src]
impl<'a, Ix, E> EdgeRef for petgraph::stable_graph::EdgeReference<'a, E, Ix> where
Ix: IndexType,
[src]impl<R> EdgeRef for ReversedEdgeReference<R> where
R: EdgeRef,
[src]
impl<R> EdgeRef for ReversedEdgeReference<R> where
R: EdgeRef,
[src]An edge reference