Students are allowed to work part-time for 90 full days or 180 days in a year. A graduate is allowed to stay in Germany for 18-24 months depending on his / her course to look for a job after graduation.
Once they find a job they can convert their student permit to a residence permit for taking gainful employment.