Trait petgraph::data::DataMapMut
source · [−]pub trait DataMapMut: DataMap {
fn node_weight_mut(
&mut self,
id: Self::NodeId
) -> Option<&mut Self::NodeWeight>;
fn edge_weight_mut(
&mut self,
id: Self::EdgeId
) -> Option<&mut Self::EdgeWeight>;
}
Expand description
Access node and edge weights mutably.
Required Methods
source
fn node_weight_mut(&mut self, id: Self::NodeId) -> Option<&mut Self::NodeWeight>
source