While looking on the interface of this class it is even sufficient to store the number of nodes/elements only. I'd keep this question open, until there is a real usage of this class.