Skip to content

Insufficient documentation for shortest path functions #152

@linkhochon

Description

@linkhochon

I've created a Simple Weighted DiGraph via the following commands:

using SimpleWeightedGraphs
using Graphs
g = SimpleWeightedDiGraph(start_node, end_node, distance; combine = +) 

The start_node, end_node are 42849-element Vector{Int64} and distance are 42849-element Vector{Float64}. Afetr this command I have an {28649, 42849} directed simple Int64 graph with Float64 weights

However, when I call the following I get an error:

# s is a single node   Int64
Graphs.bellman_ford_shortest_paths(g, s, distance)
# or
bellman_ford_shortest_paths(g, s, distance)
# or
SimpleWeightedDiGraph.bellman_ford_shortest_paths(g, s, distance)

My question is: Given a set of start nodes, end nodes and their associated weights, how one can construct a weighted digraph and then compute bellman ford shortest paths for a set of sources??

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions