In [13]:
%pylab inline
import networkx as nx


Populating the interactive namespace from numpy and matplotlib

In [14]:
import APGG
G = APGG.generate_graph(2020567257)
APGG.draw(G)



In [16]:
nx.is_connected(G)


Out[16]:
True

In [15]:
L = APGG.generate_flow(2020638162)
APGG.draw(L, weight='capacity')