petgraph::visit

Trait FilterEdge

Source
pub trait FilterEdge<Edge> {
    // Required method
    fn include_edge(&self, edge: Edge) -> bool;
}
Expand description

A graph filter for edges

Required Methods§

Source

fn include_edge(&self, edge: Edge) -> bool

Return true to have the edge be part of the graph

Implementors§

Source§

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