Finding the Equation of Cubic Graphs