integrate networkx