title: How to print out Gremlin pipe / traversal results
body: <p>I have the code below in a file named <code>traversal.groovy</code> (which I call from the command line with <code>gremlin -e traversal.groovy</code>):   </p>
  
  <pre><code>// Begin traversal.groovy //
  
  g = TinkerGraphFactory.createTinkerGraph()
  v = g.v(1)
  
  println v.outE.inV.name
  
  // End traversal.groovy //
  </code></pre>
  
  <p>As you can see, it's very basic; but the output is not what I'm looking for.  The output is </p>
  
  <pre><code>[StartPipe, OutEdgesPipe, InVertexPipe, PropertyPipe(name)]
  </code></pre>
  
  <p>When I run the same code in the gremlin command line, I get what I'm looking for...</p>
  
  <pre><code>gremlin&gt; g = TinkerGraphFactory.createTinkerGraph()
  ==&gt;tinkergraph[vertices:6 edges:6]
  gremlin&gt; v = g.v(1)
  ==&gt;v[1]
  gremlin&gt; v.outE.inV.name
  ==&gt;vadas
  ==&gt;josh
  ==&gt;lop
  </code></pre>
  
  <p>So, how do I access the information that I want that's somehow tucked away in <code>[StartPipe, OutEdgesPipe, InVertexPipe, PropertyPipe(name)]</code>?  Thanks!</p>