xgi-org / xgi

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

Return all known stats for a single node #205

Closed leotrs closed 2 weeks ago

leotrs commented 2 years 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 2 years ago

Related to #188 .

leotrs commented 1 year ago

Related to #405

nwlandry commented 2 weeks ago

As per the team meeting today, this is closed due to its low priority.