Returns whether the collection contains an edge connecting two nodes.
edge
@override bool containsEdge(Edge<E> edge) { return successors(edge.source).contains(edge.target); }