Trait petgraph::data::DataMapMut [] [src]

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>;
}

Access node and edge weights mutably.

Required Methods

Implementors