DotLanguage

attributes

syntax

How to set global edge attributes?

note : some of the attributes are only available in some special kind of graphs, if the one you use won’t work no matter how hard you try, go to check the availability of it via the website above

1
2
3
4
5
6
graph graphname {
edge = [color = red];
node = [...]

//other code here
}

How to make the line straight ?

note : the splines attribute is a separated one

1
2
3
4
5
6
7
8
graph graphname {
edge = [color = red]; // if you set here , it doesn't gonna work !!!
node = [...];
splines = "line"; // the correct place

//other code here

}

Change organization of the graph

This may cost quite a lot of time to generate the graph

1
2
3
4
5
6
7
graph graphname {

edge = [color = red];
node = [...]
layout="neato"
//other code here
}

For more info, go to check the website above


stackoverflow is a good place to ask questions