I have a networkx graph which contains nodes whose positions in the graph are real world latitude and longitudes which I want to use with google maps.
How do I export this graph using python for e.g. in JSON format?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is more than one format. You can see some examples of how to write some of them with NetworkX at http://networkx.readthedocs.io/en/stable/reference/readwrite.json_graph.html
If you need something different, the Python code is pretty simple to modify.