Move graph_import function into network_gen.py file.