You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frontier_view(bitmap_t* data_layer, // First layer (tracks vertices in the frontier)
37
-
bitmap_t* mlb_layer, // Second layer (to track non-zero elements in the first layer)
38
-
std::uint32_t* offsets, // Array to store the indices of the non-zero elements
39
-
std::uint32_t* offsets_size, // Pointer to store the size of the offsets array
40
-
std::uint64_t num_items) // Maximum number of items that can be stored in the frontier
36
+
frontier_view(
37
+
bitmap_t* data_layer, // First layer (tracks vertices in the frontier)
38
+
bitmap_t* mlb_layer, // Second layer (to track non-zero elements in the first layer)
39
+
std::uint32_t* offsets, // Array to store the indices of the non-zero elements
40
+
std::uint32_t* offsets_size, // Pointer to store the size of the offsets array
41
+
std::uint64_t num_items) // Maximum number of items that can be stored in the frontier
41
42
: _num_items(num_items),
42
-
_data_layer(bitset<bitmap_t>{ data_layer, num_items }), // first layer size is num_items
43
-
_mlb_layer(bitset<bitmap_t>{ mlb_layer, (num_items + divide_factor - 1) / divide_factor }), // second layer size is ceil(num_items / divide_factor) because each bit in the second layer represents an element in the first layer
43
+
_data_layer(
44
+
bitset<bitmap_t>{ data_layer, num_items }), // first layer size is num_items
45
+
_mlb_layer(bitset<bitmap_t>{
46
+
mlb_layer,
47
+
(num_items + divide_factor - 1) /
48
+
divide_factor }), // second layer size is ceil(num_items / divide_factor) because each bit in the second layer represents an element in the first layer
44
49
_offsets(offsets),
45
50
_offsets_size(offsets_size) {}
46
51
@@ -153,7 +158,8 @@ class frontier {
153
158
ndarray<std::uint32_t, 1> _offsets;
154
159
ndarray<buffer_t, 1> _buffer;
155
160
const std::uint64_t _TMP_VAR = 0;
156
-
const std::uint64_t _CAF_FLAG = 1; // Compute Active Frontier Flag (1 if already computed, 0 otherwise)
161
+
const std::uint64_t _CAF_FLAG =
162
+
1; // Compute Active Frontier Flag (1 if already computed, 0 otherwise)
0 commit comments