Trait rustworkx_core::graph_ext::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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

§

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,

§

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,

§

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>

§

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

source§

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

Implementors§