I am about to graduate, majoring in software engineering. I don't know whether to go to graduate school or go to the company in the future

First of all, we should treat our ability level correctly.

If your school is a well-known brand school with excellent ability, you can enter the graduate school for further study, which is definitely more promising than going to the company.

If your school is average and your ability is average or good, joining the company is a better choice.