Modified Graph classes so their template calls use the this->method approach. This is required for identifying the templated type of the methods. Newer version of g++ requires it for default compilation.