原创 利用python求解度中心性

利用networkx裏面的函數degree_centrality(G)來求解圖的度中心性。 代碼如下: # -*- coding: utf-8 -*- """ Created on Sat Sep 14 18:01:27 2019