title: Same query on the same graph returns different results on Neptune vs Gremlify
body: <p>I have a large production graph on Neptune which I query using Gremlin Python. I have written a query that should return paths that contain all vertices and edges connected in any way to the queried vertex (root vertex).</p>
  <p>It seemed as though this query wasn't always returning all the vertices and edges I expected it to, so I made a small sample graph in Neptune, and the same graph on Gremlify: <a href="https://gremlify.com/d4xp81hwd1g" rel="nofollow noreferrer">https://gremlify.com/d4xp81hwd1g</a></p>
  <p>I then ran the query on Neptune and Gremlify twice with a different root vertex for each. In both cases, the paths returned from Neptune were always a subset of the paths returned from Gremlify.</p>
  <p><strong>Neptune graph creation:</strong></p>
  <pre><code>g.addV(&quot;c&quot;).property(id, &quot;c139&quot;).iterate()
  g.addV(&quot;c&quot;).property(id, &quot;c121&quot;).iterate()
  g.addV(&quot;c&quot;).property(id, &quot;c146&quot;).iterate()
  g.addV(&quot;c&quot;).property(id, &quot;c128&quot;).iterate()
  
  g.addV(&quot;d&quot;).property(id, &quot;d5E0&quot;).iterate()
  g.addV(&quot;d&quot;).property(id, &quot;d546&quot;).iterate()
  g.addV(&quot;d&quot;).property(id, &quot;d434&quot;).iterate()
  g.addV(&quot;d&quot;).property(id, &quot;dDE5&quot;).iterate()
  g.addV(&quot;d&quot;).property(id, &quot;dFFE&quot;).iterate()
  
  g.addE(&quot;has_d&quot;).from_(g.V(&quot;c139&quot;)).to(g.V(&quot;d5E0&quot;)).property(id, &quot;c139_d5E0&quot;).iterate()
  g.addE(&quot;has_d&quot;).from_(g.V(&quot;c139&quot;)).to(g.V(&quot;d546&quot;)).property(id, &quot;c139_d546&quot;).iterate()
  g.addE(&quot;has_d&quot;).from_(g.V(&quot;c121&quot;)).to(g.V(&quot;d5E0&quot;)).property(id, &quot;c121_d5E0&quot;).iterate()
  g.addE(&quot;has_d&quot;).from_(g.V(&quot;c121&quot;)).to(g.V(&quot;d546&quot;)).property(id, &quot;c121_d546&quot;).iterate()
  g.addE(&quot;has_d&quot;).from_(g.V(&quot;c121&quot;)).to(g.V(&quot;dDE5&quot;)).property(id, &quot;c121_dDE5&quot;).iterate()
  g.addE(&quot;has_d&quot;).from_(g.V(&quot;c121&quot;)).to(g.V(&quot;dFFE&quot;)).property(id, &quot;c121_dFFE&quot;).iterate()
  g.addE(&quot;has_d&quot;).from_(g.V(&quot;c121&quot;)).to(g.V(&quot;d434&quot;)).property(id, &quot;c121_d434&quot;).iterate()
  g.addE(&quot;has_d&quot;).from_(g.V(&quot;c146&quot;)).to(g.V(&quot;dDE5&quot;)).property(id, &quot;c146_dDE5&quot;).iterate()
  g.addE(&quot;has_d&quot;).from_(g.V(&quot;c128&quot;)).to(g.V(&quot;dFFE&quot;)).property(id, &quot;c128_dFFE&quot;).iterate()
  g.addE(&quot;has_d&quot;).from_(g.V(&quot;c128&quot;)).to(g.V(&quot;d434&quot;)).property(id, &quot;c128_d434&quot;).iterate()
  </code></pre>
  <p><strong>Neptune query:</strong></p>
  <pre><code>paths = (
      g.V('c121')
      .repeat(bothE().simplePath().otherV())
      .until(not_(bothE().simplePath()))
      .path()
      .by(valueMap(True))
      .toList()
  )
  
  for path in paths:
      for element in path:
          print(element[id], end = ' -&gt; ')
      print('')
  </code></pre>
  <p>The Gremlify graph and query can be seen in the link above.</p>
  <p><strong>Results:</strong></p>
  <pre><code>ROOT VERTEX: c121
  
  Neptune:  c121 -&gt; c121_dDE5 -&gt; dDE5 -&gt; c146_dDE5 -&gt; c146
  Gremlify: c121 -&gt; c121_dDE5 -&gt; dDE5 -&gt; c146_dDE5 -&gt; c146
  
  Neptune:  c121 -&gt; c121_d5E0 -&gt; d5E0 -&gt; c139_d5E0 -&gt; c139
  Gremlify: c121 -&gt; c121_d5E0 -&gt; d5E0 -&gt; c139_d5E0 -&gt; c139 -&gt; c139_d546 -&gt; d546 -&gt; c121_d546 -&gt; c121
  
  Neptune:  c121 -&gt; c121_dFFE -&gt; dFFE -&gt; c128_dFFE -&gt; c128
  Gremlify: c121 -&gt; c121_dFFE -&gt; dFFE -&gt; c128_dFFE -&gt; c128 -&gt; c128_d434 -&gt; d434 -&gt; c121_d434 -&gt; c121
  
  Neptune:  c121 -&gt; c121_d434 -&gt; d434 -&gt; c128_d434 -&gt; c128
  Gremlify: c121 -&gt; c121_d434 -&gt; d434 -&gt; c128_d434 -&gt; c128 -&gt; c128_dFFE -&gt; dFFE -&gt; c121_dFFE -&gt; c121
  
  Neptune:  c121 -&gt; c121_d546 -&gt; d546 -&gt; c139_d546 -&gt; c139 -&gt;
  Gremlify: c121 -&gt; c121_d546 -&gt; d546 -&gt; c139_d546 -&gt; c139 -&gt; c139_d5E0 -&gt; d5E0 -&gt; c121_d5E0 -&gt; c121
  
  ROOT VERTEX: c139
  
  Neptune:  c139 -&gt; c139_d546 -&gt; d546 -&gt; c121_d546 -&gt; c121
  Gremlify: c139 -&gt; c139_d546 -&gt; d546 -&gt; c121_d546 -&gt; c121 -&gt; c121_d5E0 -&gt; d5E0 -&gt; c139_d5E0 -&gt; c139
  
  Neptune:  c139 -&gt; c139_d546 -&gt; d546 -&gt; c121_d546 -&gt; c121
  Gremlify: c139 -&gt; c139_d546 -&gt; d546 -&gt; c121_d546 -&gt; c121 -&gt; c121_dDE5 -&gt; dDE5 -&gt; c146_dDE5 -&gt; c146
  
  Neptune:  c139 -&gt; c139_d5E0 -&gt; d5E0 -&gt; c121_d5E0 -&gt; c121
  Gremlify: c139 -&gt; c139_d5E0 -&gt; d5E0 -&gt; c121_d5E0 -&gt; c121 -&gt; c121_d546 -&gt; d546 -&gt; c139_d546 -&gt; c139
  
  Neptune:  c139 -&gt; c139_d5E0 -&gt; d5E0 -&gt; c121_d5E0 -&gt; c121
  Gremlify: c139 -&gt; c139_d5E0 -&gt; d5E0 -&gt; c121_d5E0 -&gt; c121 -&gt; c121_dDE5 -&gt; dDE5 -&gt; c146_dDE5 -&gt; c146
  
  Neptune:  c139 -&gt; c139_d546 -&gt; d546 -&gt; c121_d546 -&gt; c121 -&gt; c121_dFFE -&gt; dFFE
  Gremlify: c139 -&gt; c139_d546 -&gt; d546 -&gt; c121_d546 -&gt; c121 -&gt; c121_dFFE -&gt; dFFE -&gt; c128_dFFE -&gt; c128 -&gt; c128_d434 -&gt; d434 -&gt; c121_d434 -&gt; c121
  
  Neptune:  c139 -&gt; c139_d546 -&gt; d546 -&gt; c121_d546 -&gt; c121 -&gt; c121_d434 -&gt; d434
  Gremlify: c139 -&gt; c139_d546 -&gt; d546 -&gt; c121_d546 -&gt; c121 -&gt; c121_d434 -&gt; d434 -&gt; c128_d434 -&gt; c128 -&gt; c128_dFFE -&gt; dFFE -&gt; c121_dFFE -&gt; c121
  
  Neptune:  c139 -&gt; c139_d5E0 -&gt; d5E0 -&gt; c121_d5E0 -&gt; c121 -&gt; c121_dFFE -&gt; dFFE
  Gremlify: c139 -&gt; c139_d5E0 -&gt; d5E0 -&gt; c121_d5E0 -&gt; c121 -&gt; c121_dFFE -&gt; dFFE -&gt; c128_dFFE -&gt; c128 -&gt; c128_d434 -&gt; d434 -&gt; c121_d434 -&gt; c121
  
  Neptune:  c139 -&gt; c139_d5E0 -&gt; d5E0 -&gt; c121_d5E0 -&gt; c121 -&gt; c121_d434 -&gt; d434
  Gremlify: c139 -&gt; c139_d5E0 -&gt; d5E0 -&gt; c121_d5E0 -&gt; c121 -&gt; c121_d434 -&gt; d434 -&gt; c128_d434 -&gt; c128 -&gt; c128_dFFE -&gt; dFFE -&gt; c121_dFFE -&gt; c121
  </code></pre>
  <p>Why am I seeing these different results? And how can I achieve the expected results I am getting in Gremlify with my Python queries on Neptune?</p>