is_directed
Network property that indicates whether the network is directed or undirected
Synopsis
network <network-name> {
is_directed = <n>
}
Description
If a network is directed, then adding an edge from agent i
to
agent j
does not result in an edge back from j
to i
.
If a network is undirected, then adding an edge from agent i
to
agent j
also creates an edge from j
to i
.
Networks are directed by default. To declare a network to be
undirected, set is_directed
to 0
.
Parameters
- <n> :
0
for undirected,1
for directed (the default).
Examples
The following defines Partner
to be an undirected network:
network Partner {
is_directed = 0
}