IEnumerator getPath() { GraphPath graph = new GraphPath(nodeValues, nodeEdges, decisionLevels); path = bfsOrDfs ? graph.getRouteBFS() : graph.getRouteDFS(); yield return null; }