Marko A. Rodriguez created TINKERPOP-1162: ---------------------------------------------
Summary: Add VertexProgram.getTransientComputeKeys() for removing scratch-data. Key: TINKERPOP-1162 URL: https://issues.apache.org/jira/browse/TINKERPOP-1162 Project: TinkerPop Issue Type: Improvement Components: process Affects Versions: 3.1.0-incubating Reporter: Marko A. Rodriguez Assignee: Marko A. Rodriguez Fix For: 3.2.0-incubating When you run a PageRankVertexProgram or a PeerPressureVertexProgram, you have an {{edgeCount}} property which is used for determining the weight distribution. This is just some "scratch pad data." We need a way to tell the GraphComputer which properties are "scratch pad" and thus, delete them before outputting the `ComputerResult`. I propose: {code} Set<String> VertexProgram.getTransientComputeKeys() {code} We can have a default that returns {{Collections.emptySet()}}. This would be breaking as the GraphComputer provider will need to handle dropping such properties. This, of course, will be verified in a {{GraphComputerTest.shouldSupportTransientProperties()}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)