TestLayoutCircle
  O> layout-circle turtles max-pxcor
  O> crt 1
  O> layout-circle turtles max-pxcor
  [xcor] of turtle 0 => 0
  [ycor] of turtle 0 = max-pxcor => true
  O> crt 1
  O> layout-circle sort turtles max-pxcor
  [xcor] of turtle 0 => 0
  [ycor] of turtle 0 = max-pxcor => true
  [xcor] of turtle 1 => 0
  [ycor] of turtle 1 = (- max-pxcor) => true
  O> crt 2
  O> layout-circle sort turtles max-pxcor
  [xcor] of turtle 3 = (- max-pxcor) => true
  [ycor] of turtle 3 => 0
  O> crt 271
  O> layout-circle turtles max-pxcor
  T> bk max-pxcor
  remove-duplicates [precision xcor 14] of turtles => [0]
  remove-duplicates [precision ycor 14] of turtles => [0]
  O> layout-circle turtles max-pxcor
  O> layout-circle turtles 0
  remove-duplicates [precision xcor 14] of turtles => [0]
  remove-duplicates [precision ycor 14] of turtles => [0]

TestLayoutCircleIsRandom
  O> random-seed 8123
  O> crt 100
  O> layout-circle sort turtles max-pxcor
  sort-by [[heading] of ?1 < [heading] of ?2] turtles = sort turtles => true
  O> layout-circle turtles max-pxcor
  sort-by [[heading] of ?1 < [heading] of ?2] turtles = sort turtles => false

TestLayoutSpringLeaveSomeTurtlesOut
  O> crt 2
  O> ask turtle 0 [ create-link-with turtle 1 ]
  O> layout-spring turtles with [ color = red ] links 0.1 0.1 0.1

TestLayoutSpringLeaveSomeLinksOut
  O> crt 4
  O> ask turtles [ create-links-with other turtles ]
  O> layout-spring turtles [my-links] of turtle 0  0.1 0.1 0.1

LayoutAnchors
  globals [glob1]
  O> crt 10 [ setxy random-xcor random-ycor ]
  T> ask other turtles [ if random-float 100 < 12 [ carefully [ create-link-with myself ] [] ] ]
  O> set glob1 map [ [list xcor ycor] of ? ] sort turtles
  O> layout-spring no-turtles links 0.2 5 0.2
  glob1 = map [ [list xcor ycor] of ? ] sort turtles => true

CircleRandom
  O> resize-world -10 10 -10 10
  O> crt 10
  O> layout-circle turtles 5
  [distancexy 0 0] of turtles => [5 5 5 5 5 5 5 5 5 5]
  sort [[precision distance myself 12] of turtles] of turtle 0 = sort [[precision distance myself 12] of turtles] of turtle 1 => true

CircleSorted
  O> resize-world -10 10 -10 10
  O> crt 10
  O> layout-circle sort turtles 5
  [distancexy 0 0] of turtles => [5 5 5 5 5 5 5 5 5 5]
  [distancexy 0 0] of turtles => [5 5 5 5 5 5 5 5 5 5]
  sort [[precision distance myself 12] of turtles] of turtle 0 = sort [[precision distance myself 12] of turtles] of turtle 1 => true
  [list xcor ycor] of turtle 0 => [0 5]
  [list xcor ycor] of turtle 5 => [0 -5]

Radial
  O> resize-world -16 16 -16 16
  O> crt 10
  O> ask turtle 0 [ create-links-with other turtles ]
  O> layout-radial turtles links turtle 0
  sum [distance turtle 0] of turtles => 119.99999999999999
  O> ask turtles with [who > 0] [ hatch 3 [ create-link-with myself ] ]
  O> layout-radial turtles links turtle 0
  precision sum [distancexy 0 0] of turtles with [ count link-neighbors = 1 ] 11 => 392.72727272727
  sum [distancexy 0 0] of turtles with [ count link-neighbors = 4 ] => 65.45454545454545

Tutte
  O> resize-world -16 16 -16 16
  O> crt 4
  O> ask turtles [create-links-with other turtles]
  O> layout-tutte turtles with [ who >= 3 ] links 5
  [[precision distance myself 11] of other turtles] of turtle 3 => [5 5 5]

