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

Avoid directly calling graph constructor (as code cleanup before edge property support in primitives) #2834

Merged
merged 8 commits into from
Oct 24, 2022

Conversation

seunghwak
Copy link
Contributor

@seunghwak seunghwak commented Oct 20, 2022

Delete dead code and avoid directly calling graph_t constructor (use create_graph_from_edgelist instead) as a pre-requsite for removing edge weights from graph_t class and edge property support in graph primitives.

bool renumber is added to coarsen_graph to support MG Louvain testing (instead of replicating all the code related graph coarsening to support graph coarsening without renumbering).

This PR also removed GRAPH_TEST as we don't expect users to directly call graph_t constructors.

Breaking as bool renumber is added to the public function coarsen_graph

@seunghwak seunghwak requested a review from a team as a code owner October 20, 2022 23:33
@seunghwak seunghwak requested a review from a team as a code owner October 20, 2022 23:36
@seunghwak seunghwak added 3 - Ready for Review improvement Improvement / enhancement to an existing function breaking Breaking change labels Oct 20, 2022
@seunghwak seunghwak added this to the 22.12 milestone Oct 20, 2022
@seunghwak seunghwak self-assigned this Oct 20, 2022
@@ -28,10 +28,6 @@
#include <type_traits>
#include <vector>

/** @defgroup cpp_api cuGraph C++ API
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a documentation mechanism for doxygen. Should probably put this back.
It allows all of the things inside this comment group to be linked on a single documentation page.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -556,7 +533,3 @@ __host__ __device__ std::enable_if_t<std::is_unsigned<vertex_t>::value, bool> is
} // namespace cugraph

#include "eidecl_graph.hpp"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bottom of the documentation group

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -483,25 +479,6 @@ class graph_t<vertex_t, edge_t, weight_t, store_transposed, multi_gpu, std::enab
private:
friend class cugraph::serializer::serializer_t;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also get rid of serializer_t? Seems like with graph_bcast.hpp gone this class is unused.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2022

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.12@30a59ea). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@               Coverage Diff               @@
##             branch-22.12    #2834   +/-   ##
===============================================
  Coverage                ?   60.40%           
===============================================
  Files                   ?      114           
  Lines                   ?     6551           
  Branches                ?        0           
===============================================
  Hits                    ?     3957           
  Misses                  ?     2594           
  Partials                ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@BradReesWork
Copy link
Member

@gpucibot merge

@rapids-bot rapids-bot bot merged commit d6e9c92 into rapidsai:branch-22.12 Oct 24, 2022
rapids-bot bot pushed a commit that referenced this pull request Nov 17, 2022
Should unblock #2834 

This removes all of the algorithms from `cython.cu`.

Closes #2498 

Marked as breaking since we remove some old python bindings, they should no longer be used.

Authors:
  - Chuck Hastings (https://github.com/ChuckHastings)

Approvers:
  - Seunghwa Kang (https://github.com/seunghwak)
  - Joseph Nke (https://github.com/jnke2016)
  - Brad Rees (https://github.com/BradReesWork)

URL: #2955
@seunghwak seunghwak deleted the enh_graph_creation branch November 21, 2022 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change improvement Improvement / enhancement to an existing function
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants