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

Preserve path history for min() and max()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.0-incubating
    • None
    • process
    • None

    Description

      Via https://groups.google.com/d/msg/gremlin-users/qZwsvRjw7L4/YyT-s1foBAAJ

      gremlin> g.V().outE().as('e').values('weight').path()
      ==>[v[1], e[9][1-created->3], 0.4]
      ==>[v[1], e[7][1-knows->2], 0.5]
      ==>[v[1], e[8][1-knows->4], 1.0]
      ==>[v[4], e[10][4-created->5], 1.0]
      ==>[v[4], e[11][4-created->3], 0.4]
      ==>[v[6], e[12][6-created->3], 0.2]
      
      gremlin> g.V().outE().as('e').values('weight').max().path()
      ==>[1.0]
      

      Currently all reducing barriers are treated the same (min, max, mean, etc.). But they are indeed different when it comes to path computations. Some of them could preserve the path history, others could not.

      For max() and min(), we could preserve the path history. In fact, in this respect, max() and min() would NOT be ReducingBarrierSteps, but in fact be some sort of "barrier" FilterStep.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pluradj Jason Plurad
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: