traitgraph_algo::dijkstra

Trait DijkstraTargetMap

Source
pub trait DijkstraTargetMap<Graph: GraphBase> {
    // Required method
    fn is_target(&self, node_index: Graph::NodeIndex) -> bool;
}
Expand description

A data structure that decides whether a given node index is a target of the current Dijkstra search.

Required Methods§

Source

fn is_target(&self, node_index: Graph::NodeIndex) -> bool

Returns true if the given node index is a target of the current Dijkstra search.

Implementations on Foreign Types§

Source§

impl<Graph: GraphBase> DijkstraTargetMap<Graph> for Vec<bool>

Source§

fn is_target(&self, node_index: Graph::NodeIndex) -> bool

Source§

impl<IndexType: Sized + Eq, Graph: GraphBase<NodeIndex = NodeIndex<IndexType>>> DijkstraTargetMap<Graph> for NodeIndex<IndexType>

Source§

fn is_target(&self, node_index: Graph::NodeIndex) -> bool

Implementors§