Skip to content

Conversation

@brainey421
Copy link
Contributor

This should convert to BADJ graphs with up to 2^32 nodes, not 2^32 edges.

This should convert to BADJ graphs with up to 2^32 nodes, not 2^32 edges.
fwrite(&m, sizeof(int64_t), 1, f);

if (m > 4294967296)
if (n > 4294967296)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You want if n > 4294967295 (2^31-1) or maybe even 4294967294 (2^32-2) because 2^31-1 is often used as a sentinal value ... will accept with this one change!

Condition is now n > 2^32-2 to be safe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants