public interface Score<T> extends Comparable<Score<?>>
| Modifier and Type | Method and Description |
|---|---|
default int |
compareTo(Score<?> o)
Compares scores, sorting higher scores to the top.
|
static <T> Score<T> |
create(double score,
int index,
T val) |
T |
node()
The name of graph node
|
int |
nodeId()
The integer index of the node in the underlying graph.
|
double |
score()
The score of the graph node, relative to others.
|
T node()
double score()
int nodeId()
default int compareTo(Score<?> o)
compareTo in interface Comparable<Score<?>>o - Another scorestatic <T> Score<T> create(double score, int index, T val)
Copyright © 2010–2021 Mastfrog Technologies. All rights reserved.