New NumPy API. Export graph to networkx.