LogicalGraphExtension<V, E> extension

on

Methods

complement({E? edge(V source, V target)?}) Graph<V, E>
Returns the complement of this graph, that is a graph with the same vertices but with edges between vertices that had no edge.
intersection(Graph<V, E> other) Graph<V, E>
Returns the intersection of this graph and other. This is a graph with the nodes and edges present in both graphs.
union(Graph<V, E> other) Graph<V, E>
Returns the union of this graph and other. This is a graph with the nodes and edges present in either of the two graphs.