Skip to content

Commit

Permalink
fix setOrder function itself
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffry1829 committed Aug 31, 2024
1 parent 96beb56 commit f7edca6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/RegularNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ namespace cytnx {
tns.erase(tns.begin() + id2);
else
tns.erase(tns.begin() + id2 - 1);
tns.push_back(root->name);
// tns.push_back(root->name);
tns.push_back("(" + root->left->name + "," + root->right->name + ")");
root->name = "(" + root->left->name + "," + root->right->name + ")";
path.push_back(std::pair<cytnx_int64, cytnx_int64>(id1, id2));
}
root = nullptr;
Expand Down

0 comments on commit f7edca6

Please sign in to comment.