src/Budkit/Datastore/Model/Graph.php
public function addNode(&$node)
    {
        //Nodes must be an instance graph Node;
        if (!$this->isNode($node)) {
            throw new \Exception("Node must be an instance of Graph\Node", PLATFORM_ERROR);
        }
        $nodedId = $node->getId();
        if (!empty($nodedId) && !isset($this->nodeSet[$node->getId()])) {
            $this->nodeSet[$node->getId()] = &$node;
        }
        return $this;
    }
public function addNode(&$node)
    {
        //Nodes must be an instance graph Node;
        if (!$this->isNode($node)) {
            throw new \Exception("Node must be an instance of Graph\Node", PLATFORM_ERROR);
        }
        $nodedId = $node->getId();
        if (!empty($nodedId) && !isset($this->nodeSet[$node->getId()])) {
            $this->nodeSet[$node->getId()] = &$node;
        }
        return $this;
    }
public function addNode ( & $ node ) { //Nodes must be an instance graph Node; if ( ! $ this -> isNode ( $ node ) ) { throw new \ Exception ( "Node must be an instance of Graph\Node" , PLATFORM_ERROR ) ; } $ nodedId = $ node -> getId ( ) ; if ( ! empty ( $ nodedId ) && ! isset ( $ this -> nodeSet [ $ node -> getId ( ) ] ) ) { $ this -> nodeSet [ $ node -> getId ( ) ] = & $ node ; } return $ this ; }
Adds a node to the current graph

@param type $node
Adds a node to the current graph