Struct petgraph::graph::Edge
[−]
[src]
pub struct Edge<E, Ix: IndexType = DefIndex> { pub weight: E, // some fields omitted }
The graph's edge type.
Fields
weight | Associated edge data. |
Methods
impl<E, Ix: IndexType = DefIndex> Edge<E, Ix>
fn next_edge(&self, dir: EdgeDirection) -> EdgeIndex<Ix>
Accessor for data structure internals: the next edge for the given direction.
fn source(&self) -> NodeIndex<Ix>
Return the source node index.
fn target(&self) -> NodeIndex<Ix>
Return the target node index.