Skip to content

Conversation

@fabratu
Copy link
Member

@fabratu fabratu commented Oct 27, 2025

This PR fixes #1366.

Basically, the int type of the internal size counter is degraded to 32 bits. The reported issue can be reproduced (given the code in #1366) on macOS 15.7. With the change, the type is aligned with the return type of nested.size(). size_t is still implementation-defined; however, given the standard, it is at least unsigned and normally 64 bits on modern machines. With the change, the snippet from the referenced issue now works. The 2D ndarray uses roughly 20 GB of memory.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 18842936563

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 79.269%

Totals Coverage Status
Change from base Build 18842134190: 0.0%
Covered Lines: 29404
Relevant Lines: 37094

💛 - Coveralls

Copy link
Contributor

@domischweisgut domischweisgut left a comment

Choose a reason for hiding this comment

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

Looks good!

@fabratu fabratu added the bug label Oct 28, 2025
@fabratu fabratu merged commit b7e3c9e into networkit:master Oct 28, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error using getDistances(asarray=True) method of distance.APSP

3 participants