python networkx digraph example