Debian Codegraph @

t/svg/svg.txt

raw
1 graph {
2 fill: peru;
3 border: 1px dashed blue;
4 }
5 group { fill: peru; }
6
7 [ Bonn ] - > [ Berlin ] { shape: circle; fill: darkslategrey; background: brown; color: white; }
8 [ Bonn ] ==> [ Frankfurt ] { fill: #deadff; }
9 [ Berlin ] ..> [ Cottbus ] { shape: ellipse; }
10 [ Berlin ] -> { color: green; } [ Bonn ] { fill: #ffdead; }
11 [ Cottbus ] = > [ Frankfurt ]
12 [ Berlin ] -> { arrow-style: closed; } [ Ulm ]
13 [ Ulm ] { shape: house; } .-> { color: #a02020; } [ Koblenz]
14 [ Ulm ] ..-> [ Konstanz ] { shape: diamond; fill: peru; border: none; background: yellow; }
15
16 [ Konstanz ] --> { arrow-style: filled; fill: red; } [ Mainz ] { shape: triangle; }
17
18 [ Koblenz ] { shape: invtriangle; }
19
20 node.point { shape: point; flow: south; }
21 node.doublepoint { border-style: double; shape: point; flow: east; }
22 node.double { border: double white; fill: palevioletred; }
23 node.doubledash { border: double-dash yellow; fill: crimson; }
24
25 ( Stars
26 [ A ] { point-style: star; color: red; } -> # background ignored
27 [ B ] { point-style: circle; fill: dodgerblue; } ->
28 [ C ] { point-style: circle; fill: white; } ->
29 [ D ] { point-style: square; fill: firebrick; flow: west; } ->
30 [ E ] { point-style: diamond; fill: lime; } ->
31 [ F ] { shape: invisible; background: coral; } ->
32 [ G ] { point-style: dot; color: slategrey; } -> # background ignored
33 [ H ] { point-style: circle; fill: black; } ->
34 [ I ] { point-style: cross; color: darkblue; } # fill ignored
35 ) { nodeclass: point; }
36
37 (
38 [ Rect ]
39 <--> [ Circle ] { shape: circle; }
40 <--> [ Ellipse ] { shape: ellipse; }
41 <.-> [ House ] { shape: house; }
42 <.> [ InvHouse ] { shape: invhouse; }
43 <= > [ Triangle ] { shape: triangle; }
44 <- > [ InvTriangle ] { shape: invtriangle; flow: south; }
45 <..-> [ Octagon ] { shape: octagon; flow: south; }
46 <..-> [ Diamond ] { shape: diamond; flow: east; }
47 [ Triangle ] <==> [ Hexagon ] { shape: hexagon; }
48 <==> [ Pentagon ] { shape: pentagon; }
49 <==> [ Septagon ] { shape: septagon; }
50 [ Pentagon ] <==> [ Parallelogram ] { shape: parallelogram; }
51 [ Hexagon ] -- [ Trapezium ] { shape: trapezium; }
52 [ Hexagon ] .-.- [ Invtrapezium ] { shape: invtrapezium; }
53 ) { nodeclass: double; }
54
55 [ A ] -> [ AB ]
56
57 ( Stars2
58 [ AB ] { point-style: circle; fill: dodgerblue; } ->
59 [ AC ] { point-style: circle; fill: white; } ->
60 [ AD ] { point-style: square; fill: firebrick; flow: west; } ->
61 [ AE ] { point-style: diamond; fill: lime; } ->
62 [ AF ] { shape: invisible; background: coral; } ->
63 [ AG ] { point-style: dot; color: slategrey; } -> # background ignored
64 [ AH ] { point-style: circle; fill: black; } ->
65 [ AI ] { point-style: cross; color: darkblue; } # fill ignored
66 ) { nodeclass: doublepoint; }
67
68 ( Rect2
69 [ DRect ] { origin: Frankfurt; offset: 0,4; }
70 <--> [ DCircle ] { shape: circle; }
71 <.-> [ DHouse ] { shape: house; }
72 <.> [ DInvHouse ] { shape: invhouse; }
73 <= > [ DTriangle ] { shape: triangle; }
74 <- > [ DInvTriangle ] { shape: invtriangle; flow: south; }
75 <..-> [ DOctagon ] { shape: octagon; flow: south; }
76 <..-> [ DDiamond ] { shape: diamond; flow: east; }
77 [ DTriangle ] <==> [ DHexagon ] { shape: hexagon; }
78 <==> [ DPentagon ] { shape: pentagon; }
79 <==> [ DSeptagon ] { shape: septagon; }
80 [ DPentagon ] <==> [ DParallelogram ] { shape: parallelogram; }
81 [ DDiamond ] -- [ DTrapezium ] { shape: trapezium; }
82 [ DHexagon ] .-.- [ DInvtrapezium ] { shape: invtrapezium; }
83 ) { nodeclass: doubledash; }
84
85