(fix) isAcyclic: Was throwing exception for the wrong reason

The isAcyclic check was testing an object that didn't exist. This update switches the method to use the proper tsort object.