An internal vertex of a tree is a vertex that is not a leaf, meaning it has degree at least 2. This function lists such vertices. Each vertex is specified by the partition of the set of leaves formed by removing the vertex. Each partition is given as a list of sets.
|
|
|
The object internalVertices is a method function.