src/doc/sphinx/example-graph.rst.inc (849B) - raw
1
2 .. digraph:: example
3
4 node [fontname = "Liberation Sans", fontsize = 12];
5 edge [fontname = "Liberation Sans", fontsize = 11];
6
7 bob [shape = ellipse, style = filled, color = palegreen, label = "<bob>"];
8 alice [shape = ellipse, style = filled, color = palegreen, label = "<alice>"];
9 carol [shape = ellipse, style = filled, color = palegreen, label = "<carol>"];
10
11 bob_name [shape = box, style = filled, color = peachpuff, label = "\"Bob\"" ];
12 alice_name [shape = box, style = filled, color = peachpuff, label = "\"Alice\"" ];
13 carol_name [shape = box, style = filled, color = peachpuff, label = "\"Carol\"" ];
14
15 bob -> bob_name [label = "foaf:name"];
16 alice -> alice_name [label = "foaf:name"];
17 carol -> carol_name [label = "foaf:name"];
18
19 bob -> alice [label = "foaf:knows"] ;
20 bob -> carol [label = "foaf:knows"] ;