NetworkX Network: 用NetworkX找出台灣公司網絡核心 by Leo Hung @PyCon TW 2014
-
Upload
sanchan-hong -
Category
Engineering
-
view
344 -
download
4
Embed Size (px)
description
Transcript of NetworkX Network: 用NetworkX找出台灣公司網絡核心 by Leo Hung @PyCon TW 2014

NetworkX Network⽤用NetworkX找出台灣公司網絡核⼼心
San-Chuan “Leo” Hung 2014/ 05/ 17

Leo HungIntern@gogolook http://leohung.net
!Web Development Machine Learning
Data Analysis

社會網絡

@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