Neighbors1Torus
  O> __change-topology true true
  min [count neighbors] of patches => 8
  max [count neighbors] of patches => 8
  min [count neighbors4] of patches => 4
  max [count neighbors4] of patches => 4

Neighbors1Box
  O> __change-topology false false
  min [count neighbors] of patches => 3
  max [count neighbors] of patches => 8
  min [count neighbors4] of patches => 2
  max [count neighbors4] of patches => 4

Neighbors1VCylind
  O> __change-topology true false
  min [count neighbors] of patches => 5
  max [count neighbors] of patches => 8
  min [count neighbors4] of patches => 3
  max [count neighbors4] of patches => 4

Neighbors1HCylind
  O> __change-topology false true
  min [count neighbors] of patches => 5
  max [count neighbors] of patches => 8
  min [count neighbors4] of patches => 3
  max [count neighbors4] of patches => 4

Neighbors2Box
  O> resize-world 0 0 0 0
  O> __change-topology false false
  count [neighbors] of patch 0 0 => 0
  count [neighbors4] of patch 0 0 => 0
  O> resize-world -1 1 0 0
  count [neighbors] of patch 0 0 => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors] of patch -1 0 => 1
  count [neighbors4] of patch -1 0 => 1
  count [neighbors] of patch 1 0 => 1
  count [neighbors4] of patch 1 0 => 1
  O> resize-world 0 0 -1 1
  count [neighbors] of patch 0 0 => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors] of patch 0 -1 => 1
  count [neighbors4] of patch 0 -1 => 1
  count [neighbors] of patch 0 1 => 1
  count [neighbors4] of patch 0 1 => 1

Neighbors2HorizontalCylinder
  O> resize-world 0 0 0 0
  O> __change-topology false true
  count [neighbors] of patch 0 0 => 0
  count [neighbors4] of patch 0 0 => 0
  O> resize-world -1 1 0 0
  count [neighbors] of patch 0 0 => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors] of patch -1 0 => 1
  count [neighbors4] of patch -1 0 => 1
  count [neighbors] of patch 1 0 => 1
  count [neighbors4] of patch 1 0 => 1
  O> resize-world 0 0 -1 1
  count [neighbors] of patch 0 0 => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors] of patch 0 -1 => 2
  count [neighbors4] of patch 0 -1 => 2
  count [neighbors] of patch 0 1 => 2
  count [neighbors4] of patch 0 1 => 2

Neighbors2VerticalCylinder
  O> resize-world 0 0 0 0
  O> __change-topology true false
  count [neighbors] of patch 0 0 => 0
  count [neighbors4] of patch 0 0 => 0
  O> resize-world 0 0 -1 1
  count [neighbors] of patch 0 0 => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors] of patch 0 -1 => 1
  count [neighbors4] of patch 0 -1 => 1
  count [neighbors] of patch 0 1 => 1
  count [neighbors4] of patch 0 1 => 1
  O> resize-world -1 1 0 0
  count [neighbors] of patch 0 0 => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors] of patch -1 0 => 2
  count [neighbors4] of patch -1 0 => 2
  count [neighbors] of patch 1 0 => 2
  count [neighbors4] of patch 1 0 => 2

Neighbors2Torus
  O> resize-world 0 0 0 0
  count [neighbors] of patch 0 0 => 0
  count [neighbors4] of patch 0 0 => 0
  O> resize-world 0 0 -1 1
  count [neighbors] of patch 0 0 => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors] of patch 0 -1 => 2
  count [neighbors4] of patch 0 -1 => 2
  count [neighbors] of patch 0 1 => 2
  count [neighbors4] of patch 0 1 => 2
  O> resize-world -1 1 0 0
  count [neighbors] of patch 0 0 => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors] of patch -1 0 => 2
  count [neighbors4] of patch -1 0 => 2
  count [neighbors] of patch 1 0 => 2
  count [neighbors4] of patch 1 0 => 2

NeighborsLots1
  O> resize-world 0 0 0 0
  O> __change-topology true true
  count [neighbors] of patch 0 0 => 0
  count [neighbors] of patch min-pxcor 0 => 0
  count [neighbors] of patch max-pxcor 0 => 0
  count [neighbors] of patch 0 min-pycor => 0
  count [neighbors] of patch 0 max-pycor => 0
  count [neighbors] of patch min-pxcor min-pycor => 0
  count [neighbors] of patch max-pxcor min-pycor => 0
  count [neighbors] of patch min-pxcor max-pycor => 0
  count [neighbors] of patch max-pxcor max-pycor => 0
  count [neighbors4] of patch 0 0 => 0
  count [neighbors4] of patch min-pxcor 0 => 0
  count [neighbors4] of patch max-pxcor 0 => 0
  count [neighbors4] of patch 0 min-pycor => 0
  count [neighbors4] of patch 0 max-pycor => 0
  count [neighbors4] of patch min-pxcor min-pycor => 0
  count [neighbors4] of patch max-pxcor min-pycor => 0
  count [neighbors4] of patch min-pxcor max-pycor => 0
  count [neighbors4] of patch max-pxcor max-pycor => 0
  O> __change-topology false false
  count [neighbors] of patch 0 0 => 0
  count [neighbors] of patch min-pxcor 0 => 0
  count [neighbors] of patch max-pxcor 0 => 0
  count [neighbors] of patch 0 min-pycor => 0
  count [neighbors] of patch 0 max-pycor => 0
  count [neighbors] of patch min-pxcor min-pycor => 0
  count [neighbors] of patch max-pxcor min-pycor => 0
  count [neighbors] of patch min-pxcor max-pycor => 0
  count [neighbors] of patch max-pxcor max-pycor => 0
  count [neighbors4] of patch 0 0 => 0
  count [neighbors4] of patch min-pxcor 0 => 0
  count [neighbors4] of patch max-pxcor 0 => 0
  count [neighbors4] of patch 0 min-pycor => 0
  count [neighbors4] of patch 0 max-pycor => 0
  count [neighbors4] of patch min-pxcor min-pycor => 0
  count [neighbors4] of patch max-pxcor min-pycor => 0
  count [neighbors4] of patch min-pxcor max-pycor => 0
  count [neighbors4] of patch max-pxcor max-pycor => 0
  O> __change-topology true false
  count [neighbors] of patch 0 0 => 0
  count [neighbors] of patch min-pxcor 0 => 0
  count [neighbors] of patch max-pxcor 0 => 0
  count [neighbors] of patch 0 min-pycor => 0
  count [neighbors] of patch 0 max-pycor => 0
  count [neighbors] of patch min-pxcor min-pycor => 0
  count [neighbors] of patch max-pxcor min-pycor => 0
  count [neighbors] of patch min-pxcor max-pycor => 0
  count [neighbors] of patch max-pxcor max-pycor => 0
  count [neighbors4] of patch 0 0 => 0
  count [neighbors4] of patch min-pxcor 0 => 0
  count [neighbors4] of patch max-pxcor 0 => 0
  count [neighbors4] of patch 0 min-pycor => 0
  count [neighbors4] of patch 0 max-pycor => 0
  count [neighbors4] of patch min-pxcor min-pycor => 0
  count [neighbors4] of patch max-pxcor min-pycor => 0
  count [neighbors4] of patch min-pxcor max-pycor => 0
  count [neighbors4] of patch max-pxcor max-pycor => 0
  O> __change-topology false true
  count [neighbors] of patch 0 0 => 0
  count [neighbors] of patch min-pxcor 0 => 0
  count [neighbors] of patch max-pxcor 0 => 0
  count [neighbors] of patch 0 min-pycor => 0
  count [neighbors] of patch 0 max-pycor => 0
  count [neighbors] of patch min-pxcor min-pycor => 0
  count [neighbors] of patch max-pxcor min-pycor => 0
  count [neighbors] of patch min-pxcor max-pycor => 0
  count [neighbors] of patch max-pxcor max-pycor => 0
  count [neighbors4] of patch 0 0 => 0
  count [neighbors4] of patch min-pxcor 0 => 0
  count [neighbors4] of patch max-pxcor 0 => 0
  count [neighbors4] of patch 0 min-pycor => 0
  count [neighbors4] of patch 0 max-pycor => 0
  count [neighbors4] of patch min-pxcor min-pycor => 0
  count [neighbors4] of patch max-pxcor min-pycor => 0
  count [neighbors4] of patch min-pxcor max-pycor => 0
  count [neighbors4] of patch max-pxcor max-pycor => 0

NeighborsLots2
  O> resize-world 0 5 0 0
  O> __change-topology true true
  count [neighbors] of patch 0 0 => 2
  count [neighbors] of patch min-pxcor 0 => 2
  count [neighbors] of patch max-pxcor 0 => 2
  count [neighbors] of patch 0 min-pycor => 2
  count [neighbors] of patch 0 max-pycor => 2
  count [neighbors] of patch min-pxcor min-pycor => 2
  count [neighbors] of patch max-pxcor min-pycor => 2
  count [neighbors] of patch min-pxcor max-pycor => 2
  count [neighbors] of patch max-pxcor max-pycor => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors4] of patch min-pxcor 0 => 2
  count [neighbors4] of patch max-pxcor 0 => 2
  count [neighbors4] of patch 0 min-pycor => 2
  count [neighbors4] of patch 0 max-pycor => 2
  count [neighbors4] of patch min-pxcor min-pycor => 2
  count [neighbors4] of patch max-pxcor min-pycor => 2
  count [neighbors4] of patch min-pxcor max-pycor => 2
  count [neighbors4] of patch max-pxcor max-pycor => 2
  O> __change-topology false false
  count [neighbors] of patch 0 0 => 1
  count [neighbors] of patch min-pxcor 0 => 1
  count [neighbors] of patch max-pxcor 0 => 1
  count [neighbors] of patch 0 min-pycor => 1
  count [neighbors] of patch 0 max-pycor => 1
  count [neighbors] of patch min-pxcor min-pycor => 1
  count [neighbors] of patch max-pxcor min-pycor => 1
  count [neighbors] of patch min-pxcor max-pycor => 1
  count [neighbors] of patch max-pxcor max-pycor => 1
  count [neighbors4] of patch 0 0 => 1
  count [neighbors4] of patch min-pxcor 0 => 1
  count [neighbors4] of patch max-pxcor 0 => 1
  count [neighbors4] of patch 0 min-pycor => 1
  count [neighbors4] of patch 0 max-pycor => 1
  count [neighbors4] of patch min-pxcor min-pycor => 1
  count [neighbors4] of patch max-pxcor min-pycor => 1
  count [neighbors4] of patch min-pxcor max-pycor => 1
  count [neighbors4] of patch max-pxcor max-pycor => 1
  O> __change-topology true false
  count [neighbors] of patch 0 0 => 2
  count [neighbors] of patch min-pxcor 0 => 2
  count [neighbors] of patch max-pxcor 0 => 2
  count [neighbors] of patch 0 min-pycor => 2
  count [neighbors] of patch 0 max-pycor => 2
  count [neighbors] of patch min-pxcor min-pycor => 2
  count [neighbors] of patch max-pxcor min-pycor => 2
  count [neighbors] of patch min-pxcor max-pycor => 2
  count [neighbors] of patch max-pxcor max-pycor => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors4] of patch min-pxcor 0 => 2
  count [neighbors4] of patch max-pxcor 0 => 2
  count [neighbors4] of patch 0 min-pycor => 2
  count [neighbors4] of patch 0 max-pycor => 2
  count [neighbors4] of patch min-pxcor min-pycor => 2
  count [neighbors4] of patch max-pxcor min-pycor => 2
  count [neighbors4] of patch min-pxcor max-pycor => 2
  count [neighbors4] of patch max-pxcor max-pycor => 2
  O> __change-topology false true
  count [neighbors] of patch 0 0 => 1
  count [neighbors] of patch min-pxcor 0 => 1
  count [neighbors] of patch max-pxcor 0 => 1
  count [neighbors] of patch 0 min-pycor => 1
  count [neighbors] of patch 0 max-pycor => 1
  count [neighbors] of patch min-pxcor min-pycor => 1
  count [neighbors] of patch max-pxcor min-pycor => 1
  count [neighbors] of patch min-pxcor max-pycor => 1
  count [neighbors] of patch max-pxcor max-pycor => 1
  count [neighbors4] of patch 0 0 => 1
  count [neighbors4] of patch min-pxcor 0 => 1
  count [neighbors4] of patch max-pxcor 0 => 1
  count [neighbors4] of patch 0 min-pycor => 1
  count [neighbors4] of patch 0 max-pycor => 1
  count [neighbors4] of patch min-pxcor min-pycor => 1
  count [neighbors4] of patch max-pxcor min-pycor => 1
  count [neighbors4] of patch min-pxcor max-pycor => 1
  count [neighbors4] of patch max-pxcor max-pycor => 1

