g <- graph(c(1, 2, 2, 3, 3, 1))
g %>% as_tbl_graph() %>% activate(nodes) %>% mutate(k = centrality_katz())
#Error: Problem with `mutate()` input `k`.
#x invalid 'type' (complex) of argument
#i Input `k` is `centrality_katz()`.
Run `rlang::last_error()` to see where the error occurred.
This is a known issue with netrankr but is not noted in the docs for tidygraph currently.
Example:
This is caused by netrankr::walks_attenuated calling max(x) where x is a complex-valued set of eigenvalues: https://github.com/schochastics/netrankr/blob/master/R/indirect.relations.R#L177