Skip to content
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

Add an Explanatory Error Message for uint Types #4556

Merged
merged 9 commits into from
Aug 13, 2024
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
Loading