getEdge method

  1. @override
EpitaphEdge getEdge(
  1. Vertex a,
  2. Vertex b
)
override

Returns an Edge in a graph with Vertex a and b

Implementation

@override
EpitaphEdge getEdge(Vertex a, Vertex b) =>
    graph[a]!.firstWhere((element) => element.b.equalsById(b));