Skip to content

B_max keyword argument for minimize_blockmodel_dl throws error #7

@mikk-c

Description

@mikk-c

On graph_tool 2.44:

Python 3.9.7 (default, Sep 10 2021, 14:59:43) 
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import graph_tool.all as gt
>>> g = gt.collection.data["celegansneural"]
>>> gt.minimize_blockmodel_dl(g, B_max = 4)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: minimize_blockmodel_dl() got an unexpected keyword argument 'B_max'
>>> gt.minimize_nested_blockmodel_dl(g, B_max = 4)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: minimize_nested_blockmodel_dl() got an unexpected keyword argument 'B_max'

Expected behavior: the functions should find partitions with at most 4 blocks, as described in the documentation: https://graph-tool.skewed.de/static/doc/inference.html#graph_tool.inference.minimize_blockmodel_dl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions