Link to home
Start Free TrialLog in
Avatar of bourou
bourou

asked on

find K-Shortest paths

please help?
I have a graph, I need to find the k shortest paths between node A and node B, I can find the shortest path using Dijkstra but not the k shortest paths, if you can refer me to Java code or to Yen psedocode please
thank u
ASKER CERTIFIED SOLUTION
Avatar of dttri
dttri
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
 The project home page is:
http://www-sop.inria.fr/mascotte/mascopt/
  And it is open source, so you can view the source for the problem you need.
Avatar of bourou
bourou

ASKER

Hi, dttri, I have looked at the way they find the k shortest paths, unfortunatly it fails in certain cases as they remove a path from the graph and search again see this example if you find the path form A to B  ACDB  and destroy it
you will not find path ACD and ADB

             C
         -   -    -
     -       -       -
  -          -          -
A           -             B
  -          -         -
     -       -      -
        -    -    -
            D
thank u dttri, if you find anything else let me know
SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial