added a test for IsTree(), added a test for a single node graph to IsTree()