Getting out degree for each of the nodes of a BlockState

Hi Tiago, I wanted to create a probability distribution function for the
inferred network calculated by SBM (using function 'minimise_blockmodel_dl')
from the original network. The object in consideration in this case is the
'BlockState' object.

I couldn't find a way to do this, since there is not function to calculate
the out degree of a node in the BlockState object. Can you suggest how I can
achieve this?

Thanks,
Sukrit

You can access the graph corresponding to the state with: state.g

With this you can look at the out-degrees. Note that this is simply the
graph that you supplied to minimize_blockmodel_dl()...

Best,
Tiago