Trait EdgeRemovable

Source
pub trait EdgeRemovable: Data {
    type Output;

    // Required method
    fn remove_edge(&mut self, edge: Self::EdgeId) -> Self::Output;
}
Expand description

A graph whose edge may be removed by an edge id.

Required Associated Types§

Required Methods§

Source

fn remove_edge(&mut self, edge: Self::EdgeId) -> Self::Output

Implementations on Foreign Types§

Source§

impl<N, E, Ty, Ix> EdgeRemovable for StableGraph<N, E, Ty, Ix>
where Ty: EdgeType, Ix: IndexType,

Source§

type Output = Option<<StableGraph<N, E, Ty, Ix> as Data>::EdgeWeight>

Source§

fn remove_edge(&mut self, edge: Self::EdgeId) -> Option<Self::EdgeWeight>

Source§

impl<N, E, Ty, Ix> EdgeRemovable for Graph<N, E, Ty, Ix>
where Ty: EdgeType, Ix: IndexType,

Source§

type Output = Option<<Graph<N, E, Ty, Ix> as Data>::EdgeWeight>

Source§

fn remove_edge(&mut self, edge: Self::EdgeId) -> Option<Self::EdgeWeight>

Implementors§