DM.GT.1.g: Determine when graphs are trees.