grinpy.invariants.zero_forcing.min_k_forcing_set¶
-
grinpy.invariants.zero_forcing.
min_k_forcing_set
(G, k)¶ Return a smallest k-forcing set in G.
The method used to compute the set is brute force.
- G : graph
- A Networkx graph.
- k : int
- A positive integer.
- minForcingSet : list
- A smallest k-forcing set in G.