public static interface Groups.INodeDistanceProvider
It is used by the hierarchical clustering algorithm in order to determine the distance between any two nodes of a graph.
Modifier and Type | Method and Description |
---|---|
double |
getDistance(Node n1,
Node n2)
Returns the distance between two given nodes of a graph.
|
double getDistance(Node n1, Node n2)
Implementations of this method have to guarantee that the returned value is greater or equal to zero. Furthermore, the
distances between two nodes have to be symmetric, i.e., the distance between node n1
and n2
is equal to
the distance between node n2
and n1
.
n1
- the first noden2
- the second node