edited getEdgeList function to sort by the edge matrix before assigning support