grinpy.invariants.zero_forcing.is_zero_forcing_set¶
-
grinpy.invariants.zero_forcing.
is_zero_forcing_set
(G, nbunch)¶ Return whether or not the nodes in nbunch comprise a zero forcing set in G.
Parameters: - G (NetworkX graph) – An undirected graph.
- nbunch – A single node or iterable container or nodes.
Returns: True if the nodes in nbunch comprise a zero forcing set in G. False otherwise.
Return type: boolean