private function createGraph() { $graph = Graph::create("cfg"); foreach ($this->options['graph'] as $name => $value) { $setter = 'set' . $name; $graph->{$setter}($value); } return $graph; }