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

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

The graph's edge type.

Fields

Associated edge data.

Methods

impl<E, Ix: IndexType> Edge<E, Ix>
[src]

[src]

Accessor for data structure internals: the next edge for the given direction.

[src]

Return the source node index.

[src]

Return the target node index.

Trait Implementations

impl<E: Debug, Ix: Debug> Debug for Edge<E, Ix>
[src]

[src]

Formats the value using the given formatter. Read more

impl<E, Ix> Clone for Edge<E, Ix> where
    E: Clone,
    Ix: Copy
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more