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
  • #736
Closed
Open
Issue created Mar 30, 2022 by Valerio Restocchi@valeriores1 of 1 checklist item completed1/1 checklist item

clabels cause segmentation fault

Bug reports:

Please follow the general troubleshooting steps first:

  • Are you running the latest graph-tool version?

Running mcmc algorithms with clabels causes a segmentation fault (core dump).

Do not forget to supply the following information:

OS:

  • Ubuntu 5.4.0-89-generic
  • macOS Catalina 10.15

Python: 3.9 3.10

Here's a minimal working example

g = gt.collection.data["lesmis"]

clabel = g.vp["clabel"] = g.new_vp("int")

for v in g.vertices():
    clabel[v]=np.random.randint(3)
    
state = gt.NestedBlockState(g, state_args={'clabel':clabel,'pclabel':clabel})

for i in range(100):
    state.multiflip_mcmc_sweep(niter=10)
Assignee
Assign to
Time tracking