Returns an Edge in a graph with Vertex a and b
a
b
@override Edge getEdge(Vertex a, Vertex b) => graph[a]!.firstWhere((element) => element.b.equalsById(b));