Struct daggy::petgraph::graph::Edge [] [src]

pub struct Edge<E, Ix = u32> where Ix: IndexType {
    pub weight: E,
    // some fields omitted
}

The graph's edge type.

Fields

weight: E

Associated edge data.

Methods

impl<E, Ix> Edge<E, Ix> where Ix: IndexType

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.

Trait Implementations

Derived Implementations

impl<E, Ix> Clone for Edge<E, Ix> where E: Clone, Ix: IndexType + Clone

fn clone(&self) -> Edge<E, Ix>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<E, Ix> Debug for Edge<E, Ix> where E: Debug, Ix: IndexType + Debug

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.