-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Labels
Python APIIssue is about the Python APIIssue is about the Python API
Description
This should equivalent to
all_descendants = []
for tree in ts.trees():
all_descendants = np.union1d(
all_descendants, np.sort(tree.preorder(alpha_origin["node_id"])))
But in graph preorder.
I think the algorithm is here: #2869 (reply in thread)
We can add other traversal orders if they seem useful, but this seems like a good place to start. Return value is a numpy array.
Metadata
Metadata
Assignees
Labels
Python APIIssue is about the Python APIIssue is about the Python API