Skip to content

Commit

Permalink
add another comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Nke committed Aug 17, 2021
1 parent 1e7a55c commit 4192518
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/cugraph/utilities/nx_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def convert_from_nx(nxG, weight=None):

pdf = nx.to_pandas_edgelist(nxG)
# Convert vertex columns to strings if they are not integers
# This allows support for any vertex input type
if pdf["source"].dtype not in [np.int32, np.int64] or \
pdf["target"].dtype not in [np.int32, np.int64]:
pdf['source'] = pdf['source'].astype(str)
Expand Down

0 comments on commit 4192518

Please sign in to comment.