public class Dijkstra extends Object
| Constructor and Description |
|---|
Dijkstra() |
| Modifier and Type | Method and Description |
|---|---|
static void |
computePaths(Vertex source)
Estimates the shortest graph paths from an initial vertex "source" to
the rest vertices.
|
static List<Vertex> |
getShortestPathTo(Vertex target)
Returns the set of vertices that are included to the graph path between
current vertex and vertex "target".
|
static List<Triple> |
printTriplesFromPath(List<Vertex> path)
Returns the RDF triples which constitute the given graph path.
|
public static void computePaths(Vertex source)
source - The initial vertexpublic static List<Vertex> getShortestPathTo(Vertex target)
target - The final vertex of the graph path.Copyright © 2016. All rights reserved.