Thank you! It works now.
Sorry for the inconvenience. Please see the attached file.
Sure, please see an example from the following colab link:
REMOVED
Please let me know if you need more information from me. Thank you!
import graph_tool.all as gt
gt.minimize_blockmodel_dl(G, B_min=4, B_max=4) #G is a input graph.
I used the above code in the past a few months and it always worked well. However, recently, I encountered en error when I run the same code: "TypeError: minimize_blockmodel_dl() got an unexpected keyword argument 'B_min'".
I guess it might be related to some python version issue. And I am using Python 3.9.8 at present.
Could I ask you to help me fix the issue? Thank you!
Hi Tiago,
It seems that there is still something wrong. In my experiments, for some instances, the function would return a trivial solution that all vertices belonged to one same block, even if the values of B_min and B_max were specified. (For those instances, the behavior of the graph-tool was like the values of B_min and B_max were not specified.)
I also keep the results for the same instances generated by the old version of graph-tool, 3-4 months ago. Based on my old results, it didn't have this issue back then.
Could I ask you to help solve the issue? Or could I ask you about how to degrade the version of the graph-tool?
Thank you!
Thank you! It fixed the issue.
import graph_tool.all as gt
gt.minimize_blockmodel_dl(G, B_min=4, B_max=4) #G is a input graph.
I used the above code in the past a few months and it always worked well. However, recently, I encountered en error when I run the same code: "TypeError: minimize_blockmodel_dl() got an unexpected keyword argument 'B_min'".
I guess it might be related to some python version issue. And I am using Python 3.9.8 at present.
Could I ask you to help me fix the issue? Thank you!