completed shortest paths edge output, added preliminary max flow (Edmonds-Karp) code