grinpy.invariants.residue.residue

grinpy.invariants.residue.residue(G)

Return the residue of G.

The residue of a graph G is the number of zeros obtained in final sequence of the Havel Hakimi process.

Parameters:G (NetworkX graph) – An undirected graph.
Returns:The residue of G.
Return type:int

See also

k_residue(), havel_hakimi_process()