gt.minimize_blockmodel_dl for directed networks

Hello dear members of the mailing list,

I am not sure I am doing the gt.minimize_blockmodel_dl properly, over
directed networks. In the plot
you can see the yellow nodes 27 and 147 are in the center of the star-like
structures. However, with opposite arrows sense. I would expect the same
kind of connectivity, then characterized by similar incomming and outcomming

My instruction is:
State = gt.minimize_blockmodel_dl (g2, deg_corr = False, overlap = False)

Where the directionality has been already established in the graphml input

Shall I change any option in the gt.minimize_blockmodel_dl instruction?

Thank you very much in advance,


That is not how the degree-corrected SBM works. It incorporates the
(in,out)-degrees as parameters that are independent of the group memberships.

See this paper for a discussion of this model and some alternative

For this particular network, you might want to consider using the
non-degree-corrected model.


Dear Tiago,

Thanks for your very fast reply.

I am confused about the following. I understand that if I set: deg_corr =
False, as I did in the last example, then I am using the
non-degree-corrected model, as you suggested. Am I wrong?

Thanks again.



I'm sorry, I overlooked that.

Indeed in this case it might be the result of a bad fit. You should call the
function multiple times and use the result with the smallest description
length (obtained via state.entropy()).


Thank you very much!!!!

All the Best,