added maxIterations param to GRAPH_EDGES and GRAPH_NEIGHBORS