src/Budkit/Datastore/Model/Graph.php
public function createNode($nodeId, $data = array())
    {

        $node = new Graph\Node($nodeId, $data);
        $node->setGraph($this);
        $this->addNode($node);

        return $node;
    }
public function createNode($nodeId, $data = array())
    {

        $node = new Graph\Node($nodeId, $data);
        $node->setGraph($this);
        $this->addNode($node);

        return $node;
    }
public function createNode ( $ nodeId , $ data = array ( ) ) { $ node = new Graph \ Node ( $ nodeId , $ data ) ; $ node -> setGraph ( $ this ) ; $ this -> addNode ( $ node ) ; return $ node ; }
Creates and adds a Node to the graph if none, already exists

@param type $nodeId
@param type $data
Creates and adds a Node to the graph if none already exists