grinpy.invariants.zero_forcing.is_k_forcing_set¶
-
grinpy.invariants.zero_forcing.
is_k_forcing_set
(G, nbunch, k)¶ Return whether or not the nodes in nbunch comprise a k-forcing set in G.
- G : graph
- A Networkx graph.
nbunch: a single node or iterable container of nodes in G.
- k : int
- A positive integer.
- isForcingSet : bool
- True if the nodes in nbunch comprise a k-forcing set in G. False otherwise.