title: AWS Neptune find id of all the vertices connected to a particular vertice
body: <p>I am trying to get ids of all the vertices connected to a particular vertex. Where id is not "id" property, instead its the id of the node (T.id)</p>
  
  <pre><code>g.V().has(T.id, "id1").both("is")
  ==&gt;v[id2]
  ==&gt;v[id3]
  ==&gt;v[id4]
  </code></pre>
  
  <p>But when I am trying to get only the ids of the vertices I don't get any. </p>
  
  <pre><code>g.V().has(T.id, "id1").both("is").values("id")
  g.V().has(T.id, "id1").both("is").id
  </code></pre>
  
  <p>What I want is something like below:</p>
  
  <pre><code>==&gt;id2
  ==&gt;id3
  ==&gt;id4
  </code></pre>