T
- ID typepublic static class AdamicAdar.Result<T> extends Tuple3<T,T,FloatValue> implements PrintableResult, BinaryResult<T>, Comparable<AdamicAdar.Result<T>>
Tuple3
to encapsulate results from the Adamic-Adar algorithm.Modifier and Type | Field and Description |
---|---|
static int |
HASH_SEED |
Constructor and Description |
---|
Result()
No-args constructor.
|
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
|
T |
getVertexId0()
Get the first vertex ID.
|
T |
getVertexId1()
Get the second vertex ID.
|
int |
hashCode() |
void |
setVertexId0(T value)
Set the first vertex ID.
|
void |
setVertexId1(T value)
Set the second vertex ID.
|
String |
toPrintableString()
A human-readable representation of this value.
|
copy, equals, getArity, getField, of, setField, setFields, toString
getFieldNotNull, getTupleClass
public static final int HASH_SEED
public T getVertexId0()
BinaryResult
getVertexId0
in interface BinaryResult<T>
public void setVertexId0(T value)
BinaryResult
setVertexId0
in interface BinaryResult<T>
value
- new vertex IDpublic T getVertexId1()
BinaryResult
getVertexId1
in interface BinaryResult<T>
public void setVertexId1(T value)
BinaryResult
setVertexId1
in interface BinaryResult<T>
value
- new vertex IDpublic FloatValue getAdamicAdarScore()
public String toPrintableString()
PrintableResult
toPrintableString
in interface PrintableResult
public int hashCode()
hashCode
in class Tuple3<T,T,FloatValue>
public int compareTo(AdamicAdar.Result<T> o)
compareTo
in interface Comparable<AdamicAdar.Result<T>>
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.