src/main/java/org/jboss/util/graph/Vertex.java
public boolean hasEdge(Edge<T> e)
   {
      if (e.getFrom() == this)
         return outgoingEdges.contains(e);
      else if (e.getTo() == this)
         return incomingEdges.contains(e);
      else 
         return false;
   }
public boolean hasEdge(Edge<T> e)
   {
      if (e.getFrom() == this)
         return outgoingEdges.contains(e);
      else if (e.getTo() == this)
         return incomingEdges.contains(e);
      else 
         return false;
   }
Check the vertex for either an incoming or outgoing edge
mathcing e.

@param e the edge to check
@return true it has an edge