containsEdge method

  1. @override
bool containsEdge(
  1. Edge<E> edge
)
override

Returns whether the collection contains an edge connecting two nodes.

Implementation

@override
bool containsEdge(Edge<E> edge) {
  return successors(edge.source).contains(edge.target);
}