Skip to content

Commit 35dc249

Browse files
committed
add documentation.yaml
1 parent 77ae435 commit 35dc249

File tree

2 files changed

+1262
-3
lines changed

2 files changed

+1262
-3
lines changed

USING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Now we might want to consider this whole thing as one big network. If that is th
1616

1717
We could also, however, be only interested in a subset of the network. Maybe we want to consider only friendship relations. Furthermore, maybe we want to consider only the friendships _between bankers_. After all, having a very high centrality in a network of banker friendships is very different from having a high centrality in a network of client friendships.
1818

19-
To specify such networks, we need to tell the extension _both_ which turtles _and_ which links we are interested in. All the turtles from the specified set of turtles will be included in the network, and only the links from the specified set of links that are between turtles of the specified set will be included. For example, if you ask for `bankers` and `friendships`, even the lonely bankers with no friends will be included, but friendship links between bankers and clients will **not** be included. The way to tell the extension about this is with the [`nw:set-context`](#nwset-context) primitive, which you must call _prior_ to doing any operations on a network.
19+
To specify such networks, we need to tell the extension _both_ which turtles _and_ which links we are interested in. All the turtles from the specified set of turtles will be included in the network, and only the links from the specified set of links that are between turtles of the specified set will be included. For example, if you ask for `bankers` and `friendships`, even the lonely bankers with no friends will be included, but friendship links between bankers and clients will **not** be included. The way to tell the extension about this is with the [`nw:set-context`](/nw/set-context) primitive, which you must call _prior_ to doing any operations on a network.
2020

2121
Some examples:
2222

@@ -32,14 +32,14 @@ It must be noted that NetLogo has two types of agentsets that behave slightly di
3232

3333
The "special" agentsets in NetLogo are `turtles`, `links` and the different "breed" agentsets. What is special about them is that they can grow: if you create a new turtle, it will be added to the `turtles` agentset. If you have a `bankers` breed and you create a new banker, it will be added to the `bankers` agentset and to the `turtles` agentset. Same goes for links. Other agentsets, such as those created with the `with` primitive (e.g., `turtles with [ color = red ]`) or the `turtle-set` and `link-set` primitives) are never added to. The content of normal agentsets will only change if the agents that they contain die.
3434

35-
To show how different types of agentsets interact with [`nw:set-context`](#nwset-context), let's create a very simple network:
35+
To show how different types of agentsets interact with [`nw:set-context`](/nw/set-context), let's create a very simple network:
3636

3737
```NetLogo
3838
clear-all
3939
create-turtles 3 [ create-links-with other turtles ]
4040
```
4141

42-
Let's set the context to `turtles` and `links` (which is the default anyway) and use [`nw:get-context`](#nwget-context) to see what we have:
42+
Let's set the context to `turtles` and `links` (which is the default anyway) and use [`nw:get-context`](/nw/get-context) to see what we have:
4343

4444
```NetLogo
4545
nw:set-context turtles links

0 commit comments

Comments
 (0)