Git Product home page Git Product logo

Comments (6)

gboeing avatar gboeing commented on July 19, 2024

@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.

philippks avatar philippks commented on July 19, 2024

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.

gboeing avatar gboeing commented on July 19, 2024

@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.

philippks avatar philippks commented on July 19, 2024

๐Ÿ‘ I created a PR. Thanks for your great work btw.

from osmnx-examples.

gboeing avatar gboeing commented on July 19, 2024

@philippks thanks!

from osmnx-examples.

dvu4 avatar dvu4 commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.