Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ParAlg/gbbs#80 #81

Merged
merged 1 commit into from
Jan 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions gbbs/graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ struct symmetric_graph {

// Move assignment
symmetric_graph& operator=(symmetric_graph&& other) noexcept {
deletion_fn();
n = other.n;
m = other.m;
v_data = other.v_data;
e0 = other.e0;
vertex_weights = other.vertex_weights;
deletion_fn();
deletion_fn = std::move(other.deletion_fn);
other.v_data = nullptr;
other.e0 = nullptr;
Expand Down Expand Up @@ -311,12 +311,12 @@ struct symmetric_ptr_graph {

// Move assignment
symmetric_ptr_graph& operator=(symmetric_ptr_graph&& other) noexcept {
deletion_fn();
n = other.n;
m = other.m;
vertices = other.vertices;
edge_list_sizes = other.edge_list_sizes;
vertex_weights = other.vertex_weights;
deletion_fn();
deletion_fn = std::move(other.deletion_fn);
other.vertices = nullptr;
other.edge_list_sizes = nullptr;
Expand Down Expand Up @@ -475,14 +475,14 @@ struct asymmetric_graph {

// Move assignment
asymmetric_graph& operator=(asymmetric_graph&& other) noexcept {
deletion_fn();
n = other.n;
m = other.m;
v_out_data = other.v_out_data;
v_in_data = other.v_in_data;
out_edges = other.out_edges;
in_edges = other.in_edges;
vertex_weights = other.vertex_weights;
deletion_fn();
deletion_fn = std::move(other.deletion_fn);
other.v_out_data = nullptr;
other.v_in_data = nullptr;
Expand Down Expand Up @@ -588,11 +588,11 @@ struct asymmetric_ptr_graph {

// Move assignment
asymmetric_ptr_graph& operator=(asymmetric_ptr_graph&& other) noexcept {
deletion_fn();
n = other.n;
m = other.m;
vertices = other.vertices;
vertex_weights = other.vertex_weights;
deletion_fn();
deletion_fn = std::move(other.deletion_fn);
other.vertices = nullptr;
other.vertex_weights = nullptr;
Expand Down