Trait structures::map::traversable::GraphCollectionTraverser
source · pub trait GraphCollectionTraverser<K>: RevTraverser<K>{
// Required methods
fn bfs(&mut self);
fn bfs_all(&mut self);
fn dfs(&mut self);
fn dfs_all(&mut self);
}Required Methods§
sourcefn bfs(&mut self)
fn bfs(&mut self)
Sets the ‘graph traversal mode’ of this ‘graph collection traverser’ to follow breadth first traversal.
sourcefn bfs_all(&mut self)
fn bfs_all(&mut self)
Sets the ‘graph traversal mode’ of this ‘graph collection traverser’ to follow breadth first traversal for all ‘nodes’, meaning it will traverse disconnected ‘nodes’.