bfs

fun bfs(): List<Node>

Performs a breadth-first search to find all nodes reachable from source nodes.

Return

a list of all nodes in the network