no curved arrows

Hallo comunity,

is it possible to set the arrow style, that it is not curved. I´d rather want, that they are straight with sharp edges.

Best regards

crush

no curved arrows

I noticed that whereas Graphviz used to appear in the Windows 7 registry at
HKLM "SOFTWARE\Wow6432Node\AT&T Research Labs\Graphviz"
it's now at
HKLM "SOFTWARE\Wow6432Node\AT&T Research Labs\Graphviz 2.28"
Maybe not such a hot idea to code the version # into the registry key? 

no curved arrows

When you say arrow, are you referring to the edge joining two nodes? If so, you can set the splines attribute to various values that will produce a polyline drawing of the edge. See http://www.graphviz.org/content/attrs#dsplines.

different fontsize

Thank you, that was the answer i searched for. Now I have a new question: Is is possible to write two lines in one node with two different fontsizes? My first try was:
digraph relations {
nodesep=0.7
node [shape=box, fontname=arial]
splines=false
edge [fontname=arial, fontsize=8]
1 [label="text one","\ntext two",fontsize=8]
2 [label="text three","\ntext four",fontsize=8]
1->2 [label="edge text"]
}
But the result is, that only text one and three appear in the box. And if I declare 1 [label="text one\ntext two",fontsize=8], both lines have the same fontsize.
 

different fontsize

Technically, the usage
  1 [label="text one","\ntext two",fontsize=8]
contains a syntax error: each of the items inside [...] should have the form name=value which isn't true for "\ntext two".
 
You can get what you want but you need to use the more general HTML-like labels. See  http://www.graphviz.org/content/node-shapes#html
For example, you would use
 
  1 [label=<text one<br/><font point-size="8">text two</font>>]
 
Also, when checking this, I stumbled upon a bug, which is now fixed but you may need to get the newest working version.

different fontsize

Thank you, this helped a lot. But it seems that GraphViz' output is variable. A pattern for one of my relations:
digraph relations {
nodesep=0.7
node [shape=box, fontname=arial]
splines=false
edge [fontname=arial, fontsize=8]
node1[label=<text1<br/><font point-size="8">text2</font>>]
node2[label=<text3<br/><font point-size="8">text4</font>>]
...
..etc
node1->node2[label="label1"]
...
..etc
 
I use the commands to create a png- and a pdf-file for output. But in both cases there are differences between the textsizes of the strings after the <br\>. The space between the two lines in the nodes differ, too. Is that a htlm-problem, or did i forget something in the header?

different fontsize

I'm not seeing this, using version 2.29. By default, the rendering of both formats should be done using pango and cairo, so they ought to be the same. This might be a bug in an earlier version or maybe the png output is being handled by the gd renderer. What do you get when you run dot with -v in both cases?

different fontsize

This is the output for PDF-File:
C:\Users\user>dot -v -Tpdf %temp%\test.txt -o "%temp%\test.pdf"
dot - graphviz version 2.28.0 (20110507.0327)
libdir = "C:\Program Files (x86)\Graphviz 2.28\bin"
Activated plugin library: gvplugin_pango.dll
Using textlayout: textlayout:cairo
Using render: cairo:cairo
Using device: pdf:cairo:cairo
Activated plugin library: gvplugin_dot_layout.dll
Using layout: dot:dot_layout
The plugin configuration file:
        C:\Program Files (x86)\Graphviz 2.28\bin\config6
                was successfully loaded.
    render      :  cairo dot fig gd gdiplus map ps svg tk vml vrml xdot
    layout      :  circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
    textlayout  :  textlayout
    device      :  bmp canon cmap cmapx cmapx_np dot emf emfplus eps fig gd gd2
gif gv imap imap_np ismap jpe jpeg jpg metafile pdf plain plain-ext png ps ps2 s
vg svgz tif tiff tk vml vmlz vrml wbmp xdot
    loadimage   :  (lib) bmp eps gd gd2 gif jpe jpeg jpg png ps svg
fontname: "arial" resolved to: (PangoCairoWin32Font) "Arial 13.9990234375"
network simplex:  2 nodes 1 edges maxiter=2147483647 balance=1
network simplex: 2 nodes 1 edges 0 iter 0.00 sec
network simplex:  6 nodes 6 edges maxiter=2147483647 balance=1
network simplex: 6 nodes 6 edges 0 iter 0.00 sec
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross Beziehungen: 0 crossings, 0.00 secs.
network simplex:  33 nodes 42 edges maxiter=2147483647 balance=2
network simplex: 33 nodes 42 edges 5 iter 0.00 sec
routesplines: 7 edges, 39 boxes 0.00 sec
Using render: cairo:cairo
Using device: pdf:cairo:cairo
Output for png-File:
C:\Users\user>dot -v -Tpng %temp%\test.txt -o "%temp%\test.png"
dot - graphviz version 2.28.0 (20110507.0327)
libdir = "C:\Program Files (x86)\Graphviz 2.28\bin"
Activated plugin library: gvplugin_pango.dll
Using textlayout: textlayout:cairo
Using render: cairo:cairo
Using device: png:cairo:cairo
Activated plugin library: gvplugin_dot_layout.dll
Using layout: dot:dot_layout
The plugin configuration file:
        C:\Program Files (x86)\Graphviz 2.28\bin\config6
                was successfully loaded.
    render      :  cairo dot fig gd gdiplus map ps svg tk vml vrml xdot
    layout      :  circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
    textlayout  :  textlayout
    device      :  bmp canon cmap cmapx cmapx_np dot emf emfplus eps fig gd gd2
gif gv imap imap_np ismap jpe jpeg jpg metafile pdf plain plain-ext png ps ps2 s
vg svgz tif tiff tk vml vmlz vrml wbmp xdot
    loadimage   :  (lib) bmp eps gd gd2 gif jpe jpeg jpg png ps svg
fontname: "arial" resolved to: (PangoCairoWin32Font) "Arial 13.9990234375"
network simplex:  2 nodes 1 edges maxiter=2147483647 balance=1
network simplex: 2 nodes 1 edges 0 iter 0.00 sec
network simplex:  6 nodes 6 edges maxiter=2147483647 balance=1
network simplex: 6 nodes 6 edges 0 iter 0.00 sec
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross Beziehungen: 0 crossings, 0.00 secs.
network simplex:  33 nodes 42 edges maxiter=2147483647 balance=2
network simplex: 33 nodes 42 edges 5 iter 0.00 sec
routesplines: 7 edges, 39 boxes 0.00 sec
Using render: cairo:cairo
Using device: png:cairo:cairo
dot: allocating a 1126K cairo image surface (745 x 387 pixels)

different fontsize

Your usage is correct. There is a problem with this on the 2.28 Graphviz Windows version. If you upgrade to 2.29, the problem is fixed. If you still have problems with 2.29, please file a bug report. Thanks.