Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1162

Add VertexProgram.getTransientComputeKeys() for removing scratch-data.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 3.1.0-incubating
    • 3.2.0-incubating
    • process

    Description

      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:

      Set<String> VertexProgram.getTransientComputeKeys()
      

      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().

      Attachments

        Activity

          People

            okram Marko A. Rodriguez
            okram Marko A. Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: