public class WeightedEdge implements Edge{
	private int source;
	private int target;
	private double weight;

	public WeightedEdge(int s, int t, double w){
		source=s;
		target=t;
		weight=w;
	}
	
	public double getWeight(){
		return weight;
	}
	
	public int getSource(){
		return source;
	}

	public int getTarget(){
		return target;
	}

	@Override
	public String toString(){
		return ""+source+"->"+target+"["+weight+"]";
	}
}