create networkx file