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