grinpy.invariants.zero_forcing.zero_forcing_number

grinpy.invariants.zero_forcing.zero_forcing_number(G)

Return the zero forcing number of G.

The zero forcing number of a graph is the cardinality of a smallest zero forcing set in the graph.

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