Skip to content

Commit d648a5f

Browse files
committed
since we are checking direction this is no longer needed
1 parent 12b75da commit d648a5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/subgraph.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ std::pair<bool,ParallelMap32color> DBG::dijkstra(std::pair<uint64_t,DBGkmer32col
535535
bool found = checkNext(key, isFw ? direction : !direction);
536536
if (found) {
537537
++exploredCount;
538-
if (key != source.first && DBGsubgraph->find(key) != DBGsubgraph->end())
538+
if (DBGsubgraph->find(key) != DBGsubgraph->end())
539539
destinations.push_back(u->first);
540540
}
541541
++edgeCount;
@@ -553,7 +553,7 @@ std::pair<bool,ParallelMap32color> DBG::dijkstra(std::pair<uint64_t,DBGkmer32col
553553
bool found = checkNext(key, isFw ? direction : !direction);
554554
if (found) {
555555
++exploredCount;
556-
if (key != source.first && DBGsubgraph->find(key) != DBGsubgraph->end())
556+
if (DBGsubgraph->find(key) != DBGsubgraph->end())
557557
destinations.push_back(u->first);
558558
}
559559
++edgeCount;

0 commit comments

Comments
 (0)