Comments (6)
@philippks everything should be working fine. That notebook just run without problem on my machine. Make sure your packages are all up-to-date and try again? If you're still having trouble, please open an issue in the OSMnx repo with details about your platform, package versions, etc and we'll troubleshoot.
from osmnx-examples.
Thank you for your fast reply @gboeing.
osmnx 0.7.3 depends on networkx 2.1, where this PR wrongly added the annotation @not_implemented_for('multigraph')
to the method line_graph
. This change was corrected with this PR (which is not yet released).
Therefore, the notebook only executes on my machine when downgrading osmnx to 0.7.1.
It is strange that the notebook works fine on your machine (do you've the newest versions installed?). Feel free to close this issue, but I believe the problem is not solved until networkx is upgraded to 2.2.
from osmnx-examples.
@philippks thanks for tracking that down! That explains it... I had run that notebook just now using the nx 2.2 release candidate.
Would you like to add a comment to that notebook cell regarding the version number needed, given this bug, and open a PR?
from osmnx-examples.
๐ I created a PR. Thanks for your great work btw.
from osmnx-examples.
@philippks thanks!
from osmnx-examples.
Hi Geoff,
can we plot the colored edges with closeness centralities in the folium ?
I convert multigraph to line_graph in order to compute edge closeness centrality
GG = nx.Graph()
for node, neighbors in G.adjacency(): # Return (node, adjacency dict) tuples for all nodes.
for neighbor, edict in neighbors.items():
GG.add_edge(node, neighbor)
edge_centrality = nx.closeness_centrality(nx.line_graph(GG))
But number of edges in multigraph is different from those in line_graph
from osmnx-examples.
Related Issues (20)
- osmnx simplify_graph does not remove all intermediate nodes that are not intersections HOT 1
- Existing alternate isochrones example doesn't respect geometry of curved links HOT 2
- TypeError: unhashable type: 'dict' on first example in 00-osmnx-features-demo.ipynb HOT 5
- Install troubleshooting HOT 1
- TypeError: โSet type is unorderedโ in isochrones example with Pandas 1.1 HOT 1
- Finding all the edges connected to a node
- multiprocessing doesn't work in Jupyter HOT 1
- osmnx street network polar plot 1 bin backward than histogramas HOT 2
- Download whole state data HOT 1
- Fix binder link from master to main in README.md HOT 1
- Extracting boundaries with specified administrative level is not working correctly HOT 2
- [Question] would it be possible to show a trajectory (moving object) with Osmnx (stream plotting) HOT 1
- Am unable to use osmnx to get data for california, texas and some us state HOT 1
- module 'osmnx' has no attribute 'pois_from_point' HOT 1
- error in notebook 08 HOT 1
- Add Clustering Example by Network Distance HOT 1
- fix: isocrones are not taking into account the time HOT 1
- AttributeError: module 'osmnx' has no attribute 'utils_graph' in 00-osmnx-features-demo.ipynb HOT 2
- examples update needed HOT 2
- Add example of attaching features to nearest nodes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osmnx-examples.