Search code examples
pythonuser-interfacegraph

Tool to create a python GUI for graph construction


I need to create a GUI for graph construction ("graph" as an abstract representation of a set of objects, not a visual representation of data). The interface will provide a choice of ~5 vertex types and of ~5 edge types. Each vertex will have two data fields: a text label and a file name, which need to be easily editable.

I'm familiar with igraph and have a lot of code written in it. I will use igraph to manipulate the graphs created with this GUI.

Since this will be my first GUI, I'm completely ignorant of what tools are available. Can you please suggest a free library, knowing that eventually the program will need to work on Windows?

EDIT

it seems from the answers I get that I wasn't clear enough. I'm not looking for a way to visualize a graph, but rather for a way to visually create one. By visually, I mean not needing to manually create text files or writing code.


Solution

  • If you use python, I think PyQt is a good selection. What you have to install is listed below:

    1. install Python from here
    2. install PyQt4 from here

    But it takes many lines to write GUI application, it is sometimes better to generate an image to display with image viewer.