Spencenator
Spencenator

Reputation: 61

Create directed Graph with movable nodes (with QT / Boost)

I'm looking for a tool to create directed graphs where I can move the nodes around and expand / shrink the graph when I, for example, click on a node. I want to use the graph in a QT interface. I thought about trying the Boost Graph Library but it seems that I can only create an image file of the graph with it. I'm not that deep into BGL yet; so does anybody know if its possible to greate graphs with BGL where I can move the nodes around afterwards? And is it possible to use it in QT? Or are there other tools?

Upvotes: 5

Views: 5539

Answers (3)

mara004
mara004

Reputation: 2337

I know of the QuickQuanva and NodeGraphQt frameworks. The latter is written in Python, however.

Upvotes: 0

bitkid
bitkid

Reputation: 41

Take a look at the Qt Visual Graph Editor project:

https://arsmasiuk.github.io/qvge/

Has base classes representing a graph + nodes/edges for inspiration. Supports reading and exporting various common graph markup formats (e.g. GraphViz files).

Upvotes: 1

Samuel Harmer
Samuel Harmer

Reputation: 4412

Try to remember a node-edge map doesn't inherently have any graphical representation. Hence why the Boost Graph Library may not provide the kind of GUI you want.

When you understand that part of the problem, your question closely resembles these questions:

I've not personally seen an implementation of Qt which aims to be a directed graph user interface framework. However Qt would be quite capable, with it's QGraphicsScene class being a good starting point for you to look into.

Upvotes: 2

Related Questions