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

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

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>

Loading content...

Implementations on Foreign Types

impl<'a, G> DataMapMut for &'a mut G where
    G: DataMapMut
[src]

Loading content...

Implementors

impl<'a, G> DataMapMut for Frozen<'a, G> where
    G: DataMapMut
[src]

impl<G> DataMapMut for Reversed<G> where
    G: DataMapMut
[src]

impl<N, E, Ty, Ix> DataMapMut for Graph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType
[src]

impl<N, E, Ty, Ix> DataMapMut for StableGraph<N, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType
[src]

Loading content...