title: How to query up to nth level based on direction in Gremlin PipeLine
body: <p>I would like to know know to get child nodes up to the <code>n</code>th level based on direction in a Gremlin PipeLine. I want to write a generalized query that is used to query up to the <code>n</code>th level.</p>
  
  <p>For example, suppose I have a vertex A. Its immediate children are [B,C,D] (level 1). The children at second level are [E,F,G].I want to write a query that give the children at any particular level(ie, at 1 or at 2)</p>