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
Associated Types
Required Methods
fn source(&self) -> Self::NodeId
fn target(&self) -> Self::NodeId
fn weight(&self) -> &Self::Weight
fn id(&self) -> Self::EdgeId
Implementors
impl<'a, Ix, E> EdgeRef for EdgeReference<'a, E, Ix> where Ix: IndexType
impl<R> EdgeRef for ReversedEdgeRef<R> where R: EdgeRef
impl<'a, N, E> EdgeRef for (N, N, &'a E) where N: Copy