cs132.dijkstra
Class UnitCost

java.lang.Object
  extended by cs132.dijkstra.WebPageCostModel
      extended by cs132.dijkstra.UnitCost
All Implemented Interfaces:
EdgeModel<WebPage>

public class UnitCost
extends WebPageCostModel

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

UnitCost

public UnitCost()
Method Detail

cost

public int cost(WebPage from,
                WebPage to)
Description copied from interface: EdgeModel
Provide the cost/weight of the edge from the from element to the to element.



Web Accessibility