xgi-org / xgi

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

Return all known stats for a single node #205

Open leotrs opened 1 year ago

leotrs commented 1 year ago

Currently, we have a way of seeing all attributes:

H.nodes.attrs[0]
# -> {"name": "Leo", "color": "green"}

What I'd love to have is a way of seeing all stats too:

H.nodes[0]
# -> {"degree": 10, "clustering": 0.5, "name": "Leo", "color": "green"}

This is assuming that stats are cached, and they will soon be as long as we have frozen hypergraphs (#50) ;)

leotrs commented 1 year ago

Related to #188 .

leotrs commented 1 year ago

Related to #405