getEdgeByString method

  1. @override
Edge getEdgeByString(
  1. String a,
  2. String b
)
override

Searches graph and finds and returns an edge with the same name as the specified a and b string.

Implementation

@override
Edge getEdgeByString(String a, String b) => graph[getVertexByString(a)]!
    .firstWhere((element) => element.b.equalsById(getVertexByString(b)));