How do you get an quadratic equation form an graph?

That depends on what you know about the graph.

If you know the vertex and it is upright (holds water) then
(x-h)^2 = 4a(y-k)
vertex at (h,k)
then put in a point other than the vertex to solve for a