JKShortestPaths

(no tags)

Algorithmia Platform License · Internet Access · Calls Other Algorithms

Run an Example

[
  {
    "rankingPathElement": {
      "weight": 2,
      "nHops": 2,
      "prevEdge": "b-c",
      "prevPathElement": {
        "nHops": 1,
        "prevEdge": "a-b",
        "prevPathElement": {
          "nHops": 0,
          "vertex": "a"
        },
        "vertex": "b"
      },
      "vertex": "c"
    }
  }
]

Install & Use

Use

curl -X POST -d '[{
  "a": ["b"],
  "b": ["c"],
  "c": []
}, 
"a", 
"c",
1]' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/graph/JKShortestPaths/0.1.0