Added path weights to Path.java.