new bfs algorithm

Bug: resulting network not correct
Bug: Source points to source on the same say 1.9?