src/main/java/org/jboss/util/graph/Vertex.java
public int cost(Vertex<T> dest)
   {
      if (dest == this)
         return 0;
         
      Edge<T> e = findEdge(dest);
      int cost = Integer.MAX_VALUE;
      if (e != null)
         cost = e.getCost();
      return cost;
   }
public int cost(Vertex<T> dest)
   {
      if (dest == this)
         return 0;
         
      Edge<T> e = findEdge(dest);
      int cost = Integer.MAX_VALUE;
      if (e != null)
         cost = e.getCost();
      return cost;
   }
What is the cost from this vertext to the dest vertex.

@param dest - the destination vertex.
@return Return Integer.MAX_VALUE if we have no edge to dest,
0 if dest is this vertex, the cost of the outgoing edge
otherwise.