public class HopCountLinkWeight extends Object implements LinkWeight
| Constructor and Description |
|---|
HopCountLinkWeight()
Creates a new hop-count weight.
|
HopCountLinkWeight(int indirectLinkCost)
Creates a new hop-count weight with the specified cost of indirect links.
|
| Modifier and Type | Method and Description |
|---|---|
double |
weight(TopologyEdge edge)
Returns the weight of the given edge as a unit-less number.
|
public HopCountLinkWeight()
public HopCountLinkWeight(int indirectLinkCost)
indirectLinkCost - indirect link costpublic double weight(TopologyEdge edge)
EdgeWeightweight in interface EdgeWeight<TopologyVertex,TopologyEdge>edge - edge to be weighed