networkx'但是我遇到了一个问题:运行以下代码时的AttributeError: 'module' object has no attribute 'min_weighted_dominating_setimport networkx as nxs = nx.min_weighted_dominating_set(G, weight=None)
PS:min_weighted_dominating_set
预期结果如下:
In [graph theory](https://en.wikipedia.org/wiki/Graph_theory), a **dominating set** for a [graphThe **domination number** γ(G) is the number of vertices in a smallest dominating set for G.