Trait petgraph::data::DataMap [] [src]

pub trait DataMap: Data {
    fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>;
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>; }

Access node and edge weights (associated data).

Required Methods

Implementations on Foreign Types

impl<'a, G> DataMap for &'a G where
    G: DataMap
[src]

impl<'a, G> DataMap for &'a mut G where
    G: DataMap
[src]

Implementors