Generate graph from nested sbm

Hi all, given a SBM fit it should be possible to generate a random graph using the fitted model. As far as I understand this is done using gt.generate.generate_sbm() function. What about nested SBM instead? I guess generating a graph from blocks at level 0 doesn't work, is there a workaround for this?

The difference between the nested and non-nested SBMs is only their
priors, not the actual model.

So indeed, when sampling from the nested model, all you need to do is to
sample from the model at the lowest level.

There is a convenience function for this, which is:


For non-nested model this is only:


These are just convenience wrappers for generate_sbm().