Skip to main content

complement

Function complement 

Source
pub fn complement<G>(
    graph: &G,
    include_self_loops: bool,
) -> Result<TopologyProjection<G::Node>>
where G: IndexGraphView,
Expand description

Materializes the directed simple-graph complement.

Parallel edges collapse to one adjacency relation.

ยงErrors

Returns an error when the dense pair space or compact topology overflows.