This gist displays a networkx graph on a leaflet map.
The graph is supplied as a weighted GEXF file, each node is expected to have Latitude
and Longitude
attributes.
The inputfile (GEXF format graph) and the basename for the outputfile are suplied as command line arguments.
Run as follows:
python plot.py sample.gexf output/spatial-graph