containsEdge method
- 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;
}