Trait NodeRemovable

Source
pub trait NodeRemovable: Data {
    type Output;

    // Required method
    fn remove_node(&mut self, node: Self::NodeId) -> Self::Output;
}
Expand description

A graph whose nodes may be removed.

Required Associated Types§

Required Methods§

Source

fn remove_node(&mut self, node: Self::NodeId) -> Self::Output

Implementations on Foreign Types§

Source§

impl<N, E, Ty> NodeRemovable for GraphMap<N, E, Ty>
where N: NodeTrait, Ty: EdgeType,

Source§

type Output = bool

Source§

fn remove_node(&mut self, node: Self::NodeId) -> Self::Output

Source§

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

Source§

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

Source§

fn remove_node(&mut self, node: Self::NodeId) -> Option<Self::NodeWeight>

Source§

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

Source§

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

Source§

fn remove_node(&mut self, node: Self::NodeId) -> Option<Self::NodeWeight>

Source§

impl<N, E, Ty: EdgeType, Null: Nullable<Wrapped = E>, Ix: IndexType> NodeRemovable for MatrixGraph<N, E, Ty, Null, Ix>

Source§

type Output = Option<<MatrixGraph<N, E, Ty, Null, Ix> as Data>::NodeWeight>

Source§

fn remove_node(&mut self, node: Self::NodeId) -> Self::Output

Implementors§