Software Secret Weapons™
|
Graphviz by Pavel Simakov on 2005-08-11 11:41:34 under Linguine Maps, view comments |
|||||
|
Graphviz Graphviz will draw diagrams for you! The beauty of Graphviz that it will draw a pretty picture from formal definition of the drawing. And formal definition of the drawing is just a text file. No manual work! But who will create the drawing definition file? Software engineers? Documentation people? Managers? Its best to create drawing programmatically with Linguine Maps!
Graphviz Domain Specific Language The Graphviz uses domain specific language? called DOT to capture an abstract definition of a graph. Here is an example of a simple graph with two related nodes as defined in DOT language.
digraph Entities {
ranksep="equally";
edge [fontname="Helvetica", fontsize=10,
labelfontname="Helvetica", labelfontsize=10
];
node [fontname="Helvetica",fontsize=10,shape=record];
A [label="{A}", style=filled, fillcolor="yellow",
fontcolor="black", fontsize=14
];
B [label="{B}", style=filled, fillcolor="red",
fontcolor="black", fontsize=14
];
A -> B [arrowsize=1.0, label="A usea B", labelangle=-25,
labeldistance=0.3, labelfontsize=10, arrowtail=diamond
];
}
And here is the resulting GIF file with the drawing after Graphviz processes DOT code above:
The drawing and layout is fully automatic! No manual work! Try it online! Convert your Apache Ant build files, XML DTD's, or object-relational mapping files into easy to understand diagrams. Graphviz Todo Graphviz has some minor weakness. Or it might be that I don’t know how to use it properly... What bothers me the most is a positioning of labels around the arrows.
Lets hope there is a fix for it. |
|
|||||
|
Copyright © 2004-2010 by Pavel Simakov any conclusions, recommendations, ideas, thoughts or the source code presented on this site are my own and do not reflect a official opinion of my current or past employers, partners or clients |
|
No comments yet
Leave a comment