public class CorenessVertexProgram extends GraknVertexProgram<String>
https://en.wikipedia.org/wiki/Degeneracy_(graph_theory)#k-Cores
| Constructor and Description |
|---|
CorenessVertexProgram() |
CorenessVertexProgram(long minK) |
| Modifier and Type | Method and Description |
|---|---|
Set<org.apache.tinkerpop.gremlin.process.computer.MemoryComputeKey> |
getMemoryComputeKeys() |
Set<org.apache.tinkerpop.gremlin.process.computer.VertexComputeKey> |
getVertexComputeKeys() |
void |
safeExecute(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
org.apache.tinkerpop.gremlin.process.computer.Messenger<String> messenger,
org.apache.tinkerpop.gremlin.process.computer.Memory memory)
An alternative to the execute method when ghost vertices are an issue.
|
void |
setup(org.apache.tinkerpop.gremlin.process.computer.Memory memory) |
boolean |
terminate(org.apache.tinkerpop.gremlin.process.computer.Memory memory) |
clone, execute, getMessageScopes, getPreferredPersist, getPreferredResultGraph, storeStateloadState, toStringpublic static final String CORENESS
public CorenessVertexProgram()
public CorenessVertexProgram(long minK)
public Set<org.apache.tinkerpop.gremlin.process.computer.VertexComputeKey> getVertexComputeKeys()
public Set<org.apache.tinkerpop.gremlin.process.computer.MemoryComputeKey> getMemoryComputeKeys()
public void setup(org.apache.tinkerpop.gremlin.process.computer.Memory memory)
setup in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgram<String>setup in class GraknVertexProgram<String>public void safeExecute(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
org.apache.tinkerpop.gremlin.process.computer.Messenger<String> messenger,
org.apache.tinkerpop.gremlin.process.computer.Memory memory)
GraknVertexProgramvertex - a vertex that may be a ghostmessenger - Tinker message passing objectmemory - Tinker memory objectpublic boolean terminate(org.apache.tinkerpop.gremlin.process.computer.Memory memory)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.