grinpy.invariants.zero_forcing.is_k_forcing_vertex¶
-
grinpy.invariants.zero_forcing.
is_k_forcing_vertex
(G, v, nbunch, k)¶ Return whether or not v can k-force relative to the set of nodes in nbunch.
Parameters: - G (NetworkX graph) – An undirected graph.
- v (node) – A single node in G.
- nbunch – A single node or iterable container or nodes.
- k (int) – A positive integer.
Returns: True if v can k-force relative to the nodes in nbunch. False otherwise.
Return type: boolean