Skip to content

Commit c711e9b

Browse files
committed
minor change
1 parent 6f36c23 commit c711e9b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/function/gds/awsp_paths.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class AWSPPathsOutputWriter : public PathsOutputWriter {
7676
throw InterruptException{};
7777
}
7878
if (curPath[curPath.size() - 1]->getCost() == 0) { // Find source. Start writing path.
79-
curPath.pop_back(); // avoid writing source node.
79+
curPath.pop_back();
8080
writePath(curPath);
8181
fTable.append(vectors);
8282
if (updateCounterAndTerminate(counter)) {

src/function/gds/bfs_graph.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ bool SparseBFSGraph::tryAddParentWithWeight(nodeID_t boundNodeID, relID_t edgeID
190190
parent->setCost(newCost);
191191
if (curData->contains(nbrNodeID.offset)) {
192192
parent->setNextPtr(curData->at(nbrNodeID.offset));
193-
curData->at(nbrNodeID.offset) = parent;
193+
curData->erase(nbrNodeID.offset);
194194
} else {
195195
parent->setNextPtr(nullptr);
196-
curData->insert({nbrNodeID.offset, parent});
197196
}
197+
curData->insert({nbrNodeID.offset, parent});
198198
return true;
199199
}
200200
return false;

src/include/function/gds/gds_frontier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class SPFrontierPair : public FrontierPair {
252252
};
253253

254254
// Frontier pair implementation that switches from sparse to dense adaptively.
255-
class DenseSparseDynamicFrontierPair : public FrontierPair {
255+
class KUZU_API DenseSparseDynamicFrontierPair : public FrontierPair {
256256
public:
257257
DenseSparseDynamicFrontierPair(std::shared_ptr<DenseFrontier> curDenseFrontier,
258258
std::shared_ptr<DenseFrontier> nextDenseFrontier);

0 commit comments

Comments
 (0)