petgraph::visit

Trait FilterNode

Source
pub trait FilterNode<N> {
    // Required method
    fn include_node(&self, node: N) -> bool;
}
Expand description

A graph filter for nodes.

Required Methods§

Source

fn include_node(&self, node: N) -> bool

Return true to have the node be part of the graph

Implementations on Foreign Types§

Source§

impl<N> FilterNode<N> for &FixedBitSet

Source§

fn include_node(&self, n: N) -> bool

Source§

impl<N> FilterNode<N> for FixedBitSet

This filter includes the nodes that are contained in the set.

Source§

fn include_node(&self, n: N) -> bool

Source§

impl<N, S> FilterNode<N> for &HashSet<N, S>
where HashSet<N, S>: VisitMap<N>,

Source§

fn include_node(&self, n: N) -> bool

Source§

impl<N, S> FilterNode<N> for HashSet<N, S>
where HashSet<N, S>: VisitMap<N>,

This filter includes the nodes that are contained in the set.

Source§

fn include_node(&self, n: N) -> bool

Implementors§

Source§

impl<F, N> FilterNode<N> for F
where F: Fn(N) -> bool,