public function contains(Node $node)
    {
        foreach ($this->links as $linked_node) {
            if ($linked_node == $node) {
                return true;
            }
        }

        return false;
    }
public function contains(Node $node)
    {
        foreach ($this->links as $linked_node) {
            if ($linked_node == $node) {
                return true;
            }
        }

        return false;
    }
public function contains ( Node $ node ) { foreach ( $ this -> links as $ linked_node ) { if ( $ linked_node == $ node ) { return true ; } } return false ; }
Search for node in its relations

@access public
@return boolean true if found
@param Node $node the node to search for
Search for node in its relations