|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mhhe.clrs2e.AllPairsShortestPaths | +--com.mhhe.clrs2e.APSPMatrixMult
Abstract class that defines the extendShortestPaths
method used by subclasses of AllPairsShortestPaths
.
Constructor Summary | |
APSPMatrixMult()
|
Method Summary | |
protected double[][] |
extendShortestPaths(double[][] l,
double[][] w)
Extends the shortest paths given in one matrix by the edge weights given in another matrix. |
Methods inherited from class com.mhhe.clrs2e.AllPairsShortestPaths |
computeShortestPaths, graphToMatrix, printMatrix, printMatrix |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public APSPMatrixMult()
Method Detail |
protected double[][] extendShortestPaths(double[][] l, double[][] w)
l
- Matrix of current shortest-path weights.w
- Matrix of edge weights.
l
extended by the weights of the edges in
w
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |