src/ADT/Graph/NodeSet.php
public function addNode( $nodeName, $nodeValue = false )
	{
		$newNode = new ADT_Graph_Node( $nodeName, $nodeValue );
		if( !$this->isNode( $newNode ) )
		{
			$this->nodes[] = $newNode;
			return $newNode;
		}
		else
			return $this->getNode( $nodeName );
	}
public function addNode( $nodeName, $nodeValue = false )
	{
		$newNode = new ADT_Graph_Node( $nodeName, $nodeValue );
		if( !$this->isNode( $newNode ) )
		{
			$this->nodes[] = $newNode;
			return $newNode;
		}
		else
			return $this->getNode( $nodeName );
	}
public function addNode ( $ nodeName , $ nodeValue = false ) { $ newNode = new ADT_Graph_Node ( $ nodeName , $ nodeValue ) ; if ( ! $ this -> isNode ( $ newNode ) ) { $ this -> nodes [ ] = $ newNode ; return $ newNode ; } else return $ this -> getNode ( $ nodeName ) ; }
Adds a new Node and returns reference of this Node.
@access		public
@param		string			$nodeName		Name of the new Node
@param		string			$nodeValue		Value of the new Node
@return 	ADT_Graph_Node
Adds a new Node and returns reference of this Node .