PWS-101 #comment Refactored Tree to Graph, fixed a few issues.