Deleted tree.py; cleanup graph.py