-
Notifications
You must be signed in to change notification settings - Fork 300
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
Refactor k-core #2731
Refactor k-core #2731
Changes from 89 commits
0264144
cdf5f0a
650d017
3d06e3d
bed80ad
d4e8c61
101f35b
d322c20
11a9965
c93feb7
90a1afe
ab94ba6
21e006f
63512ea
e7e69a0
c345897
46f7508
72e547e
2c00479
1fec14f
3891803
acbb67e
228ee16
06cb604
e6f7605
a1f1450
38186eb
fb2f661
71f916d
8c2ecc7
fdcb270
29b4fa9
8926d3b
af5d4ce
5dc3d7d
79224d4
4b26634
23fcd26
1043949
6be8b30
4c99a84
f6935c4
9318bde
47db56b
92e9923
1caebd0
e24289b
d4a70bc
17cd77f
d4c352e
2f3168f
29a4fe7
da9275c
0b0e469
0fdc3cd
2b08ee3
0924311
6694446
aad2b23
5c04033
d7e3e8c
eabce08
7df897e
1a382f8
52c0ef6
c67647f
aa7f36f
25ff6d4
c052720
fca2a38
d57e337
5529401
51fe544
95368ab
8fac872
61f9198
844bd86
2219959
2439273
d174365
c0f3cd2
ba30f0e
1c82823
f6b558a
2a305d5
8fa6c79
32dfbf2
a642629
858981e
1ddb66a
bfa53a9
f11d4bf
7304c3f
bd395ed
22fcd29
34f9f15
7963eba
a6981ee
dbd7911
d458a5f
8896390
3d91d52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
import dask_cudf | ||
import cudf | ||
from cugraph.dask.common.input_utils import get_distributed_data | ||
import warnings | ||
|
||
from pylibcugraph import ResourceHandle, ego_graph as pylibcugraph_ego_graph | ||
|
||
|
@@ -110,6 +111,15 @@ def ego_graph(input_graph, n, radius=1, center=True): | |
# Initialize dask client | ||
client = input_graph._client | ||
|
||
# FIXME: Implement a better way to check if the graph is weighted similar | ||
# to 'simpleGraph' | ||
if len(input_graph.edgelist.edgelist_df.columns) != 3: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. C++ egonet does not require weights. Not sure we should require that in python. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I get a
rlratzel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
warning_msg = ( | ||
"'Ego_graph' requires the input graph to be weighted: Unweighted " | ||
"graphs will not be supported in the next release." | ||
) | ||
warnings.warn(warning_msg, PendingDeprecationWarning) | ||
|
||
if isinstance(n, (int, list)): | ||
n = cudf.Series(n) | ||
elif not isinstance( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C++ egonet does not require weights. Not sure we should require that in python.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get a
segmentation fault
when running the CAPI tests without weights