Struct petgraph::graph::Node
[−]
[src]
pub struct Node<N, Ix = DefaultIx> { pub weight: N, // some fields omitted }
The graph's node type.
Fields
weight: N
Associated node data.
Methods
impl<N, Ix: IndexType> Node<N, Ix>
[src]
impl<N, Ix: IndexType> Node<N, 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 first edge in the given direction.
Trait Implementations
impl<N: Debug, Ix: Debug> Debug for Node<N, Ix>
[src]
impl<N: Debug, Ix: Debug> Debug for Node<N, 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 Node<E, Ix> where
E: Clone,
Ix: Copy,
[src]
impl<E, Ix> Clone for Node<E, Ix> where
E: Clone,
Ix: Copy,