Computes the girth of a network - the length of the shortest cycle. Returns Inf for acyclic graphs (trees, DAGs).
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.
