Library/BranchGraphNode.php
public function insert(self $branch)
    {
        if (!\in_array($branch, $this->branches)) {
            $this->branches[] = $branch;
        }
    }
public function insert(self $branch)
    {
        if (!\in_array($branch, $this->branches)) {
            $this->branches[] = $branch;
        }
    }
public function insert ( self $ branch ) { if ( ! \ in_array ( $ branch , $ this -> branches ) ) { $ this -> branches [ ] = $ branch ; } }
Inserts a node in the branch graph.

@param BranchGraphNode $branch
Inserts a node in the branch graph .