/usr/share/doc/graphviz/examples/graphs/undirected/Petersen.gv is in graphviz-doc 2.40.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | /*
* The transitive 5-net, also known as Petersen's graph,
* can be used to test the "stability points" of the layout
* algorithm.
*
* The "ideal" layout is achieved for certain random seed
* values when len=1.5. For len=2.5 or above, the layout
* is stable. Sometimes, the graph is rendered "inside-out".
*/
graph "Petersen" {
node [
fontname = "Arial"
label = "\N"
shape = "circle"
width = "0.400000"
height = "0.400000"
color = "black"
]
edge [
color = "black"
]
/* Outer wheel. The len= is what makes it outer */
"0" -- "1" -- "2" -- "3" -- "4" -- "0" [
color = "blue"
len = 2.6
]
"0" -- "5" [
color = "red"
weight = "5"
]
"1" -- "6" [
color = "red"
weight = "5"
]
"2" -- "7" [
color = "red"
weight = "5"
]
"3" -- "8" [
color = "red"
weight = "5"
]
"4" -- "9" [
color = "red"
weight = "5"
]
"5" -- "7" -- "9" -- "6" -- "8" -- "5";
}
|