Multigraphs.jl icon indicating copy to clipboard operation
Multigraphs.jl copied to clipboard

Shortest path

Open filchristou opened this issue 2 years ago • 1 comments

Is there a well-defined way/example of how to solve shortest path for Multigraphs.jl ? Since weights(mg::Multigraph) returns a N x N matrix, where N is the vertices number, I see that there is not the capability to have granular weights per sub-edge. For shortest path giving the minimum of the subedges to the N x N matrix will probably work, but there are complications if I want to find the first k shortest paths.. Are there any guidelines in the matter ?

(sorry for storming the package in the last couple of hours!)

filchristou avatar Jan 26 '23 16:01 filchristou

In the current implementation, there is no capability for different weights on different simple edge in a multi-edge. Hence, the shortest path in Multigraphs.jl is impossible.

ChenZhao44 avatar Jan 26 '23 21:01 ChenZhao44