getVertex method

  1. @override
Vertex getVertex(
  1. Vertex vertex
)
override

Searches graph and finds and returns a vertex.

Implementation

@override
Vertex getVertex(Vertex vertex) =>
    graph.keys.firstWhere((element) => vertex.id == element.id);