This is extended version of (https://github.com/nbergont/qgv).
I have added a wrapper class to easily add edges , nodes , attributes.
Just include the graphVizwrapper.h class in your main file and use the functions present in the class
- void addNode(QString lable , int frequency)
- void addEdge(QString node1 , QString node2 , int weight)
- void addGraphAttribute(QString name , QString value)
- void addNodeAttribute(QString name , QString value)
- void draw()
- Download GraphViz 2.8 Stable from (https://graphviz.gitlab.io/_pages/Download/Download_windows.html)
- Clone or Download this repository
- Navigate to the following path and open (Qt GraphViz Visualizer/QGVCore/GraphViz.pri) file
- Change the GRAPHVIZ_PATH to where you installed GraphViz in you computer as shown in the following image
-
Open the (QGraphViz.pro) file located in folder (Qt GraphViz Visualizer) and build/run it.
-
[IMPORTANT] When you will build/run the project for the first time your build directory might have a differnt name than mine
and will not contain the required dll files that are present in my provided build directories. If so, then just copy and
paste the dll files from any of my build directoy to yours. -
If something like following happens when opening the project file then just click "NO"