Introduction to Network Analysis in Python
Eric Ma
Data Carpentry instructor and author of nxviz package
import networkx as nx
G = nx.Graph()
type(G)
networkx.classes.graph.Graph
D = nx.DiGraph()
type(D)
networkx.classes.digraph.DiGraph
M = nx.MultiGraph()
type(M)
networkx.classes.multigraph.MultiGraph
MD = nx.MultiDiGraph()
type(MD)
networkx.classes.multidigraph.MultiDiGraph
Introduction to Network Analysis in Python