getVertexByString method
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);