Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • graph-tool graph-tool
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 48
    • Issues 48
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Please use the issue tracker only to report bugs (i.e. errors in the library that need to be fixed) or feature requests.

For questions about how to compile, install or use the library, please use instead the web forum at https://forum.skewed.de/c/graph-tool.


(If unsure, use the forum first.)


IMPORTANT: When opening new issues, please choose the BUG template from the drop-down menu, and fill out the required information.

  • Tiago Peixoto
  • graph-toolgraph-tool
  • Issues
  • #396
Closed
Open
Issue created May 25, 2017 by eXcuvator@eXcuvator

Can't supply argument bs != None to gt.minimize_nested_blockmodel_dl

I'm running latest version, installed via Ubuntu's apt-get.

I want to initialize the nested state with a given hierarchy. The following of course is pointless, but is how the mechanics should work (?):

>>> from graph_tool import *
>>> import graph_tool.all as gt
>>> g = gt.collection.data["football"]
>>> g
<Graph object, undirected, with 115 vertices and 613 edges at 0x7fe79ade6630>
>>> state = gt.minimize_nested_blockmodel_dl(g)
>>> bs = state.get_bs()
>>> state2 = gt.minimize_nested_blockmodel_dl(g, bs=bs)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/graph_tool/inference/minimize.py", line 503, in minimize_nested_blockmodel_dl
    base_type=type(min_state),
UnboundLocalError: local variable 'min_state' referenced before assignment
Assignee
Assign to
Time tracking