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