-
Notifications
You must be signed in to change notification settings - Fork 28
Dot Format Example
Christian Haettich edited this page Feb 17, 2017
·
1 revision
#Dot Format Example
By running the command include_gardener ./inc -f dot -o graph.dot
in this repository, the file graph.dot
will contain the following:
digraph G {
0[label="parser.h"];
1[label="include_entry.h"];
2[label="graph.h"];
3[label="_template_.h"];
4[label="iostream"];
5[label="thread"];
6[label="mutex"];
7[label="deque"];
8[label="vector"];
9[label="condition_variable"];
10[label="boost/filesystem.hpp"];
11[label="memory"];
12[label="map"];
13[label="boost/graph/adjacency_list.hpp"];
14[label="boost/graph/labeled_graph.hpp"];
0->4 [label="line 24"];
0->5 [label="line 25"];
0->6 [label="line 26"];
0->7 [label="line 27"];
0->8 [label="line 28"];
0->9 [label="line 29"];
0->10 [label="line 31"];
0->1 [label="line 34"];
0->2 [label="line 35"];
1->11 [label="line 24"];
1->12 [label="line 25"];
1->4 [label="line 26"];
1->8 [label="line 27"];
2->4 [label="line 24"];
2->13 [label="line 26"];
2->14 [label="line 27"];
2->1 [label="line 29"];
3->4 [label="line 24"];
}
This can be converted via dot -Tsvg graph.dot > graph.svg
to the following SVG:
https://github.com/feddischson/include_gardener/blob/master/doc/example_svg/graph_01.svg