Intermediate Network Analysis in Python
Eric Ma
Data Carpentry instructor and author of nxviz package
networkx
: API for analysis of graphsimport networkx as nx
G
<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 for creating beautiful and rational graph viz
Prioritize placement of nodes
nxviz: API for creating beautiful and rational graph viz
Prioritize placement of nodes
nxviz: API for creating beautiful and rational graph viz
Prioritize placement of nodes
nxviz: API for creating beautiful and rational graph viz
Prioritize placement of nodes
import nxviz as nv import matplotlib.pyplot as plt
c = nv.circos(G)
plt.show()
Intermediate Network Analysis in Python