getEdgeByString method

  1. @override
EpitaphEdge 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
EpitaphEdge getEdgeByString(String a, String b) =>
    graph[getVertexByString(a)]!
        .firstWhere((element) => element.b.equalsById(getVertexByString(b)));