Added an iterator over the edges for the generic nodes