- is_dominating_set(G, nbunch)[source]#
nbunchis a dominating set for
A dominating set for a graph with node set V is a subset D of V such that every node not in D is adjacent to at least one member of D .
- GNetworkX graph
An iterable of nodes in the graph