Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Fix bug when making an adjacency_matrix from a SimpleGraph with self-loops in Julia 1.7 #1595

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mtfishman
Copy link

Fix bug when making an adjacency_matrix from a SimpleGraph with self-loops in Julia 1.7

As described in #1594, Julia 1.7 adds a stricter check on the SparseMatrixCSC constructor for consistency about the number of nonzero elements input. The number of nonzero elements are currently being overcounted in the case of SimpleGraph with self-loops, this should fix that overcounting.

Fixes #1594.

@mtfishman
Copy link
Author

Note that when I run the tests locally using Julia 1.7, there are other tests that fail, so it looks like the package needs some other updates for Julia 1.7.

@Tokazama
Copy link

Would be great if these could be fixed soon. I'm trying to ensure improvements are stable across Julia versions for #1596 and these errors make it pretty difficult.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] adjacency_matrix fails for SimpleGraph with self-loops (Julia 1.7)
3 participants