Python 網路分析進階
Eric Ma
Data Carpentry instructor and author of nxviz package
networkx:用於圖形分析的 API
import networkx as nxG
<networkx.classes.graph.Graph at 0x10b192da0>
list(G.nodes())
['customer1', 'customer3', 'customer2']
len(G.nodes())
3
len(G.edges())
2
type(G)
networkx.classes.graph.Graph
nxviz:建立美觀且合理圖形視覺化的 API
著重節點擺放

nxviz:建立美觀且合理圖形視覺化的 API
著重節點擺放

nxviz:建立美觀且合理圖形視覺化的 API
著重節點擺放

nxviz:建立美觀且合理圖形視覺化的 API
著重節點擺放

import nxviz as nv import matplotlib.pyplot as pltc = nv.circos(G)plt.show()

Python 網路分析進階