title: How to remove cyclic vertex list from list of outer vertexes
body: <p>I am new in dse graph, I want to create gremlin query which gives me list of all vertex which is linked from specified vertex but from this list I want to remove those list which are linked cyclic.</p>
  
  <pre><code>e.g.
  
  A --&gt; B
  A --&gt; C
  A --&gt; D
  B --&gt; A
  </code></pre>
  
  <p>If I have above relation then I want below vertex list as result</p>
  
  <pre><code>[C,D]
  </code></pre>
  
  <p>B and A should not be in above list as it has cyclic relation</p>
  
  <p>I have below two separate query to find all linked vertexes and to find cyclic vertex</p>
  
  <pre><code>g.V().has('id','id').as('mainV').outE('Prerequisite').inV();
  
  g.V().has('id','id').as('mainV').out().out().cyclicPath().path().unfold().dedup();
  </code></pre>
  
  <p>Could you please help me to find exact query to achieve my requirement.</p>