Introduction to Network Analysis in Python
Eric Ma
Data Carpentry instructor and author of nxviz package
G
<networkx.classes.graph.Graph at 0x10cc08828>
len(G.edges())
57
len(G.nodes())
20
list(G.neighbors(1))
[10, 5, 14, 7]
list(G.neighbors(10))
[1, 19, 5, 17, 8, 9, 13, 14]
Introduction to Network Analysis in Python