Implemented get all edges.