import networkx as nx
# Undirected, single edge only
nx.Graph()
<networkx.classes.graph.Graph at 0x7f9289d41310>
# Directed, single edge only (subclass of above)
nx.DiGraph()
<networkx.classes.digraph.DiGraph at 0x7f928b81bb80>
# Undirected, multiple edges
nx.MultiGraph()
<networkx.classes.multigraph.MultiGraph at 0x7f928d196e50>
# Directed, multiple edges (subclass of above)
nx.MultiDiGraph()
<networkx.classes.multidigraph.MultiDiGraph at 0x7f928b8495b0>