title: Get result as a sub graph rather than vertice : Gremlin - orient-db
body: <p>Hi : I am a neebie in Gremlin and Orient-db. I was playing around with Gremlin and orient db in java. I was able to query my vertices and edges using the available methods and get the results.I am using back("Alias-name") to get the result vertices of my query.</p>
  
  <p>My question is can I get a graph of all the result vertices ( the related graph and the information of the result) since right now I am able to get the vertices but I want the entire "sub graph" information of my resultant vertices in the same query.</p>
  
  <p>Any help is greatly appreciated.</p>
  
  <p>Here is a code with generic example:</p>
  
  <pre><code>GremlinPipeline startPipe = pipe.has("friend-name", "friend-name")
              .in("friend-depends").as("friend-depends")
              .outE("resource-depends").inV()
              .has("resource-name", "car")
              .back("friend-depends");
  
  v(Friend)[#15:13]
  v(Friend)[#15:7]
  v(Friend)[#15:12]
  </code></pre>
  
  <p>The results are right but I would like to get the results as </p>
  
  <pre><code>Friend#15:13{friend-name:Frank,Friend-type:Personal,in_depends:#17:10 (friend of friends),... with edges} v2
  </code></pre>
  
  <p>Thanks,
  Sabari</p>