Class ClusteringCoefficientValue

  • 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.Integer>, org.apache.hugegraph.computer.core.graph.value.Value.Tvalue<java.lang.Integer>, org.apache.hugegraph.computer.core.io.Readable, org.apache.hugegraph.computer.core.io.Writable

    public class ClusteringCoefficientValue
    extends java.lang.Object
    implements org.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue<java.lang.Integer>
    TODO: We could reuse triangle's result to simplify it (and avoid logical differences)
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.hugegraph.computer.core.graph.value.Value

        org.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue<T extends java.lang.Object>, org.apache.hugegraph.computer.core.graph.value.Value.Tvalue<T extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ClusteringCoefficientValue copy()  
      int count()  
      void count​(java.lang.Integer count)  
      int degree()  
      void degree​(java.lang.Integer degree)  
      org.apache.hugegraph.computer.core.graph.value.IdSet idSet()  
      void read​(org.apache.hugegraph.computer.core.io.RandomAccessInput in)  
      java.lang.String toString()  
      java.lang.Integer value()  
      void write​(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
      • Methods inherited from interface org.apache.hugegraph.computer.core.graph.value.Value

        checkAssign, isNumber, string
      • Methods inherited from interface org.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue

        assign, compareTo, valueType
    • Constructor Detail

      • ClusteringCoefficientValue

        public ClusteringCoefficientValue()
    • Method Detail

      • idSet

        public org.apache.hugegraph.computer.core.graph.value.IdSet idSet()
      • count

        public int count()
      • count

        public void count​(java.lang.Integer count)
      • degree

        public int degree()
      • degree

        public void degree​(java.lang.Integer degree)
      • copy

        public ClusteringCoefficientValue copy()
        Specified by:
        copy in interface org.apache.hugegraph.computer.core.graph.value.Value
        Specified by:
        copy in interface org.apache.hugegraph.computer.core.graph.value.Value.CustomizeValue<java.lang.Integer>
      • value

        public java.lang.Integer value()
        Specified by:
        value in interface org.apache.hugegraph.computer.core.graph.value.Value
        Specified by:
        value in interface org.apache.hugegraph.computer.core.graph.value.Value.Tvalue<java.lang.Integer>
      • read

        public void read​(org.apache.hugegraph.computer.core.io.RandomAccessInput in)
                  throws java.io.IOException
        Specified by:
        read in interface org.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:
        write in interface org.apache.hugegraph.computer.core.io.Writable
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object