什么是图的吸引分量子图?
Networkx 对此有一个算法。但我无法理解这是什么,因为:
>>> g.edges()
[(0, 1), (1, 2), (2, 3), (2, 5), (3, 4)]
>>> for l in nx.algorithms.components.attracting.attracting_component_subgraphs(g):
... print l.edges()
... print l.nodes()
...
[]
[4]
[]
[5]