Networkx digraph python. matrix(Org_graph) G=nx.