Scilab function

graph_complement - complement of a graph

Calling Sequence

g1 = graph_complement(g,[gmax])

Parameters

Description

graph_complement returns the undirected graph g1 which is the complement of the graph g with respect to the corresponding complete graph. When gmax is given, the complement is made with respect to gmax. g and gmax are supposed to be simple graphs (use graph_simp before calling graph_complement if necessary) and to have the same number of nodes.

Examples

See Also