Python으로 시작하는 네트워크 분석
Eric Ma
Data Carpentry instructor and author of nxviz package
예시:
소셜
교통
엔터티 간 관계 모델링
인사이트:
주요 엔터티: 소셜 네트워크의 인플루언서
경로 탐색: 최적 교통 경로
클러스터링: 커뮤니티 찾기




import networkx as nxG = nx.Graph()G.add_nodes_from([1, 2, 3])G.nodes()
NodeView([1, 2, 3])
G.add_edge(1, 2)G.edges()
EdgeView([(1, 2)])
G.nodes[1]['label'] = 'blue'G.nodes(data=True)
[(1, {'label': 'blue'}), (2, {}), (3, {})]
nx.draw(G)import matplotlib.pyplot as plt plt.show()

Python으로 시작하는 네트워크 분석