Template Function NetworKit::Traversal::BFSfrom(const Graph&, node, L)

Function Documentation

template<typename L>
void NetworKit::Traversal::BFSfrom(const Graph &G, node source, L handle)

Iterate over nodes in breadth-first search order starting from the given source node.

Parameters:
  • G – The input graph.

  • source – The source node.

  • handle – Takes a node as input parameter.