Computes the girth of a network, the length of its shortest cycle. Edge direction, self-loops and repeated undirected edges are ignored. A pair of reciprocal directed edges counts as a cycle of length 2, so a directed network with any mutual tie has girth 2. An undirected forest has girth Inf.
Arguments
- x
Network input: matrix, igraph, network, cograph_network, or tna object
- ...
Passed to
to_igraph, whose only other argument isdirected; anything else raises an "unused argument" error.
