From 4ecb9f964616e0d95739fa6e851a1031e88657cd Mon Sep 17 00:00:00 2001 From: "Martin R. Smith" <1695515+ms609@users.noreply.github.com> Date: Fri, 28 Jun 2024 22:09:01 +0100 Subject: [PATCH] Output sequence --- src/spr.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/spr.cpp b/src/spr.cpp index 0a2ce23d9..b5c9727cb 100644 --- a/src/spr.cpp +++ b/src/spr.cpp @@ -174,8 +174,8 @@ List keep_and_reroot(const List tree1, const intx n_node = ret_edge1.nrow() / 2; if (!n_node) { List nullTree = List::create(Named("edge") = ret_edge1, - _["tip.label"] = CharacterVector(0), - _["Nnode"] = n_node); + _["Nnode"] = n_node, + _["tip.label"] = CharacterVector(0)); nullTree.attr("class") = "phylo"; nullTree.attr("order") = "preorder"; @@ -228,8 +228,8 @@ List keep_and_reduce(const List tree1, if (edge1.nrow() < 1) { List nullTree = List::create(Named("edge") = NumericMatrix(0, 2), - _["tip.label"] = CharacterVector(0), - _["Nnode"] = 0); + _["Nnode"] = 0, + _["tip.label"] = CharacterVector(0)); nullTree.attr("class") = "phylo"; nullTree.attr("order") = "preorder";