Proposes a move in state space.
This operator changes a beast.tree.
Implements branch exchange operations. There is a NARROW and WIDE variety. The narrow exchange is very similar to a rooted-beast.tree nearest-neighbour interchange but with the restriction that node height must remain consistent.
Implement Narrow and Wide Exchange for sampled ancestor trees.Narrow move chooses a random internal node (not a fake node) with two non-leaf children.Then it takes the older child of this node and exchange one of its children (or just a childif there is only one) with the younger child. Wide remains the same as for regular trees.
isNarrow, tree, markclades, weight
 
| type: java.lang.Boolean |
| if true (default) a narrow exchange is performed, otherwise a wide exchange |
| Optional input. Default: true |
 
| type: beast.base.evolution.tree.Tree |
| beast.tree on which this operation is performed |
| Required input |
 
| type: java.lang.Boolean |
| Mark all ancestors of nodes changed by the operator as changed, up to the MRCA of all nodes changed by the operator. |
| Optional input. Default: false |
 
| type: java.lang.Double |
| weight with which this operator is selected |
| Required input |