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

G : graph
A Networkx graph.
zeroForcingNum : int
The zero forcing number of G.