NeighborsLots3
  O> resize-world 0 0 0 5
  O> __change-topology true true
  count [neighbors] of patch 0 0 => 2
  count [neighbors] of patch min-pxcor 0 => 2
  count [neighbors] of patch max-pxcor 0 => 2
  count [neighbors] of patch 0 min-pycor => 2
  count [neighbors] of patch 0 max-pycor => 2
  count [neighbors] of patch min-pxcor min-pycor => 2
  count [neighbors] of patch max-pxcor min-pycor => 2
  count [neighbors] of patch min-pxcor max-pycor => 2
  count [neighbors] of patch max-pxcor max-pycor => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors4] of patch min-pxcor 0 => 2
  count [neighbors4] of patch max-pxcor 0 => 2
  count [neighbors4] of patch 0 min-pycor => 2
  count [neighbors4] of patch 0 max-pycor => 2
  count [neighbors4] of patch min-pxcor min-pycor => 2
  count [neighbors4] of patch max-pxcor min-pycor => 2
  count [neighbors4] of patch min-pxcor max-pycor => 2
  count [neighbors4] of patch max-pxcor max-pycor => 2
  O> __change-topology false false
  count [neighbors] of patch 0 0 => 1
  count [neighbors] of patch min-pxcor 0 => 1
  count [neighbors] of patch max-pxcor 0 => 1
  count [neighbors] of patch 0 min-pycor => 1
  count [neighbors] of patch 0 max-pycor => 1
  count [neighbors] of patch min-pxcor min-pycor => 1
  count [neighbors] of patch max-pxcor min-pycor => 1
  count [neighbors] of patch min-pxcor max-pycor => 1
  count [neighbors] of patch max-pxcor max-pycor => 1
  count [neighbors4] of patch 0 0 => 1
  count [neighbors4] of patch min-pxcor 0 => 1
  count [neighbors4] of patch max-pxcor 0 => 1
  count [neighbors4] of patch 0 min-pycor => 1
  count [neighbors4] of patch 0 max-pycor => 1
  count [neighbors4] of patch min-pxcor min-pycor => 1
  count [neighbors4] of patch max-pxcor min-pycor => 1
  count [neighbors4] of patch min-pxcor max-pycor => 1
  count [neighbors4] of patch max-pxcor max-pycor => 1
  O> __change-topology true false
  count [neighbors] of patch 0 0 => 1
  count [neighbors] of patch min-pxcor 0 => 1
  count [neighbors] of patch max-pxcor 0 => 1
  count [neighbors] of patch 0 min-pycor => 1
  count [neighbors] of patch 0 max-pycor => 1
  count [neighbors] of patch min-pxcor min-pycor => 1
  count [neighbors] of patch max-pxcor min-pycor => 1
  count [neighbors] of patch min-pxcor max-pycor => 1
  count [neighbors] of patch max-pxcor max-pycor => 1
  count [neighbors4] of patch 0 0 => 1
  count [neighbors4] of patch min-pxcor 0 => 1
  count [neighbors4] of patch max-pxcor 0 => 1
  count [neighbors4] of patch 0 min-pycor => 1
  count [neighbors4] of patch 0 max-pycor => 1
  count [neighbors4] of patch min-pxcor min-pycor => 1
  count [neighbors4] of patch max-pxcor min-pycor => 1
  count [neighbors4] of patch min-pxcor max-pycor => 1
  count [neighbors4] of patch max-pxcor max-pycor => 1
  O> __change-topology false true
  count [neighbors] of patch 0 0 => 2
  count [neighbors] of patch min-pxcor 0 => 2
  count [neighbors] of patch max-pxcor 0 => 2
  count [neighbors] of patch 0 min-pycor => 2
  count [neighbors] of patch 0 max-pycor => 2
  count [neighbors] of patch min-pxcor min-pycor => 2
  count [neighbors] of patch max-pxcor min-pycor => 2
  count [neighbors] of patch min-pxcor max-pycor => 2
  count [neighbors] of patch max-pxcor max-pycor => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors4] of patch min-pxcor 0 => 2
  count [neighbors4] of patch max-pxcor 0 => 2
  count [neighbors4] of patch 0 min-pycor => 2
  count [neighbors4] of patch 0 max-pycor => 2
  count [neighbors4] of patch min-pxcor min-pycor => 2
  count [neighbors4] of patch max-pxcor min-pycor => 2
  count [neighbors4] of patch min-pxcor max-pycor => 2
  count [neighbors4] of patch max-pxcor max-pycor => 2

