Moved constants to separate file. Modified graph_containing_tree() so that it returns a new graph without modifying input tree.