grinpy.invariants.zero_forcing.is_k_forcing_active_set

grinpy.invariants.zero_forcing.is_k_forcing_active_set(G, nbunch, k)

Return whether or not at least one node in nbunch can k-force.

Parameters:
  • G (NetworkX graph) – An undirected graph.
  • nbunch – A single node or iterable container or nodes.
  • k (int) – A positive integer.
Returns:

True if at least one of the nodes in nbunch can k-force. False otherwise.

Return type:

boolean