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 .