This term adds one network statistic to the model for each value of k
,
corresponding to the number of k
-cycles (or, alternately, semicycles)
in the graph.
This term can be used with either directed or undirected networks.
# binary: cycle(k, semi=FALSE)
a vector of integers giving the cycle lengths to count.
Directed cycle lengths may range from 2
to N
(the network size); undirected
cycle lengths and semicycle lengths may range from 3
to N
; length 2 semicycles
are not currently supported.
an optional logical indicating whether semicycles (rather than directed cycles) should be counted; this is ignored in the undirected case.
2-cycles are equivalent to mutual dyads.
ergmTerm
for index of model terms currently visible to the package.
ergm:::.formatTermKeywords("ergmTerm", "cycle", "subsection")