GraphComplement

GraphComplement[g]
gives the graph complement of the graph g.

Details and OptionsDetails and Options

  • The graph complement has the same vertices and edges defined by two vertices being adjacent only if they are not adjacent in g.
  • GraphComplement works with undirected graphs, directed graphs, multigraphs, and mixed graphs.
Introduced in 2010
(8.0)
| Updated in 2014
(10.0)