xgi-org / xgi

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

wrong `ashist()` output #468

Closed maximelucas closed 10 months ago

maximelucas commented 10 months ago

Running

import xgi
H = xgi.sunflower(3, 1, 50)

we get a correct output from H.edges.size.aslist(), that is [50, 50, 50] (three edges of size 50), but

Screenshot 2023-09-01 at 17 02 11

I guesse it's because there's only one edge size?

nwlandry commented 10 months ago

Great catch, thanks! I think I can fix this by setting bins=min(np.unique(_vals), bins) or something like that.