Skip to content

is_directed

Syntax

network <network-name> {
    is_directed = <n>
}

Parameters

<n>
0 for undirected, 1 for directed (the default).

Description

Network property that indicates whether the network is directed or undirected.

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 is the same as creating an edge from j to i.

Networks are directed by default. To declare a network to be undirected, set is_directed to 0.

Examples

The following defines Partner to be an undirected network:

network Partner {
    is_directed = 0
}

See Also