hello, in my program have array of objetcs about of a atraction park in my class atraction have 2 attribute string (for the name) and integer x (fun level), I read m (quantify) of atractions n the populars atraction (atraction with more fun level)and h (quantify of ways that conect atractions)
I create a matrix of bool that full of false, and other double for read points x and y and I do mat[i][j] =mat[j][i] = true for conect them, because that is a adyacent matrix then is simetric.
Now all points is true, but I don't know how do that verific if have a hamiltonian ciucuit
example: ponits x and y
0 1
2 1
0 2
the two circuits are 0120 y 0210 . please help me with my code