Many inputs (in particular, each input greater than 6) correspond to 2 different outputs, so this is not the graph of a function.