Searches graph and finds and returns a vertex.
@override Vertex getVertex(Vertex vertex) => graph.keys.firstWhere((element) => vertex.id == element.id);