|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcs132.dijkstra.WebPageCostModel
cs132.dijkstra.UnitCost
public class UnitCost
This provides a cost model for web page links so that each link is distance 1.
| Constructor Summary | |
|---|---|
UnitCost()
|
|
| Method Summary | |
|---|---|
int |
cost(WebPage from,
WebPage to)
Provide the cost/weight of the edge from the from element to the to element. |
| Methods inherited from class cs132.dijkstra.WebPageCostModel |
|---|
getSuccessors |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnitCost()
| Method Detail |
|---|
public int cost(WebPage from,
WebPage to)
EdgeModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||