Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabled the creation of empty handles for PackedGraphs #191

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions bdsg/include/bdsg/internal/base_packed_graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1191,10 +1191,6 @@ handle_t BasePackedGraph<Backend>::create_handle(const string& sequence) {
template<typename Backend>
handle_t BasePackedGraph<Backend>::create_handle(const string& sequence, const nid_t& id) {

if (sequence.empty()) {
throw std::runtime_error("error:[BasePackedGraph] tried to create an empty node with ID " + std::to_string(id));
}

if (id <= 0) {
throw std::runtime_error("error:[BasePackedGraph] tried to create a node with non-positive ID " + std::to_string(id));
}
Expand Down
Loading