Browse code

tests: Import Graphviz tests.

Jose Fonseca authored on 13/02/2016 23:53:31
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,48 @@
1
+/*
2
+ * The transitive 5-net, also known as Petersen's graph,
3
+ * can be used to test the "stability points" of the layout
4
+ * algorithm.
5
+ * 
6
+ * The "ideal" layout is achieved for certain random seed
7
+ * values when len=1.5.  For len=2.5 or above, the layout
8
+ * is stable. Sometimes, the graph is rendered "inside-out".
9
+ */ 
10
+graph "Petersen" {
11
+	node [
12
+		fontname = "Arial"
13
+		label = "\N"
14
+		shape = "circle"
15
+		width = "0.400000"
16
+		height = "0.400000"
17
+		color = "black"
18
+	]
19
+	edge [
20
+		color = "black"
21
+	]
22
+	/* Outer wheel. The len= is what makes it outer */
23
+	"0" -- "1" -- "2" -- "3" -- "4" -- "0" [
24
+		color = "blue"
25
+		len = 2.6
26
+	]
27
+	"0" -- "5" [
28
+		color = "red"
29
+		weight = "5"
30
+	]
31
+	"1" -- "6" [
32
+		color = "red"
33
+		weight = "5"
34
+	]
35
+	"2" -- "7" [
36
+		color = "red"
37
+		weight = "5"
38
+	]
39
+	"3" -- "8" [
40
+		color = "red"
41
+		weight = "5"
42
+	]
43
+	"4" -- "9" [
44
+		color = "red"
45
+		weight = "5"
46
+	]
47
+	"5" -- "7" -- "9" -- "6" -- "8" -- "5";
48
+}