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.
- G : graph
- A Networkx graph.
nbunch : a single node or iterable container of nodes.
- isPowerDominating : bool
- True if the nodes in nbunch comprise a power dominating set, False otherwise.