countMigrations(TimeTree tree)

The number of single-child nodes in the tree where the ‘deme’ attribute changes.

Parameters

Return type

Integer

Examples

  • simpleStructuredCoalescent.lphy