title: Finding vertices without a particular edge with gremlin
body: <p>I'm able to find all of my <code>tag</code> vertex points which have an edge labeled <code>tagged</code> using:</p>
  
  <pre><code>gremlin&gt; g.V().hasLabel('tag').inE().hasLabel('tagged')
  ==&gt;e[eas0-109ds-e8l-y8oo][1691776-tagged-&gt;1597560]
  ==&gt;e[ed5c-109ds-e8l-1181s][1691776-tagged-&gt;1736704]
  </code></pre>
  
  <p>Now, I would like to remove all of the <code>tag</code> vertices which do not have an edge labeled <code>tagged</code>.  When I use this command to find these vertices:</p>
  
  <p><code>gremlin&gt; g.V().hasLabel('tag').inE().hasNot('label', 'tagged')</code></p>
  
  <p>I get the error message <code>No signature of method: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.DefaultGraphTraversal.hasNot() is applicable for argument types: (java.lang.String, java.lang.String) values: [label, tagged]</code></p>
  
  <p>How would I phrase this query?</p>