Struct petgraph::graph::Edge
[−]
[src]
pub struct Edge<E, Ix = DefaultIx> { pub weight: E, // some fields omitted }
The graph's edge type.
Fields
weight: E
Associated edge data.
Methods
impl<E, Ix: IndexType> Edge<E, Ix>
[src]
impl<E, Ix: IndexType> Edge<E, Ix>
pub fn next_edge(&self, dir: Direction) -> EdgeIndex<Ix>
[src]
pub fn next_edge(&self, dir: Direction) -> EdgeIndex<Ix>
Accessor for data structure internals: the next edge for the given direction.
pub fn source(&self) -> NodeIndex<Ix>
[src]
pub fn source(&self) -> NodeIndex<Ix>
Return the source node index.
pub fn target(&self) -> NodeIndex<Ix>
[src]
pub fn target(&self) -> NodeIndex<Ix>
Return the target node index.
Trait Implementations
impl<E: Debug, Ix: Debug> Debug for Edge<E, Ix>
[src]
impl<E: Debug, Ix: Debug> Debug for Edge<E, Ix>
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<E, Ix> Clone for Edge<E, Ix> where
E: Clone,
Ix: Copy,
[src]
impl<E, Ix> Clone for Edge<E, Ix> where
E: Clone,
Ix: Copy,