Solving Cubic Polynomials Using Graphs