Learn R Programming

ergm (version 4.7.1)

cycle-ergmTerm: k-Cycle Census

Description

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.

Usage

# binary: cycle(k, semi=FALSE)

Arguments

k

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.

semi

an optional logical indicating whether semicycles (rather than directed cycles) should be counted; this is ignored in the undirected case.

directed

2-cycles are equivalent to mutual dyads.

See Also

ergmTerm for index of model terms currently visible to the package.

ergm:::.formatTermKeywords("ergmTerm", "cycle", "subsection")