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.
Parameters: - G (NetworkX graph) – An undirected graph.
- nbunch – A single node or iterable container or nodes.
- k (int) – A positive integer.
Returns: True if the nodes in nbunch comprise a k-forcing set in G. False otherwise.
Return type: boolean