src/Datastructure/Maps/HashMap.php
public function addNode(Node $node): bool {
        $added = $this->add($node->getKey(), $node->getValue());
        return $added;
    }
public function addNode(Node $node): bool {
        $added = $this->add($node->getKey(), $node->getValue());
        return $added;
    }
public function addNode ( Node $ node ) : bool { $ added = $ this -> add ( $ node -> getKey ( ) , $ node -> getValue ( ) ) ; return $ added ; }
adds a node to the hash map

@param Node $node
@return bool
@throws \doganoo\PHPAlgorithms\common\Exception\InvalidKeyTypeException
@throws \doganoo\PHPAlgorithms\common\Exception\UnsupportedKeyTypeException
adds a node to the hash map