grinpy.invariants.zero_forcing.k_forcing_number

grinpy.invariants.zero_forcing.k_forcing_number(G, k)

Return the k-forcing number of G.

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

G : graph
A Networkx graph.
k : int
A positive integer.
kForcingNum : int
The k-forcing number of G.