Class KcoreValue
- java.lang.Object
-
- org.apache.hugegraph.computer.algorithm.community.kcore.KcoreValue
-
- All Implemented Interfaces:
java.lang.Comparable<org.apache.hugegraph.computer.core.graph.value.Value>,org.apache.hugegraph.computer.core.graph.value.Value,org.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue<java.lang.Object>,org.apache.hugegraph.computer.core.graph.value.Value.Tvalue<java.lang.Object>,org.apache.hugegraph.computer.core.io.Readable,org.apache.hugegraph.computer.core.io.Writable
public class KcoreValue extends java.lang.Object implements org.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue<java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description KcoreValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanactive()KcoreValuecopy()org.apache.hugegraph.computer.core.graph.id.Idcore()voidcore(org.apache.hugegraph.computer.core.graph.id.Id core)intdecreaseDegree(int decrease)intdegree()voiddegree(int degree)voidread(org.apache.hugegraph.computer.core.io.RandomAccessInput in)java.lang.StringtoString()java.lang.Objectvalue()voidwrite(org.apache.hugegraph.computer.core.io.RandomAccessOutput out)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
degree
public void degree(int degree)
-
degree
public int degree()
-
decreaseDegree
public int decreaseDegree(int decrease)
-
active
public boolean active()
-
core
public void core(org.apache.hugegraph.computer.core.graph.id.Id core)
-
core
public org.apache.hugegraph.computer.core.graph.id.Id core()
-
copy
public KcoreValue copy()
- Specified by:
copyin interfaceorg.apache.hugegraph.computer.core.graph.value.Value- Specified by:
copyin interfaceorg.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue<java.lang.Object>
-
read
public void read(org.apache.hugegraph.computer.core.io.RandomAccessInput in) throws java.io.IOException- Specified by:
readin interfaceorg.apache.hugegraph.computer.core.io.Readable- Throws:
java.io.IOException
-
write
public void write(org.apache.hugegraph.computer.core.io.RandomAccessOutput out) throws java.io.IOException- Specified by:
writein interfaceorg.apache.hugegraph.computer.core.io.Writable- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
value
public java.lang.Object value()
- Specified by:
valuein interfaceorg.apache.hugegraph.computer.core.graph.value.Value- Specified by:
valuein interfaceorg.apache.hugegraph.computer.core.graph.value.Value.Tvalue<java.lang.Object>
-
-