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

Traversal.reverse()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Done
    • None
    • 3.0.0-incubating
    • process
    • None

    Description

      currently calls reverse() on each step. While that has the right semantics in some cases, i.e.

      v.outE('knows').has('weight',5).inV
      

      gets reversed to:

      v.inE('knows').has('weight',5).outV
      

      More complex traversals don't get reversed correctly:

      v.outE('knows').has('weight',5).inV.outE('married').interval('since',0,10).inV
      

      becomes

      v.inE('knows').has('weight',5).outV.inE('married').interval('since',0,10).outV
      

      whereas the "married" and "knows" should be flipped. Hence, more thought needs to be given to traversal reversal in the general case.

      Attachments

        Activity

          People

            okram Marko A. Rodriguez
            mbroecheler Matthias Broecheler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: