Added isDAG() method to my Graph and Tree classes.  The Graph class keeps a list of visited vertices, as where the Tree tags it's nodes as visited.  Both ways work, but tagging nodes uses less memory.