Updated MaxFlow Class to support advanced Neo4j Traversals