xgi icon indicating copy to clipboard operation
xgi copied to clipboard

stat name as argument to compute stat?

Open maximelucas opened this issue 1 year ago • 0 comments

It could be useful to compute a stat by using its name as a string argument, like H.nodes.stat("degree"). I think we cannot do that right now (@leotrs ?). This would allow the user to define a list of stats they want to compute stats = ["degree", "centrality", ...] and compute them by iterating over the values.

maximelucas avatar Oct 26 '23 12:10 maximelucas