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

DisjointSets hangs if input is a collection of Any #570

Closed
scheinerman opened this issue Jan 30, 2020 · 3 comments
Closed

DisjointSets hangs if input is a collection of Any #570

scheinerman opened this issue Jan 30, 2020 · 3 comments
Assignees

Comments

@scheinerman
Copy link

If the input to DisjointSets is a collection with elements of type Any the constructor hangs.
This works:

julia> A = [1,2,3];

julia> DisjointSets(A)
DisjointSets{Int64}(Dict(2 => 2,3 => 3,1 => 1), [1, 2, 3], IntDisjointSets([1, 2, 3], [0, 0, 0], 3))

but this just hangs:

julia> B = Any[1,2,3];

julia> DisjointSets(B)
@oxinabox
Copy link
Member

oxinabox commented Feb 6, 2020

I will investigate and fix

@oxinabox
Copy link
Member

oxinabox commented Dec 5, 2020

I think this is now fixed

@jwbaugh
Copy link

jwbaugh commented Feb 15, 2024

Still hangs:

julia> versioninfo()
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
  Threads: 5 on 4 virtual cores

julia> DisjointSets([1, 2, 3])
DisjointSets{Int64} with 3 elements:
  1
  2
  3

julia> DisjointSets(Any[1, 2, 3])

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 a pull request may close this issue.

3 participants