stephen mallette created TINKERPOP-1821:
-------------------------------------------

             Summary: Consistent behavior of self-referencing edges
                 Key: TINKERPOP-1821
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1821
             Project: TinkerPop
          Issue Type: Bug
          Components: process
    Affects Versions: 3.2.6
            Reporter: stephen mallette
            Assignee: Marko A. Rodriguez


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

{code}
g.V().bothE()
g.V().both()
{code}

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

{code}
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]
{code}

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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to