I tried using Disjoint sets but encountered an error “ERROR: LoadError: UndefVarError: IntDisjointSets not defined”. I’m using julia version 1.4.1 and my code was simply just:
U = IntDisjointSets(10)
println(U)
I tried using Disjoint sets but encountered an error “ERROR: LoadError: UndefVarError: IntDisjointSets not defined”. I’m using julia version 1.4.1 and my code was simply just:
U = IntDisjointSets(10)
println(U)
Maybe a stupid question: did you load the DataStructures package before?
using DataStructures
U = IntDisjointSets(10)
println(U)
works for me without error.
Thanks a bunch! Didn’t know a package had to be loaded