KGraphViewer and KGraphEditor
Graphics
Score 81%
Description:

KGraphViewer is a Graphviz dot graph file viewer for KDE. It is part of the KDE extragear graphics package.

Release of version 2.1.1. This is a bugfix only release that makes the kgraphviewer library cleaner: all necessary headers are installed and no more and with a proper d-pointer in its sole exported class. There is also a little bugfix in the background color setting dialog.

Previous version (2.1) included one new visible feature (option to set the default background color) and a bunch of bug regression corrections (thanks to new contributors) and, more importantly, new integration possibilities as the viewer can now be integrated in an application either as a plugin (KPart) or as a real widget. Note that from now on, the kgraphviewer code is hosted on the KDE git repository instead of svn.

Last but not least, Milian Wolf has setup kgraphviewer to be built on OpenSuse build service, thus giving a bunch of new binary packages for various distributions (see links below).

The editor works but is still very young. It demonstrates the use of the KGraphViewer part (KDE plugins) as a changeable view of a graph.

KGraphViewer is now included in several GNU/Linux distributions !

The tool works very well for most dot graphs. Here are some of its currently implemented features:
- zooming
- threaded loading of several graphs in tabs;
- saving of the recent files list;
- manual reload of files;
- display of a bird-eye view of the graph;
- moving of the graph by dragging;
- full featured printing;
- perfect drawing of all graphviz example graphs;
- automaticaly choose dot for directed graphs and neato for undirected
- possibility to use an arbitrary layout algo as soon as it produces xdot format
- automatic reloading with user confirmation of (externaly) modified files (configurable) ;
- open new instances as new tabs in the existing window (configurable)
- help system
- internationalization
- background color selection
- ...

Kgraphviewer is using the boost/spirit library for graphs parsing.

See TODO in the distribution for planned features.

As usual, comments, bug reports and any help are very welcome !

Please report bugs or install problems directly on http://bugs.kde.org
and not as comments here. Thanks.

Kleag
Last changelog:

12 years ago

2010/11/14
* release of version 2.1.1
* dotgraphview is now a good citizen for libraries: it has a d-pointer
* fewer include files are installed
* default background color is initialized as needed in the settings dialog

2010/11/02
* release of version 2.1
* option to set the default background color
* source code now hosted on KDE git repository instead of svn

2010/07/07
* preparing version 2.1
* regressions corrections
* new integration possibilities (either as a plugin (Kpart) or a widget)

2008/05/09
* version 2.0.1 as released with KDE 4.04
* lots of progress in kgrapheditor
* precise selection of edges
* kill without error the current dot process when startting a new one
* rename some methods to avoid lexical hiding warnings
* new message boxes and new whatsthis that were delayed during 4.0 string freeze
* individual attribute changing mechanism
* new signals to inform of the current selection
* compiler warnings removal
* ...

2007/12/29
* first version including an experimental graph editor
* RC1 of the kde4 version

2007/07/14
* bugs correction
* now available in 26 languages !

2006/10/03
* now available in 16 languages !

2006/07/02
* Was crashing when closing some tabs

2006/06/24
* Corrects a crash condition (clicking in the empty window after a failed parsing)
* Signal failed parsings with a message box

2006/06/05
* Release of version 1.0
* Work of the KDE4 2.0 version has started

2006/05/27
* removed a bug appearing with graphviz 2.8

2006/05/26
* addad in the menu bar the entries from contextual menu and reported this
change in documentation
* added the possibility to disable the bird-eye view (menu, context menu,
accel, toolbar) and reported this change in documentation
* check for memory leaks

2006/05/25
* added a font cache to optimize a little bit

2006/05/24
* changes in config dialog now change the status of Apply button
* make appear the bird-eye view even if it was not initialy appearent when
zooming
* optimizations to be able to load and manipulate larger graphs (200+ linear
graph OK)

2006/05/23
* documentation

2006/05/18
* corrected placing of window position indicator (red line) in bird eye view
when zooming
* add tooltips and whatsthese everywhere
* corrected tooltips placement
* added French translation

2006/05/17
* corrected drawing errors appearing when dragging after a zoom by updating
Qt to 3.3.6

2006/05/16
* all graphviz example graphs are perfectly drawn
* corrected drawing of parallel edges
* corrected edges geometry definition (tips appear at wrong places)

2006/05/15
* corrected loading of edges bounds labels
* correct handling of record shaped nodes (see graphviz examples, compare with doted results)
* corrected handling of fonts (see graphviz examples, compare with doted results)
* corrected drawing of some undirected graphs in graphviz examples (compare with doted results)
* added support for main graph label

2006/05/14
* corrected drawing of clusters (compared with doted results)
* hack to not freeze with huge graphs. Stop loading after N vertices or edges (N currently set to 1000)

2006/05/13
* make the window position indicator to be still visible even when zooming a
lot (min size or big bold point)

2006/05/12
* added hard-coded min and max zoom factors
* scrolling with mouse wheel
* make minimum canvas size to window size
* reduce canvas size to graph size when its view becomes larger than itself

2006/05/07
* better integration of printing (splitting in pages, etc.)

2006/05/07
* printing on multiple pages or fited to one page
* applying the scaling factor to lines width (since more time but not logged)

2006/05/05
* added print preview and setup (code reused from the koffice tool kexi)

AlbertoPblanco

5 years ago

I installed from ubuntu repositories and I have both programs version 2.1.1 but they don't do anything (i want to use kgraphedit). I tried all the things that I can think of... and also search google. So if anyone can post a link of a tutorial or something like that (although I think that the application maybe is broken) it will be great

Greetings

Report

C

kleag

5 years ago

Hi, unfortunately kgrapheditor is just an experimentation currently. It does not work. I should remove it from the release process.

Report

C

kleag

5 years ago

I should add that kgraphviewer should work out of the box. If you have problems with it, please ask ! But writing to kde-extra-gear@kde.org or kgraphviewer-devel@kde.org or open a bug report at bugs.kde.org would be easier to memorize the problem and its solution.

Regards,

Gaël

Report

AlbertoPblanco

5 years ago

Yes, it works. I use it with the .dot files of example that comes with SocNetV, another graph editor although with other purposes I think.
It is a software equivalent to Kgrapheditor will be?
I used to use dotedit or graphthing to experiment with nodes, although dotedit don't work anymore....
Thank you for your soon reply. I will follow this project closely and tried to participate sending bugs if there are any.

Greetings!

Report

gohanz

7 years ago

The tarball link seems to be broken!

Report

molostoff

7 years ago

How to install this latest version (binaries) into maveric?

Report

C

kleag

7 years ago

You should build it from source: there is no xubuntu 10.10 repository on OpenSuse build service...

Report

donousian

7 years ago

How do you genereate .deb images?
They are not debian testing ready, and I would like to regenerate for myself.
Where are sources or instructions?

Report

C

kleag

7 years ago

All packages are generated through the OpenSuse build service. I have no knowledge of deb packaging, so I can just point you to the files used to configure the OBS here: https://build.opensuse.org/package/files?package=kgraphviewer&project=home%3Amilianw%3Akdeapps

Report

nicki

7 years ago

Hi,

it doesn't seem to be possible anymore to download the 2.0.90 from here.
Also, will there be an actual release sometime? I've been using 2.0.90 for quite a while now and didn't experience any critical bugs.

Cheers,
Nico

Report

C

kleag

7 years ago

Yes, all links have been updated to point to version 2.1

Report

ilpianista

7 years ago

there is no 2.1 source tarball. please provide one.

Report

C

kleag

7 years ago

Yes, there is: the first one.

Report

ilpianista

7 years ago

yes, the link is there. The file not! (404) :)

Report

ilpianista

7 years ago

forgot it! is a site issue. Sorry!

Report

assfaceJackson2

7 years ago

If you set the color of an edge, KGraphViewer only changes the color of the arrow instead of the entire edge. I am using the edge attribute:

Quote:[style="bold" color="red" penwidth="10" fontsize="10" label="1"]
For example, here is a large graph shown in dotty:

http://imgur.com/10xOL.png

and the same graph in KGraphViewer:

http://imgur.com/HrmE8.png

It would also be nice if there was an option to change the default background color.

Report

C

kleag

7 years ago

Could you send me the source of the graph, please ? At kleag A T free _DOT_ FR

And it would be much better if you could open a bug report for the edges and a wish for the background color at http://bugs.kde.org
It would be a lot easier to keep track of these problems.

Report

C

kleag

7 years ago

Changing (default) background color is now implemented. Will appear in newer relases.

Report

nicki

7 years ago

Hey,

what happened to the documentation folders in the 2.0.90 release? Also, for standard compliance, the unpacked folder should probably be "./kgraphviewer-2.0.90/" instead of "./kgraphviewer/".

Cheers,
Nico

Report

C

kleag

7 years ago

Hi, The documentation and i18n are back in the 2.1 release. But the folder is still the same. I'll correct that next time.

Report

kanzure

9 years ago

Excellent news! For a while now I have been planning on hacking some code together to make an open source equivalent of 'Pathway', the graph-based web browser for OS X. I'll probably be using an embedded kgraphviewer widget into the WebKit or wxMozilla browser.

- Bryan

Report

C

kleag

9 years ago

Great idea! Please let me know if you miss any feature or if you find bugs. I would be very happy to help you use kgraphviewer in your app.

Report

jmyc

10 years ago

Newer veersions of kgraphviewer does not compile in ubuntu feisty (AMD64). For v. 1.0.3 I got:

