From 98107d4cfbaa346e963763f0e8dc67a91e0184a9 Mon Sep 17 00:00:00 2001 From: Sanhaoji2 Date: Tue, 3 Mar 2026 15:49:33 +0800 Subject: [PATCH] set num of frozeon point to 1 to compatible rust format --- src/in_mem_graph_store.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/in_mem_graph_store.cpp b/src/in_mem_graph_store.cpp index feb8810bc..fbd9ca750 100644 --- a/src/in_mem_graph_store.cpp +++ b/src/in_mem_graph_store.cpp @@ -23,9 +23,10 @@ std::tuple InMemGraphStore::load(const std::string & return load_impl(index_path_prefix, num_points); } int InMemGraphStore::store(const std::string &index_path_prefix, const size_t num_points, - const size_t num_frozen_points, const uint32_t start) + const size_t /*num_frozen_points*/, const uint32_t start) { - return save_graph(index_path_prefix, num_points, num_frozen_points, start); + // set num_frozen_points = 1 to compatible with rust implementation, which doesn't have frozen points concept and always write 1 as num_frozen_points in graph file. + return save_graph(index_path_prefix, num_points, 1, start); } const NeighborList InMemGraphStore::get_neighbours(const location_t i) const {