public double shortestDistance(V v1,V v2){
  return d[index(v1)][index(v2)];
}

public double shortestDistance ( V v1 , V v2 ) { return d [ index ( v1 ) ] [ index ( v2 ) ] ; }
retrieves the shortest distance between two vertices .
