public function addNode(Concentrate_Graph_Node $node) { $key = $node->getKey(); if (!isset($this->nodes[$key])) { $this->nodes[$key] = $node; $node->setGraph($this); } return $this; }