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

Consistent behavior of self-referencing edges

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.6
    • 3.2.7, 3.3.1
    • process
    • None

    Description

      Given discussions here:

      https://lists.apache.org/thread.html/adcfa13130026896da215be257fd26b309820c1cd5b5d359ed9cdfa2@%3Cdev.tinkerpop.apache.org%3E

      we needed to include a test to ensure consistency of the traversal behavior around self-referencing edges in relation to

      g.V().bothE()
      g.V().both()
      

      The expected behavior is already present in TinkerGraph and that expected behavior is as follows:

      gremlin> g.addV().as("a").addE("self").to("a").iterate()
      gremlin> g.V().bothE()
      ==>e[19][18-self->18]
      ==>e[19][18-self->18]
      gremlin> g.V().both()
      ==>v[18]
      ==>v[18]
      

      This may break a number of providers as we've not had a test for this behavior until now - we should provide some upgrade documentation to call attention to this issue.

      Attachments

        Issue Links

          Activity

            People

              okram Marko A. Rodriguez
              spmallette Stephen Mallette
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: