Trait petgraph::data::DataMapMut [−][src]
Access node and edge weights mutably.
Required methods
fn node_weight_mut(&mut self, id: Self::NodeId) -> Option<&mut Self::NodeWeight>[src]
fn edge_weight_mut(&mut self, id: Self::EdgeId) -> Option<&mut Self::EdgeWeight>[src]
Implementations on Foreign Types
impl<'a, G> DataMapMut for &'a mut G where
G: DataMapMut, [src]
G: DataMapMut,
fn node_weight_mut(&mut self, id: Self::NodeId) -> Option<&mut Self::NodeWeight>[src]
fn edge_weight_mut(&mut self, id: Self::EdgeId) -> Option<&mut Self::EdgeWeight>[src]
Implementors
impl<'a, G> DataMapMut for Frozen<'a, G> where
G: DataMapMut, [src]
G: DataMapMut,
fn node_weight_mut(&mut self, id: Self::NodeId) -> Option<&mut Self::NodeWeight>[src]
fn edge_weight_mut(&mut self, id: Self::EdgeId) -> Option<&mut Self::EdgeWeight>[src]
impl<E, Ix: IndexType> DataMapMut for List<E, Ix>[src]
fn node_weight_mut(&mut self, n: Self::NodeId) -> Option<&mut ()>[src]
fn edge_weight_mut(&mut self, e: EdgeIndex<Ix>) -> Option<&mut E>[src]
Accesses the weight of edge e
Computes in O(1)
impl<G> DataMapMut for Reversed<G> where
G: DataMapMut, [src]
G: DataMapMut,
fn node_weight_mut(&mut self, id: Self::NodeId) -> Option<&mut Self::NodeWeight>[src]
fn edge_weight_mut(&mut self, id: Self::EdgeId) -> Option<&mut Self::EdgeWeight>[src]
impl<N, E, Ty, Ix> DataMapMut for Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType, [src]
Ty: EdgeType,
Ix: IndexType,
fn node_weight_mut(&mut self, id: Self::NodeId) -> Option<&mut Self::NodeWeight>[src]
fn edge_weight_mut(&mut self, id: Self::EdgeId) -> Option<&mut Self::EdgeWeight>[src]
impl<N, E, Ty, Ix> DataMapMut for StableGraph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType, [src]
Ty: EdgeType,
Ix: IndexType,