Quadratic And Cubic Graphs And Their Equations