You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When calling cugraph.k_core() on a directed cugraph.Graph object, the method will raise a RuntimeError: CUGRAPH_UNKNOWN_ERROR
Steps/Code to reproduce bug
>>> G = karate.get_graph(create_using=cugraph.Graph(directed=True))
>>> G.is_directed()
True
>>> a = cugraph.k_core(G)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/nfs/ralphl/miniconda3/envs/rapids/lib/python3.9/site-packages/cugraph-22.2.0a0+417.g2cd41103.dirty-py3.9-linux-x86_64.egg/cugraph/cores/k_core.py", line 101, in k_core
core_number = _call_plc_core_number(G)
File "/home/nfs/ralphl/miniconda3/envs/rapids/lib/python3.9/site-packages/cugraph-22.2.0a0+417.g2cd41103.dirty-py3.9-linux-x86_64.egg/cugraph/cores/k_core.py", line 27, in _call_plc_core_number
pylibcugraph_core_number(
File "core_number.pyx", line 124, in pylibcugraph.core_number.core_number
File "utils.pyx", line 51, in pylibcugraph.utils.assert_success
RuntimeError: non-success value returned from cugraph_core_number: CUGRAPH_UNKNOWN_ERROR
Expected behavior k_core() should specify that the error is caused by a directed graph, so that its behavior is similar to the other algorithms within the library.
Environment overview (please complete the following information)
closes#2505
`cugraph.k_core()` will check if the input graph is directed or undirected. If directed, the method will raise a `ValueError`, specifying that the input must be an undirected instance.
Authors:
- Ralph Liu (https://github.com/oorliu)
Approvers:
- Rick Ratzel (https://github.com/rlratzel)
URL: #2507
Describe the bug
When calling
cugraph.k_core()
on a directed cugraph.Graph object, the method will raise aRuntimeError: CUGRAPH_UNKNOWN_ERROR
Steps/Code to reproduce bug
Expected behavior
k_core()
should specify that the error is caused by a directed graph, so that its behavior is similar to the other algorithms within the library.Environment overview (please complete the following information)
Environment details
The text was updated successfully, but these errors were encountered: