T
- ID typepublic static class AdamicAdar.Result<T> extends BinaryResultBase<T> implements PrintableResult, Comparable<AdamicAdar.Result<T>>
BinaryResult.MirrorResult<T,RT extends BinaryResult<T>>
Modifier and Type | Field and Description |
---|---|
static int |
HASH_SEED |
Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AdamicAdar.Result<T> o) |
FloatValue |
getAdamicAdarScore()
Get the Adamic-Adar score, equal to the sum over common neighbors of
the inverse logarithm of degree.
|
int |
hashCode() |
void |
setAdamicAdarScore(FloatValue adamicAdarScore)
Set the Adamic-Adar score, equal to the sum over common neighbors of
the inverse logarithm of degree.
|
String |
toPrintableString()
A human-readable representation of this value.
|
String |
toString()
Object.toString() must be overridden to write POJO values in the
same form as Tuple . |
getVertexId0, getVertexId1, setVertexId0, setVertexId1, translate
public static final int HASH_SEED
public FloatValue getAdamicAdarScore()
public void setAdamicAdarScore(FloatValue adamicAdarScore)
adamicAdarScore
- the Adamic-Adar scorepublic String toString()
ResultBase
Object.toString()
must be overridden to write POJO values in the
same form as Tuple
. Values are
comma-separated and enclosed in parenthesis, e.g. "(f0,f1)".toString
in class ResultBase
public String toPrintableString()
PrintableResult
toPrintableString
in interface PrintableResult
public int compareTo(AdamicAdar.Result<T> o)
compareTo
in interface Comparable<AdamicAdar.Result<T>>
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.