xgi-org / xgi

CompleX Group Interactions (XGI) is a Python package for higher-order networks.
https://xgi.readthedocs.io
Other
178 stars 27 forks source link

Maybe measure convergence in the power-serie in `katz_centrality` #373

Open acombretrenouard opened 1 year ago

acombretrenouard commented 1 year ago

In katz_centrality, the output can be computed with arbitrary precision, depending on how far we compute the power series (parameter cutoff). If this is not too cumbersome, we could instead input a precision (ex : eps=1e-4, for espilon) so that the series stops when the increment goes below eps.

leotrs commented 1 year ago

Yep, agreed.