Using delete_node!(node::TreeNode; ptau=false) instead of delete_node!(t::Tree, label; ptau=false) leads to issues with the print_tree_ascii function and the plot_ARG function in TreeKnit as the nodes are not fully removed from the tree, I think it would be beneficial to add this information to the function documentation as it took me a while to find what the issue was :-)
Using
delete_node!(node::TreeNode; ptau=false)
instead ofdelete_node!(t::Tree, label; ptau=false)
leads to issues with the print_tree_ascii function and the plot_ARG function in TreeKnit as the nodes are not fully removed from the tree, I think it would be beneficial to add this information to the function documentation as it took me a while to find what the issue was :-)