added iterators to nodes and edges