Ashkin
Ashkin

Reputation: 31

Create two regions with different topological relations in NetLogo

I would like to create two regions that can have one of topological relation, for example two regions A and B: A covers B, or A contains B, or ... . How can I create these two regions? Any help that anybody can offer would be greatly appreciated!!

Upvotes: 2

Views: 177

Answers (1)

Seth Tisue
Seth Tisue

Reputation: 30453

Supposing I have one region:

let region1 n-of 20 patches

Then here's how I'd make a new region that's entirely contained within region1:

let region2 n-of 10 region1

Or a new region that's disjoint from region1:

let region3 n-of 10 patches with [not member? self region1]

Upvotes: 1

Related Questions