[−][src]Trait petgraph::data::DataMap
Access node and edge weights (associated data).
Required methods
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>
Implementations on Foreign Types
impl<'a, G> DataMap for &'a G where
G: DataMap,
[src]
G: DataMap,
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>
[src]
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>
[src]
impl<'a, G> DataMap for &'a mut G where
G: DataMap,
[src]
G: DataMap,
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>
[src]
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>
[src]
Implementors
impl<'a, G> DataMap for Frozen<'a, G> where
G: DataMap,
[src]
G: DataMap,
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>
[src]
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>
[src]
impl<G> DataMap for Reversed<G> where
G: DataMap,
[src]
G: DataMap,
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>
[src]
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>
[src]
impl<G, F> DataMap for NodeFiltered<G, F> where
G: DataMap,
F: FilterNode<G::NodeId>,
[src]
G: DataMap,
F: FilterNode<G::NodeId>,
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>
[src]
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>
[src]
impl<N, E, Ty, Ix> DataMap for Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]
Ty: EdgeType,
Ix: IndexType,
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>
[src]
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>
[src]
impl<N, E, Ty, Ix> DataMap for StableGraph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]
Ty: EdgeType,
Ix: IndexType,