Skip to content

Commit

Permalink
Merge branch 'branch-24.10' into negative_sampling_api
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckHastings committed Aug 13, 2024
2 parents b38d4c6 + 1ef3f56 commit 16bbd7b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,13 @@ def __from_edgelist(
elif elist[source].dtype not in [np.int32, np.int64] or elist[
destination
].dtype not in [np.int32, np.int64]:
if elist[destination].dtype in [np.uint32, np.uint64] or elist[
source
].dtype in [np.uint32, np.uint64]:
raise ValueError(
"Unsigned integers are not supported as vertex ids."
" Either convert to signed integers or set renumber=True"
)
raise ValueError("set renumber to True for non integer columns ids")

# The dataframe will be symmetrized iff the graph is undirected
Expand Down

0 comments on commit 16bbd7b

Please sign in to comment.