Trait petgraph::data::DataMapMut
source · pub trait DataMapMut: DataMap {
// Required methods
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.