public String toString(){
  return v + "->" + w+ " "+ String.format("%5.2f",weight);
}

public String toString ( ) { return v + "->" + w + " " + String . format ( "%5.2f" , weight ) ; }
returns a string representation of the directed edge .