NeighborsLots4
  O> resize-world -5 5 0 0
  O> __change-topology true true
  count [neighbors] of patch 0 0 => 2
  count [neighbors] of patch min-pxcor 0 => 2
  count [neighbors] of patch max-pxcor 0 => 2
  count [neighbors] of patch 0 min-pycor => 2
  count [neighbors] of patch 0 max-pycor => 2
  count [neighbors] of patch min-pxcor min-pycor => 2
  count [neighbors] of patch max-pxcor min-pycor => 2
  count [neighbors] of patch min-pxcor max-pycor => 2
  count [neighbors] of patch max-pxcor max-pycor => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors4] of patch min-pxcor 0 => 2
  count [neighbors4] of patch max-pxcor 0 => 2
  count [neighbors4] of patch 0 min-pycor => 2
  count [neighbors4] of patch 0 max-pycor => 2
  count [neighbors4] of patch min-pxcor min-pycor => 2
  count [neighbors4] of patch max-pxcor min-pycor => 2
  count [neighbors4] of patch min-pxcor max-pycor => 2
  count [neighbors4] of patch max-pxcor max-pycor => 2
  O> __change-topology false false
  count [neighbors] of patch 0 0 => 2
  count [neighbors] of patch min-pxcor 0 => 1
  count [neighbors] of patch max-pxcor 0 => 1
  count [neighbors] of patch 0 min-pycor => 2
  count [neighbors] of patch 0 max-pycor => 2
  count [neighbors] of patch min-pxcor min-pycor => 1
  count [neighbors] of patch max-pxcor min-pycor => 1
  count [neighbors] of patch min-pxcor max-pycor => 1
  count [neighbors] of patch max-pxcor max-pycor => 1
  count [neighbors4] of patch 0 0 => 2
  count [neighbors4] of patch min-pxcor 0 => 1
  count [neighbors4] of patch max-pxcor 0 => 1
  count [neighbors4] of patch 0 min-pycor => 2
  count [neighbors4] of patch 0 max-pycor => 2
  count [neighbors4] of patch min-pxcor min-pycor => 1
  count [neighbors4] of patch max-pxcor min-pycor => 1
  count [neighbors4] of patch min-pxcor max-pycor => 1
  count [neighbors4] of patch max-pxcor max-pycor => 1
  O> __change-topology true false
  count [neighbors] of patch 0 0 => 2
  count [neighbors] of patch min-pxcor 0 => 2
  count [neighbors] of patch max-pxcor 0 => 2
  count [neighbors] of patch 0 min-pycor => 2
  count [neighbors] of patch 0 max-pycor => 2
  count [neighbors] of patch min-pxcor min-pycor => 2
  count [neighbors] of patch max-pxcor min-pycor => 2
  count [neighbors] of patch min-pxcor max-pycor => 2
  count [neighbors] of patch max-pxcor max-pycor => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors4] of patch min-pxcor 0 => 2
  count [neighbors4] of patch max-pxcor 0 => 2
  count [neighbors4] of patch 0 min-pycor => 2
  count [neighbors4] of patch 0 max-pycor => 2
  count [neighbors4] of patch min-pxcor min-pycor => 2
  count [neighbors4] of patch max-pxcor min-pycor => 2
  count [neighbors4] of patch min-pxcor max-pycor => 2
  count [neighbors4] of patch max-pxcor max-pycor => 2
  O> __change-topology false true
  count [neighbors] of patch 0 0 => 2
  count [neighbors] of patch min-pxcor 0 => 1
  count [neighbors] of patch max-pxcor 0 => 1
  count [neighbors] of patch 0 min-pycor => 2
  count [neighbors] of patch 0 max-pycor => 2
  count [neighbors] of patch min-pxcor min-pycor => 1
  count [neighbors] of patch max-pxcor min-pycor => 1
  count [neighbors] of patch min-pxcor max-pycor => 1
  count [neighbors] of patch max-pxcor max-pycor => 1
  count [neighbors4] of patch 0 0 => 2
  count [neighbors4] of patch min-pxcor 0 => 1
  count [neighbors4] of patch max-pxcor 0 => 1
  count [neighbors4] of patch 0 min-pycor => 2
  count [neighbors4] of patch 0 max-pycor => 2
  count [neighbors4] of patch min-pxcor min-pycor => 1
  count [neighbors4] of patch max-pxcor min-pycor => 1
  count [neighbors4] of patch min-pxcor max-pycor => 1
  count [neighbors4] of patch max-pxcor max-pycor => 1

