From ce9575f4d295f5077de8dbbb58a790e2084051c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=A3=8A?= Date: Wed, 4 Mar 2020 15:37:17 +0800 Subject: [PATCH] sequence: fix bug when first partition vertices < 4096 --- plato/graph/partition/sequence.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plato/graph/partition/sequence.hpp b/plato/graph/partition/sequence.hpp index b30bd1f9..424720f3 100644 --- a/plato/graph/partition/sequence.hpp +++ b/plato/graph/partition/sequence.hpp @@ -60,7 +60,7 @@ void __init_offset(std::vector* poffset, const DT* degrees, vid_t vertice for (vid_t v_i = poffset->at(p_i); v_i < vertices; ++v_i) { amount += (alpha + degrees[v_i]); if (amount >= expected_amount) { - poffset->at(p_i + 1) = v_i / PAGESIZE * PAGESIZE; + poffset->at(p_i + 1) = v_i; break; } }