|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcs132.dijkstra.WebPageCostModel
cs132.dijkstra.CharacterDistance
public class CharacterDistance
This provides a cost model for web page links based on the number of characters in the to URL that occur after the common prefix of the two URL's.
| Constructor Summary | |
|---|---|
CharacterDistance()
|
|
| 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 CharacterDistance()
| 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 | |||||||||