This function produces a new LeafTree obtained by contracting the edge $e$ of tree $T$.
i1 : T = leafTree(4,{{0,1}})
o1 = {{0, 1, 2, 3}, {set {0, 1}, set {0}, set {1}, set {2}, set {3}}}
o1 : LeafTree
|
i2 : edgeContract(T, set {0,1})
o2 = {{0, 1, 2, 3}, {set {0}, set {1}, set {2}, set {3}}}
o2 : LeafTree
|
The object edgeContract is a method function.