Mercurial > hg > camir-aes2014
annotate toolboxes/graph_visualisation/share/graphviz/graphs/undirected/Petersen.gv @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
rev | line source |
---|---|
wolffd@0 | 1 /* |
wolffd@0 | 2 * The transitive 5-net, also known as Petersen's graph, |
wolffd@0 | 3 * can be used to test the "stability points" of the layout |
wolffd@0 | 4 * algorithm. |
wolffd@0 | 5 * |
wolffd@0 | 6 * The "ideal" layout is achieved for certain random seed |
wolffd@0 | 7 * values when len=1.5. For len=2.5 or above, the layout |
wolffd@0 | 8 * is stable. Sometimes, the graph is rendered "inside-out". |
wolffd@0 | 9 */ |
wolffd@0 | 10 graph "Petersen" { |
wolffd@0 | 11 node [ |
wolffd@0 | 12 fontname = "Arial" |
wolffd@0 | 13 label = "\N" |
wolffd@0 | 14 shape = "circle" |
wolffd@0 | 15 width = "0.400000" |
wolffd@0 | 16 height = "0.400000" |
wolffd@0 | 17 color = "black" |
wolffd@0 | 18 ] |
wolffd@0 | 19 edge [ |
wolffd@0 | 20 color = "black" |
wolffd@0 | 21 ] |
wolffd@0 | 22 /* Outer wheel. The len= is what makes it outer */ |
wolffd@0 | 23 "0" -- "1" -- "2" -- "3" -- "4" -- "0" [ |
wolffd@0 | 24 color = "blue" |
wolffd@0 | 25 len = 2.6 |
wolffd@0 | 26 ] |
wolffd@0 | 27 "0" -- "5" [ |
wolffd@0 | 28 color = "red" |
wolffd@0 | 29 weight = "5" |
wolffd@0 | 30 ] |
wolffd@0 | 31 "1" -- "6" [ |
wolffd@0 | 32 color = "red" |
wolffd@0 | 33 weight = "5" |
wolffd@0 | 34 ] |
wolffd@0 | 35 "2" -- "7" [ |
wolffd@0 | 36 color = "red" |
wolffd@0 | 37 weight = "5" |
wolffd@0 | 38 ] |
wolffd@0 | 39 "3" -- "8" [ |
wolffd@0 | 40 color = "red" |
wolffd@0 | 41 weight = "5" |
wolffd@0 | 42 ] |
wolffd@0 | 43 "4" -- "9" [ |
wolffd@0 | 44 color = "red" |
wolffd@0 | 45 weight = "5" |
wolffd@0 | 46 ] |
wolffd@0 | 47 "5" -- "7" -- "9" -- "6" -- "8" -- "5"; |
wolffd@0 | 48 } |