Closed amanmajid closed 2 years ago
Thanks for working on this @amanmajid :blush: .. will be super useful
Apart from the notes above, could you:
What do you reckon about @czor847's suggestion of a to_igraph
method - could you add it too while you're looking at this related stuff?
No worries!
I've just made some changes to the code as requested. In terms of the additional bullets:
to_igraph
- @czor847 do you have any existing code that I can adapt? Great 😊
I wonder if we should create the networkx graph as a MultiDiGraph - that way it can handle multiple edges between pairs of nodes, and will retain the direction of edges, both of which are okay within the GeoDataFrame representation. It should also keep snkit in line with osmnx and momepy in terms of exchanging networkx graphs.
In terms of recording requirements - yes, I’d put it on a line in “extras” so that pip will only install networkx if you do something like ‘pip install snkit[nx]’ and in dev-requirements so we can test the optional functionality.
Thanks for this, @amanmajid - closes #39 and #40, potential follow-up in #42
Potential solution to #39