../../../src/src/part/dotgrammar.h:25:37: error: boost/throw_exception.hpp: No such file or directory
../../../src/src/part/dotgrammar.h:26:33: error: boost/spirit/core.hpp: No such file or directory
../../../src/src/part/dotgrammar.h:27:45: error: boost/spirit/utility/distinct.hpp: No such file or directory
../../../src/src/part/dotgrammar.h:28:42: error: boost/spirit/utility/loops.hpp: No such file or directory

Version 1.0.4 does not compile at all. I guess it is related to the following warning:

Makefile:965: warning: overriding commands for target `clean-bcheck' > Makefile:928: warning: ignoring old commands for target `clean-bcheck'

Version 1.0.2 (and earlier) compiles but then some elements of the graph are completly black and then unreadable. It is probaly related to runtime warnings:

kgraphviewer: WARNING: xdot render operation 'c' is currently not supported (ignored).
Usually its value is handled through standard attributes
QColor::setHsv: HSV parameters out of range

Report

C

kleag

10 years ago

For all versions, you need the boost libraries (devel package) installed. It should be tested by the configure script.

For the 1.0.4, that you should use, it seems that it is the checking code that causes problems. A full output of the messages would be helpful. Even better, a bug report at bugs.kde.org would help to solve the problem.

Older versions are not supposed to work anymore.

Report

sundol

10 years ago

All texts are disappeared.

I use this program for dot file in KDE session of Ubuntu 7.04.

Any suggestion, please?

Report

12 years ago

2010/11/14
* release of version 2.1.1
* dotgraphview is now a good citizen for libraries: it has a d-pointer
* fewer include files are installed
* default background color is initialized as needed in the settings dialog

2010/11/02
* release of version 2.1
* option to set the default background color
* source code now hosted on KDE git repository instead of svn

2010/07/07
* preparing version 2.1
* regressions corrections
* new integration possibilities (either as a plugin (Kpart) or a widget)

2008/05/09
* version 2.0.1 as released with KDE 4.04
* lots of progress in kgrapheditor
* precise selection of edges
* kill without error the current dot process when startting a new one
* rename some methods to avoid lexical hiding warnings
* new message boxes and new whatsthis that were delayed during 4.0 string freeze
* individual attribute changing mechanism
* new signals to inform of the current selection
* compiler warnings removal
* ...

2007/12/29
* first version including an experimental graph editor
* RC1 of the kde4 version

2007/07/14
* bugs correction
* now available in 26 languages !

2006/10/03
* now available in 16 languages !

2006/07/02
* Was crashing when closing some tabs

2006/06/24
* Corrects a crash condition (clicking in the empty window after a failed parsing)
* Signal failed parsings with a message box

2006/06/05
* Release of version 1.0
* Work of the KDE4 2.0 version has started

2006/05/27
* removed a bug appearing with graphviz 2.8

2006/05/26
* addad in the menu bar the entries from contextual menu and reported this
change in documentation
* added the possibility to disable the bird-eye view (menu, context menu,
accel, toolbar) and reported this change in documentation
* check for memory leaks

2006/05/25
* added a font cache to optimize a little bit

2006/05/24
* changes in config dialog now change the status of Apply button
* make appear the bird-eye view even if it was not initialy appearent when
zooming
* optimizations to be able to load and manipulate larger graphs (200+ linear
graph OK)

2006/05/23
* documentation

2006/05/18
* corrected placing of window position indicator (red line) in bird eye view
when zooming
* add tooltips and whatsthese everywhere
* corrected tooltips placement
* added French translation

2006/05/17
* corrected drawing errors appearing when dragging after a zoom by updating
Qt to 3.3.6

2006/05/16
* all graphviz example graphs are perfectly drawn
* corrected drawing of parallel edges
* corrected edges geometry definition (tips appear at wrong places)

2006/05/15
* corrected loading of edges bounds labels
* correct handling of record shaped nodes (see graphviz examples, compare with doted results)
* corrected handling of fonts (see graphviz examples, compare with doted results)
* corrected drawing of some undirected graphs in graphviz examples (compare with doted results)
* added support for main graph label

2006/05/14
* corrected drawing of clusters (compared with doted results)
* hack to not freeze with huge graphs. Stop loading after N vertices or edges (N currently set to 1000)

2006/05/13
* make the window position indicator to be still visible even when zooming a
lot (min size or big bold point)

2006/05/12
* added hard-coded min and max zoom factors
* scrolling with mouse wheel
* make minimum canvas size to window size
* reduce canvas size to graph size when its view becomes larger than itself

2006/05/07
* better integration of printing (splitting in pages, etc.)

2006/05/07
* printing on multiple pages or fited to one page
* applying the scaling factor to lines width (since more time but not logged)

2006/05/05
* added print preview and setup (code reused from the koffice tool kexi)

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
2.1.1
updated Nov 14 2010
added May 11 2005
downloads today
0
page views today 0