Class PageRank

  • All Implemented Interfaces:
    org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.DoubleValue>

    public class PageRank
    extends java.lang.Object
    implements org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.DoubleValue>
    • Constructor Summary

      Constructors 
      Constructor Description
      PageRank()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterSuperstep​(org.apache.hugegraph.computer.core.worker.WorkerContext context)  
      void beforeSuperstep​(org.apache.hugegraph.computer.core.worker.WorkerContext context)  
      java.lang.String category()  
      void close​(org.apache.hugegraph.computer.core.config.Config config)  
      void compute​(org.apache.hugegraph.computer.core.worker.ComputationContext context, org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex, java.util.Iterator<org.apache.hugegraph.computer.core.graph.value.DoubleValue> messages)  
      void compute0​(org.apache.hugegraph.computer.core.worker.ComputationContext context, org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex)  
      void init​(org.apache.hugegraph.computer.core.config.Config config)  
      java.lang.String name()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PageRank

        public PageRank()
    • Method Detail

      • name

        public java.lang.String name()
        Specified by:
        name in interface org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.DoubleValue>
      • category

        public java.lang.String category()
        Specified by:
        category in interface org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.DoubleValue>
      • compute0

        public void compute0​(org.apache.hugegraph.computer.core.worker.ComputationContext context,
                             org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex)
        Specified by:
        compute0 in interface org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.DoubleValue>
      • compute

        public void compute​(org.apache.hugegraph.computer.core.worker.ComputationContext context,
                            org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex,
                            java.util.Iterator<org.apache.hugegraph.computer.core.graph.value.DoubleValue> messages)
        Specified by:
        compute in interface org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.DoubleValue>
      • init

        public void init​(org.apache.hugegraph.computer.core.config.Config config)
        Specified by:
        init in interface org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.DoubleValue>
      • close

        public void close​(org.apache.hugegraph.computer.core.config.Config config)
        Specified by:
        close in interface org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.DoubleValue>
      • beforeSuperstep

        public void beforeSuperstep​(org.apache.hugegraph.computer.core.worker.WorkerContext context)
        Specified by:
        beforeSuperstep in interface org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.DoubleValue>
      • afterSuperstep

        public void afterSuperstep​(org.apache.hugegraph.computer.core.worker.WorkerContext context)
        Specified by:
        afterSuperstep in interface org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.DoubleValue>