Coder Social home page Coder Social logo

range graph removing edges about pandana HOT 3 CLOSED

udst avatar udst commented on July 19, 2024
range graph removing edges

from pandana.

Comments (3)

fscottfoti avatar fscottfoti commented on July 19, 2024

Good question. Actually this is not an indicator of anything being wrong per se. It actually means that there are street edges that aren't useful for taking shortest paths between different places (certain streets aren't on the way to anywhere I guess). It's just a byproduct of the algorithm and is really just means things are working as designed (see http://en.wikipedia.org/wiki/Contraction_hierarchies for more info)

from pandana.

bridwell avatar bridwell commented on July 19, 2024

That makes sense. Looks like where I have edges being removed tends to be for 2-way networks with duplicates or 1-way network where the edges have the same weight in both directions.

OK one more question: when it states 'removed x edges of n' the n is always double the number of input edges. This makes sense for the 2-way case, but for the 1-way case are extra edges being added for the opposite direction? I guess I'm confused because I would think that the bi-directional edges needed for the dijkstra shortest path search are being provided already. Or is the n reported to the console just a simple approximation and not representative of the true edge count?

from pandana.

fscottfoti avatar fscottfoti commented on July 19, 2024

For the one way case extra edges are not being added for the opposite direction. It's a bit disconcerting that the n is twice the edges even in the 1-way case. Unfortunately I don't have an answer for that since this is coming from an underlying library and not code we wrote. I do think it works though in the tests that I ran but let me know if you see troublesome results.

from pandana.

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.