getVertexByString method

  1. @override
Vertex getVertexByString(
  1. String source
)
override

Searches graph and finds and returns a vertex with the same name as the specified source string.

Implementation

@override
Vertex getVertexByString(String source) =>
    graph.keys.firstWhere((element) => source == element.id);