Skip to content

Commit

Permalink
fixed bug in contract+ updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
sriram98v committed Nov 6, 2024
1 parent 2f0a77d commit fc4d9d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "phylo"
version = "0.3.3"
version = "0.3.4"
edition = "2021"

authors = ["Sriram Vijendran"]
Expand Down
2 changes: 1 addition & 1 deletion benches/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fn benchmark_contract(bencher: divan::Bencher, taxa_size: usize) {
let taxa_set = (0..taxa_size).collect_vec();
let taxa_subset = taxa_set
.into_iter()
.choose_multiple(&mut rng, (3 * taxa_size / 4));
.choose_multiple(&mut rng, 3 * taxa_size / 4);
t1.precompute_constant_time_lca();
(t1, taxa_subset)
})
Expand Down
2 changes: 1 addition & 1 deletion src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ mod simple_rooted_tree {
false => node.remove_child(child_id),
}
}
let node_children_ids = node.get_children().collect_vec();
match node_children_ids.len() {
0 => {}
1 => {
Expand Down Expand Up @@ -706,7 +707,6 @@ mod simple_rooted_tree {
}

fn subtree_to_newick(&self, node_id: TreeNodeID<Self>) -> impl std::fmt::Display {
dbg!(node_id);
let node = self.get_node(node_id).unwrap();
let mut tmp = String::new();
if node.get_children().len() != 0 {
Expand Down

0 comments on commit fc4d9d4

Please sign in to comment.