Added approach attribute to the PolynomialGraph class.