Navigation :

Further Reading

Links

SourceForge.net Logo

Motivation

Graphviz is a widely used graph layout package developed by AT&T.

There exist several ways of using Graphviz from Java, but in most cases the Graphviz command line tools are called to parse files containing a graph definition and render a rasterised image of the graph.

This is unsatisfactory for many interactive applications, and a more direct interface to the layout algorithms is desirable. Java bindings generated using SWIG already exist as part of the Graphviz source code, however they are very low-level.

Dot layout

jGraphViz aims to build on these low-level bindings to provide a more flexible interface to the graph model and layout system. It also provides some basic support for rendering the resulting layouts using GEF, and packages the library as an OSGi plugin compatible with Eclipse and other OSGi containers.

Features

Circo layout

jGraphViz is currently experimental, and is only tested on GNU/Linux (Ubuntu 8.04). Graphviz must already be installed on the system; in future we aim to remove the external dependency on libgv, and package everything directly in the plugin.

Building

To build the native component of jgraphviz, you must run the provided configure and make scripts. The standard libgv_java.so is not compatible due to a problem with the automatically generated bindings.


>chmod +x configure.sh
>./configure.sh [--graphvizdir=../../graphviz]
>make

Licence

jGraphViz is licenced under the Common Public Licence version 1.0.