Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/root/sys/src/cmd/graphviz/graphs/undirected/Petersen.dot

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


/*
 * 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";
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.