Skip to main content

complement

Function complement 

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

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).