Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/LineageTree/lineageTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ def nodes(self) -> frozenset[int]:
"""Nodes of the tree"""
return frozenset(self._successor.keys())

@dynamic_property
def number_of_nodes(self) -> int:
return len(self.nodes)

@dynamic_property
def depth(self) -> dict[int, int]:
"""The depth of each node in the tree."""
Expand Down
1 change: 1 addition & 0 deletions src/LineageTree/lineageTreeManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ def cross_lineage_edit_distance(
The alignment between the nodes by the subtrees spawned by the nodes n1,n2 and the normalization function.`
tuple(tree,tree), optional
The two trees that have been mapped to each other.
Returned if `return_norms` is `True`
"""

parameters = (
Expand Down
Loading