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) {
  final a = super.containsEdge(edge);
  assert(
    a == super.containsEdge(edge.reversed),
    'Inconsistent undirected edges',
  );
  return a;
}