I am making a nodemap system and am implementing a function to check when connecting 2 nodes if the node would yield infinitely, how would I go about doing this in the best way possible?
I ended up making a function that would trace back all of the branches from the current node with separate threads to run simultaneously and if the function found the node your trying to connect to it would deny the connection if it was not found then it would allow the connection