Skip to content

Commit

Permalink
redo the change
Browse files Browse the repository at this point in the history
  • Loading branch information
seunghwak committed Jan 4, 2024
1 parent 7722003 commit a68868f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions cpp/src/c_api/graph_mg.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2023, NVIDIA CORPORATION.
* Copyright (c) 2021-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -217,7 +217,10 @@ struct create_graph_functor : public cugraph::c_api::abstract_functor {
std::move(edgelist_dsts),
std::move(edgelist_weights),
std::move(edgelist_edge_ids),
std::move(edgelist_edge_types));
std::move(edgelist_edge_types),
properties_->is_symmetric
? true /* keep minimum weight edges to maintain symmetry */
: false);
}

std::tie(*graph, new_edge_weights, new_edge_ids, new_edge_types, new_number_map) =
Expand Down
7 changes: 5 additions & 2 deletions cpp/src/c_api/graph_sg.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2023, NVIDIA CORPORATION.
* Copyright (c) 2021-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -200,7 +200,10 @@ struct create_graph_functor : public cugraph::c_api::abstract_functor {
std::move(edgelist_dsts),
std::move(edgelist_weights),
std::move(edgelist_edge_ids),
std::move(edgelist_edge_types));
std::move(edgelist_edge_types),
properties_->is_symmetric
? true /* keep minimum weight edges to maintain symmetry */
: false);
}

std::tie(*graph, new_edge_weights, new_edge_ids, new_edge_types, new_number_map) =
Expand Down

0 comments on commit a68868f

Please sign in to comment.