Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Sage: How to import a graph from a shapefile into Sage?

I would like to import a graph and afterwards use functions from the networkx library in the Sage Notebook. Python is totally new for me and I have not that much experience with programming. How to transfer a shapefile into Sage? I tried

import networkx as nx 


That gives

ImportError: read_shp requires OGR:

Unfortunately, this link doesn’t help me. Thank you in advance