NetworkX Network⽤用NetworkX找出台灣公司網絡核⼼心
San-Chuan “Leo” Hung 2014/ 05/ 17
社會網絡
@ronnywang http://company-graph.g0v.ronny.tw/?id=22555003
我也可以
囧
假設 X ⼯工具
Assumptions of Information Core Network
Important Nodes
Easy to receive information
The nodes are close to others
Closeness
Brief Code• import networkx as nx
• from matplotlib import pyplot as plt
• G = nx.Graph()
• G.add_edge(v1, v2)
• G = nx.read_edgelist(filename)
• closeness_dict = nx.closeness_centrality(G)
• nx.draw_networkx(core_G)
• plt.show()
More NetworkX
• Pure Python
• Network Analysis
• Centrality
• Visualization
• Community Detection
• Network Generation
References
• NetworkX
• http://networkx.github.io/index.html
• Dataset
• 台灣公司資料 http://company.g0v.ronny.tw
• Standford http://snap.stanford.edu/data/
More
• LeoHung.self()
• http://leohung.net
• Code
• https://github.com/LeoHung/pycon2014_tw_company_core_network
Top Related