Random free trees and forests with constraints on multiplicities of vertices