eachNode() and eachEdge() added

graph.eachNode() and graph.eachEdge() added
next changed to next() and other minor changes