Skip to content

Commit

Permalink
Merge pull request #191 from vgteam/able_to_create_empty_handles
Browse files Browse the repository at this point in the history
Enabled the creation of empty handles for PackedGraphs
  • Loading branch information
jeizenga authored Nov 9, 2023
2 parents 8e47864 + ffc2988 commit 53ba85b
Showing 1 changed file with 0 additions and 4 deletions.
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

0 comments on commit 53ba85b

Please sign in to comment.