Add get_num_vertices and get_num_edges methods to PropertyGraph.#2434
Add get_num_vertices and get_num_edges methods to PropertyGraph.#2434rapids-bot[bot] merged 11 commits intorapidsai:branch-22.08from
Conversation
Closes rapidsai#2422. I'll add this to MGPG when we finalize the API and behavior.
|
This keeps If |
There was a problem hiding this comment.
@eriknw and I had a conversation offline and we decided that it would be better to keep the API surface area smaller and minimize confusion by getting rid of the num_vertices and num_edges python property attributes, and just use the new getters here. The new getters should also support the caching behavior the python property attributes had.
- add `include_edge_data=True` keyword to `get_num_vertices` - improved docstrings of `get_num_vertices` and `get_num_edges` - change default type name to `""` - remove `num_vertices` and `num_edges` properties - use `series.value_counts` to compute counts of types (assuming types are low cardinality) - add and update tests - copy `pG.num_vertices_with_properties` tests from rapidsai#2419 MG is not quite finished yet.
Codecov Report
@@ Coverage Diff @@
## branch-22.08 #2434 +/- ##
===============================================
Coverage ? 61.21%
===============================================
Files ? 106
Lines ? 5492
Branches ? 0
===============================================
Hits ? 3362
Misses ? 2130
Partials ? 0 Continue to review full report at Codecov.
|
MG is not yet thoroughly tested.
|
@gpucibot merge |
Closes #2422. I'll add this to MGPG when we finalize the API and behavior. Authors: - Erik Welch (https://github.com/eriknw) Approvers: - Alex Barghi (https://github.com/alexbarghi-nv) - Brad Rees (https://github.com/BradReesWork) - Rick Ratzel (https://github.com/rlratzel) URL: rapidsai/cugraph#2434
Closes #2422. I'll add this to MGPG when we finalize the API and behavior.