grinpy.invariants.power_domination.is_power_dominating_set

grinpy.invariants.power_domination.is_power_dominating_set(G, nbunch)

Return whether or not the nodes in nbunch comprise a power dominating set.

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 power dominating set, False otherwise.

Return type:

boolean