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