Skip to main content

complement

Function complement 

Source
pub fn complement(graph: &Graph) -> Graph
Expand description

Return the complement of a graph.

The complement G’ has the same nodes as G but has edges where G does not (and vice versa). Self-loops are not included. Matches networkx.complement(G).