Trait traitgraph::algo::traversal::ForbiddenSubgraph[][src]

pub trait ForbiddenSubgraph<Graph: GraphBase> {
    fn is_node_forbidden(&self, node: Graph::NodeIndex) -> bool;
fn is_edge_forbidden(&self, edge: Graph::EdgeIndex) -> bool; }
Expand description

A type with this trait can tell if a node or edge is forbidden in a graph traversal.

Required methods

Returns true if the given node is forbidden.

Returns true if the given edge is forbidden.

Implementors