containsEdge method
- Edge<
E> edge
override
Returns whether the collection contains an edge
connecting two nodes.
Implementation
@override
bool containsEdge(Edge<E> edge) {
for (final (node, _) in successors(edge.source)) {
if (node == edge.target) return true;
}
return false;
}