infovis.graph.algorithm
Class DijkstraShortestPath
java.lang.Object
infovis.graph.algorithm.Algorithm
infovis.graph.algorithm.DijkstraShortestPath
public class DijkstraShortestPath
- extends Algorithm
Class DijkstraShortestPath
- Version:
- $Revision: 1.6 $
- Author:
- Jean-Daniel Fekete
DijkstraShortestPath
public DijkstraShortestPath(Graph graph,
NumberColumn edgeWeights,
boolean cached)
DijkstraShortestPath
public DijkstraShortestPath(Graph graph,
boolean cached)
DijkstraShortestPath
public DijkstraShortestPath(Graph graph)
allShortestPaths
public static DoubleMatrix2D allShortestPaths(Graph graph,
NumberColumn edgeWeights,
DoubleMatrix2D matrix)
isCached
public boolean isCached()
setCached
public void setCached(boolean cached)
getEdgeWeight
public double getEdgeWeight(int edge)
shortestPath
public DijkstraShortestPath.Predecessor shortestPath(int from,
int to)
allShortestPaths
public OpenIntObjectHashMap allShortestPaths(int from)
getWeight
public static double getWeight(Object o)
getVertex
public static int getVertex(Object o)
getPred
public static int getPred(Object o)
getPredecessor
public DijkstraShortestPath.Predecessor getPredecessor(int from,
DijkstraShortestPath.Predecessor p)
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.