[][src]Function rs_graph::search::bfs::start

pub fn start<'a, A>(adj: A, src: A::Node) -> BFSDefault<'a, A> where
    A: Adjacencies<'a>,
    A::Node: Hash

Start and return a BFS iterator using default data structures.

This is a convenience wrapper around start_with_data using the default data structures returned by default_data.

Parameter

  • adj: adjacency information for the graph
  • src: the source node at which the search should start.