Changed IntegerWeightedEdge to Double, Fixed some unchecked warnings