@Override
	public boolean equals(Object edge) {
		if (edge == null) return false;
	    if (edge == this) return true;
	    if (!(edge instanceof Edge))return false;
	    
	    Edge compared = (Edge)edge;
	    if ((compared.getFrom() == this.getFrom()
	    		&& compared.getTo() == this.getTo())
	    	||(compared.getTo() == this.getFrom() 
	    		&& compared.getFrom() == this.getTo())) return true;
	    
		return false;
	}