added --collapse-edges option to treeManipulator