an unefficient solution for multiple flows
add printEdge
working efficient version of alternative flows