xgi-org / xgi

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

Rewrite the stats `tohist()` method #606

Open nwlandry opened 1 month ago

nwlandry commented 1 month ago

It would be nice if we made it easier to directly plot the output of tohist(), because now, it is quite complicated.

akskan160103 commented 17 hours ago

Could you help me figure out where the tohist function is? I couldn't find it in the codebase.

nwlandry commented 16 hours ago

Good call --- we haven't figured out to best document the stats interface (see #357), but here is the function. Thanks!

maximelucas commented 42 minutes ago

To add to to this, here's an example of how it's used:


import xgi
H = xgi.load_xgi_data("email-enron")
H.cleanup()

H.nodes.degree.ashist()

Which outputs the following pandas Dataframe:

image