-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Milestone
Description
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??
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation