Skip to content

Commit 4de8355

Browse files
committed
comment :)
1 parent faa4c69 commit 4de8355

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/hgl/impl/incidence_list.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,15 +289,15 @@ class incidence_list<hgl::bf_directed_t, LayoutTag> final {
289289
gl_attr_force_inline void bind_tail(
290290
const types::id_type vertex_id, const types::id_type hyperedge_id
291291
) noexcept {
292-
// TODO: validate if minor_id is not in head
292+
// TODO: validate if minor_id is not in head - if yes, unbind
293293
const auto [major_id, minor_id] = layout_tag::majmin(vertex_id, hyperedge_id);
294294
this->_unique_insert(this->_major_storage[major_id].tail, minor_id);
295295
}
296296

297297
gl_attr_force_inline void bind_head(
298298
const types::id_type vertex_id, const types::id_type hyperedge_id
299299
) noexcept {
300-
// TODO: validate if minor_id is not in tail
300+
// TODO: validate if minor_id is not in tail - if yes, unbind
301301
const auto [major_id, minor_id] = layout_tag::majmin(vertex_id, hyperedge_id);
302302
this->_unique_insert(this->_major_storage[major_id].head, minor_id);
303303
}

0 commit comments

Comments
 (0)