Uploaded image for project: 'Commons Sandbox'
  1. Commons Sandbox
  2. SANDBOX-332

[graph] add FloydWarshall algorithm implementation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Graph
    • Labels:
      None

      Description

      Hi all, I implemented the Floyd Warshall algorithm. This algorithm finds shortest paths between every pair of vertices.

      I based my implementation on the standard algorithm that creates a matrix NxN with all weights of the shortest paths.
      Futhermore I added a Map that contains all paths.

        Attachments

        1. patchAddFloydWarshallImpl_modified.patch
          29 kB
          Marco Speranza
        2. patchAddFloydWarshallImpl.patch
          19 kB
          Marco Speranza

          Activity

            People

            • Assignee:
              simone.tripodi Simone Tripodi
              Reporter:
              marco.speranza Marco Speranza
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: