sim.field.network.stats
Interface EdgeMetric
- All Known Implementing Classes:
- UnitEdgeMetric, WeightedEdgeMetric
public interface EdgeMetric
This interface provides a unified way of dealing with the weight of an edge. The only method, getWeight,
is supposed to compute and return the weight of the edge.
Most statistics use this function call to compute different metrics related to the network. One may set the
weight of all edges to 1 in order to compute distances between nodes in terms of the number of edges that
need to be traversed. Alternatively, using real weights for the edges results in algorithms computing real
distances between the nodes.
Method Summary |
double |
getWeight(Edge edge)
Returns the weight of the edge. |
getWeight
double getWeight(Edge edge)
- Returns the weight of the edge.