Find the equation of a given graph