@Override
    public boolean equals(Object other)
    {
        if (other == null)
            return false;
        else if (other instanceof WeightedPoint)
        {
            WeightedPoint otherWp = (WeightedPoint)other;
            return (otherWp.row == row && otherWp.col == col);
        }
        return false;
    }