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
  • #171
Closed
Open
Issue created Aug 11, 2014 by Michael Stahn@michael.stahn.42

GraphWindow needs "pos"

Creating a GraphWindow via win = GraphWindow(g, geometry=(400, 300), ...) leads to:

Exception AttributeError: "'GraphWindow' object has no attribute 'graph'" in <bound method GraphWindow.__del__ of <GraphWindow object at 0xa819f504 (uninitialized at 0x0)>> ignored
Traceback (most recent call last):
  File "example.py", line 76, in <module>
    vprops=vertexprop_dict)
TypeError: __init__() missing 1 required positional argument: 'pos'

As stated by the documentation "pos" should be optional (https://graph-tool.skewed.de/static/doc/draw.html#graph_tool.draw.GraphWindow):

pos : PropertyMap (optional, default: None).

Can someone tell where to get the argument to pass to "pos"? Important: I'm adding additional vertices after creating GraphWindow, using "pos=sfdp_layout(g)" leads to segmentation fault after adding some more.

Additional Infos: GTK+ 3.12.2 graph-tool 2.2.31

Assignee
Assign to
Time tracking