diff --git a/src/tree.rs b/src/tree.rs index 2d115e803a..6dc148e59d 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -179,7 +179,7 @@ pub fn bipartition_tree( let mut pops = pops; let spanning_tree_graph = &spanning_tree.graph; let mut same_partition_tracker: Vec> = - vec![vec![]; spanning_tree_graph.node_count()]; // Keeps track of all all the nodes on the same side of the partition + vec![vec![]; spanning_tree_graph.node_bound()]; // Keeps track of all all the nodes on the same side of the partition let mut node_queue: VecDeque = VecDeque::::new(); for leaf_node in spanning_tree_graph.node_indices() {