I have a graph created with networkX and I am using neonx to import it to neo4j on localhost. I have a networkX type graph called G. Below is the code:
data1 = json_graph.node_link_data(G)
H = json_graph.node_link_graph(data1)
results = neonx.write_to_neo("http://localhost:7474/db/data/", H, 'LINKS_TO')
The error I get is:
Traceback (most recent call last):
File "/Users/aman/venv/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2961, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-5-0d401e8987b7>", line 31, in <module>
results = neonx.write_to_neo("http://localhost:7474/db/data/", H, 'LINKS_TO')
File "/Users/aman/venv/lib/python3.7/site-packages/neonx/neo.py", line 86, in write_to_neo
batch_url = all_server_urls['batch']
KeyError: 'batch'