grinpy.invariants.zero_forcing.is_zero_forcing_set

grinpy.invariants.zero_forcing.is_zero_forcing_set(G, S)

Return whether or not the nodes in nbunch comprise a zero forcing set in G.

G : graph
A Networkx graph.

nbunch: a single node or iterable container of nodes in G.

isForcingSet : bool
True if the nodes in nbunch comprise a zero forcing set in G. False otherwise.