Giter Club home page Giter Club logo

Comments (5)

sbromberger avatar sbromberger commented on August 22, 2024

Why are you passing two integers to dijkstra?

from metagraphs.jl.

elchiconuevo avatar elchiconuevo commented on August 22, 2024

The second integer (the sink node) was meant for another function enumerate_paths. This was a typo

from metagraphs.jl.

sbromberger avatar sbromberger commented on August 22, 2024

So are you still having a problem?

julia> m = MetaDiGraph(DiGraph(10,20))
{10, 20} directed Int64 metagraph with Float64 weights defined by :weight (default weight 1.0)

julia> dijkstra_shortest_paths(m, 1)
LightGraphs.DijkstraState{Float64,Int64}([0, 5, 7, 2, 1, 10, 5, 9, 5, 1], [0.0, 2.0, 3.0, 3.0, 1.0, 2.0, 2.0, 3.0, 2.0, 1.0], Array{Int64,1}[Int64[], Int64[], Int64[], Int64[], Int64[], Int64[], Int64[], Int64[], Int64[], Int64[]], [1, 2, 3, 2, 1, 1, 1, 3, 2, 1], Int64[])

from metagraphs.jl.

elchiconuevo avatar elchiconuevo commented on August 22, 2024

No, this was a non-issue. It was a typo that caused this error.

from metagraphs.jl.

sbromberger avatar sbromberger commented on August 22, 2024

Glad to hear - thanks for the update.

from metagraphs.jl.

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.