How to start

I'm really glad i found this library, but i can't find the API or any documentation of how to use this in a, for example, C# project! Is there any? i wanna use something like this: www.graphviz.org/content/process but colored one and custom like thickness of lines, font ...

Waiting for your answer and thanks before

How to start

The document
http://www.graphviz.org/pdf/libguide.pdf
describes using Graphviz as a library. The description assumes a C API but Graphviz provides a variety of SWIG-based bindings, including C#, which are analogous to the C bindings except for obvious small syntactic differences. There are sample test programs in various languages in tclpkg/gv in the source tree and in
share/graphviz/demo in the install tree.

Almost everything is based on attribute assignments. For more information on this, see
http://www.graphviz.org/content/attrs
http://www.graphviz.org/pdf/dotguide.pdf
and the examples in http://www.graphviz.org/Gallery.php.

As you'll note from libguide.pdf, we encourage users to work with Graphviz at the highest level reasonable, preferably just as a program.

How to start in Java

Is there also an Java API for using Graphviz? What do you need to import then and how do I need to start designing a graph (i.e. what is the input format here)

Thanks

How to start in Java

There is a Java API, as well as ocaml, perl, python, ruby and others. You can find sample test programs in tclpkg/gv and tclpkg/gv/demo in the source tree. You can use the library primitives to create a graph, or create the graph as a text file using the DOT language and read it in. For example, the graph you posted would be written as

graph {
zombie -- kernel
kernel -- { run sleep runmem }
run -- {runbl intr}
runbl -- intr
sleep -- {swap runmem}
runmem -- new
new -- runswap
runswap -- swap
}

How to start in Java

If you're not afraid of eclipse, check http://wiki.eclipse.org/Graphviz_DOT_as_a_DSL_for_Zest

Recent comments