nw:set-context
nw:set-context turtleset linkset
Specifies the set of turtles and the set of links that the extension will consider to be the current graph. All the turtles from turtleset and all the links from linkset that connect two turtles from turtleset will be included.
This context is used by all other primitives (unless specified otherwise) until a new context is specified. (At the moment, only the generator primitives and the file input primitives are exceptions to this rule.)
See the usage section for a much more detailed explanation of nw:set-context
.
Take me to the full Networks Extension Dictionary