Implemented first draft of TaskTree => CompactGraph transform function