|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgps.util.FloydWarshall
public class FloydWarshall
FloydWarshall algorithm to calculate all pairs delay and predecessor matrix. Modified by Weishuai Yang Originally written by Rahul Simha
| Constructor Summary | |
|---|---|
FloydWarshall()
|
|
| Method Summary | |
|---|---|
float[][] |
allPairsShortestPaths(float[][] adjMatrix)
calculates all pairs delay |
int[][] |
getPK()
gets predecessor matrix |
void |
initialize(int numVertices)
initialization matrix |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FloydWarshall()
| Method Detail |
|---|
public void initialize(int numVertices)
numVertices - number of nodespublic float[][] allPairsShortestPaths(float[][] adjMatrix)
adjMatrix - original delay matrix
public int[][] getPK()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||