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

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

The graph's node type.

Fields

weight

Associated node data.

Methods

impl<N, Ix: IndexType = DefIndex> Node<N, Ix>

fn next_edge(&self, dir: EdgeDirection) -> EdgeIndex<Ix>

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

Trait Implementations

Derived Implementations

impl<N: Clone, Ix: Clone + IndexType> Clone for Node<N, Ix> where N: Clone, Ix: Clone

fn clone(&self) -> Node<N, Ix>

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

impl<N: Debug, Ix: Debug + IndexType> Debug for Node<N, Ix> where N: Debug, Ix: Debug

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