We can change this getEdgeMap() to getEdgeList()