Skip to content

minimize_blockmodel_dl() got an unexpected keyword argument 'B_min'

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!

Edited by Ang Li