is_directed¶
Syntax¶
Parameters¶
<n>0for undirected,1for 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: