New method getEdge in EdgeSet, necessary since we introduced weights in the Edge class. To retrieve them we first need to retrieve the actual Edge object