NeighborsLots5
  O> resize-world 0 0 -5 5
  O> __change-topology true true
  count [neighbors] of patch 0 0 => 2
  count [neighbors] of patch min-pxcor 0 => 2
  count [neighbors] of patch max-pxcor 0 => 2
  count [neighbors] of patch 0 min-pycor => 2
  count [neighbors] of patch 0 max-pycor => 2
  count [neighbors] of patch min-pxcor min-pycor => 2
  count [neighbors] of patch max-pxcor min-pycor => 2
  count [neighbors] of patch min-pxcor max-pycor => 2
  count [neighbors] of patch max-pxcor max-pycor => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors4] of patch min-pxcor 0 => 2
  count [neighbors4] of patch max-pxcor 0 => 2
  count [neighbors4] of patch 0 min-pycor => 2
  count [neighbors4] of patch 0 max-pycor => 2
  count [neighbors4] of patch min-pxcor min-pycor => 2
  count [neighbors4] of patch max-pxcor min-pycor => 2
  count [neighbors4] of patch min-pxcor max-pycor => 2
  count [neighbors4] of patch max-pxcor max-pycor => 2
  O> __change-topology false false
  count [neighbors] of patch 0 0 => 2
  count [neighbors] of patch min-pxcor 0 => 2
  count [neighbors] of patch max-pxcor 0 => 2
  count [neighbors] of patch 0 min-pycor => 1
  count [neighbors] of patch 0 max-pycor => 1
  count [neighbors] of patch min-pxcor min-pycor => 1
  count [neighbors] of patch max-pxcor min-pycor => 1
  count [neighbors] of patch min-pxcor max-pycor => 1
  count [neighbors] of patch max-pxcor max-pycor => 1
  count [neighbors4] of patch 0 0 => 2
  count [neighbors4] of patch min-pxcor 0 => 2
  count [neighbors4] of patch max-pxcor 0 => 2
  count [neighbors4] of patch 0 min-pycor => 1
  count [neighbors4] of patch 0 max-pycor => 1
  count [neighbors4] of patch min-pxcor min-pycor => 1
  count [neighbors4] of patch max-pxcor min-pycor => 1
  count [neighbors4] of patch min-pxcor max-pycor => 1
  count [neighbors4] of patch max-pxcor max-pycor => 1
  O> __change-topology true false
  count [neighbors] of patch 0 0 => 2
  count [neighbors] of patch min-pxcor 0 => 2
  count [neighbors] of patch max-pxcor 0 => 2
  count [neighbors] of patch 0 min-pycor => 1
  count [neighbors] of patch 0 max-pycor => 1
  count [neighbors] of patch min-pxcor min-pycor => 1
  count [neighbors] of patch max-pxcor min-pycor => 1
  count [neighbors] of patch min-pxcor max-pycor => 1
  count [neighbors] of patch max-pxcor max-pycor => 1
  count [neighbors4] of patch 0 0 => 2
  count [neighbors4] of patch min-pxcor 0 => 2
  count [neighbors4] of patch max-pxcor 0 => 2
  count [neighbors4] of patch 0 min-pycor => 1
  count [neighbors4] of patch 0 max-pycor => 1
  count [neighbors4] of patch min-pxcor min-pycor => 1
  count [neighbors4] of patch max-pxcor min-pycor => 1
  count [neighbors4] of patch min-pxcor max-pycor => 1
  count [neighbors4] of patch max-pxcor max-pycor => 1
  O> __change-topology false true
  count [neighbors] of patch 0 0 => 2
  count [neighbors] of patch min-pxcor 0 => 2
  count [neighbors] of patch max-pxcor 0 => 2
  count [neighbors] of patch 0 min-pycor => 2
  count [neighbors] of patch 0 max-pycor => 2
  count [neighbors] of patch min-pxcor min-pycor => 2
  count [neighbors] of patch max-pxcor min-pycor => 2
  count [neighbors] of patch min-pxcor max-pycor => 2
  count [neighbors] of patch max-pxcor max-pycor => 2
  count [neighbors4] of patch 0 0 => 2
  count [neighbors4] of patch min-pxcor 0 => 2
  count [neighbors4] of patch max-pxcor 0 => 2
  count [neighbors4] of patch 0 min-pycor => 2
  count [neighbors4] of patch 0 max-pycor => 2
  count [neighbors4] of patch min-pxcor min-pycor => 2
  count [neighbors4] of patch max-pxcor min-pycor => 2
  count [neighbors4] of patch min-pxcor max-pycor => 2
  count [neighbors4] of patch max-pxcor max-pycor => 2

NeighborsWorldWidth2
  to-report counts report sentence [count neighbors] of patches [count neighbors4] of patches end
  to-report all-topologies let result [] foreach [true false] [ let wrapx ? foreach [true false] [ let wrapy ? __change-topology wrapx wrapy set result lput counts result ] ] report result end
  O> resize-world 0 1 0 1
  all-topologies => [[3 3 3 3 2 2 2 2] [3 3 3 3 2 2 2 2] [3 3 3 3 2 2 2 2] [3 3 3 3 2 2 2 2]]
