Note
This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.
rustworkx.digraph_complement#
- digraph_complement(graph, /)#
Compute the complement of a directed graph.
- Parameters:
graph (PyDiGraph) – The graph to be used.
- Returns:
The complement of the graph.
- Return type:
Note
Parallel edges and self-loops are never created, even if the
multigraph
attribute is set toTrue