Modularized graph.h further: separated out the iteration related definitions to graph_iter.h