Changed $graph to $this->graph