Struct petgraph::graph::Node [] [src]

pub struct Node<N, Ix: IndexType = DefIndex> {
    pub weight: N,
    // some fields omitted
}

The graph's node type.

Fields

Associated node data.

Methods

impl<N, Ix: IndexType> Node<N, Ix>
[src]

Accessor for data structure internals: the first edge in the given direction.

Trait Implementations

impl<N: Debug, Ix: Debug + IndexType> Debug for Node<N, Ix>
[src]

Formats the value using the given formatter.

impl<N: Clone, Ix: Clone + IndexType> Clone for Node<N, Ix>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more