Enum petgraph::data::Element [−][src]
A graph element.
A sequence of Elements, for example an iterator, is laid out as follows: Nodes are implicitly given the index of their appearance in the sequence. The edges’ source and target fields refer to these indices.
Variants
NodeA graph node.
Fields of Node
weight: N |
EdgeA graph edge.
Fields of Edge
source: usize | |
target: usize | |
weight: E |
Trait Implementations
impl<N: Clone, E: Clone> Clone for Element<N, E>[src]
impl<N: Clone, E: Clone> Clone for Element<N, E>fn clone(&self) -> Element<N, E>[src]
fn clone(&self) -> Element<N, E>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<N: Debug, E: Debug> Debug for Element<N, E>[src]
impl<N: Debug, E: Debug> Debug for Element<N, E>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<N: PartialEq, E: PartialEq> PartialEq for Element<N, E>[src]
impl<N: PartialEq, E: PartialEq> PartialEq for Element<N, E>fn eq(&self, other: &Element<N, E>) -> bool[src]
fn eq(&self, other: &Element<N, E>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Element<N, E>) -> bool[src]
fn ne(&self, other: &Element<N, E>) -> boolThis method tests for !=.
impl<N: Eq, E: Eq> Eq for Element<N, E>[src]
impl<N: Eq, E: Eq> Eq for Element<N, E>