Skip to content

Commit

Permalink
updated docs in expansion pvalues with computational complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Jones authored and Matthew Jones committed Oct 26, 2021
1 parent 8a13c7f commit 6e8b650
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cassiopeia/tools/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def compute_expansion_pvalues(
This function will add an attribute "expansion_pvalue" to the tree, and
return None unless :param:`copy` is set to True.
On a typical balanced tree, this function will perform in O(n log n) time,
but can be up to O(n^3) on highly unbalanced trees. A future endeavor may
be to impelement the function in O(n) time.
Args:
tree: CassiopeiaTree
min_clade_size: Minimum number of leaves in a subtree to be considered.
Expand Down

0 comments on commit 6e8b650

Please sign in to comment.