Implemented edges() and vertices() in DirectedGraph