Skip to content

Commit

Permalink
Fix issue ZJULearning#3
Browse files Browse the repository at this point in the history
  • Loading branch information
DelightRun committed Nov 29, 2018
1 parent 335e8e1 commit eca8759
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index_nsg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ void IndexNSG::init_graph(const Parameters &parameters) {
center[j] /= nd_;
}
std::vector <Neighbor> tmp, pool;
ep_ = rand() % nd_; // random initialize ep_
get_neighbors(center, parameters, tmp, pool);
ep_ = tmp[0].id;
}
Expand Down

0 comments on commit eca8759

Please sign in to comment.