Skip to content

Commit

Permalink
Output sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
ms609 committed Jun 28, 2024
1 parent d83a5a5 commit 4ecb9f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 4ecb9f9

Please sign in to comment.