Please see here for details of the Graduate visa on the Home Office website.
The main criteria are that you are in the UK on a Student visa, that you have successfully completed an eligible course and that this has been reported by the University to the Home Office, but you should check all the criteria before you apply.