xgi icon indicating copy to clipboard operation
xgi copied to clipboard

`members()`/`memberships()` do not have the same functionality as `nodestats`/`edgestats`

Open nwlandry opened this issue 1 year ago • 4 comments

For example, H.edges.members doesn't have an asdict() or aslist method.

nwlandry avatar May 30 '23 16:05 nwlandry

The problem is that H.edges.members returns a list. If we wanted to let the user choose the output type, e.g. H.edges.members().asdict(), then H.edges.members() would have to return an object of some custom class.

leotrs avatar May 31 '23 07:05 leotrs

I think this can be closed. Any objections?

nwlandry avatar Jul 18 '23 13:07 nwlandry

Why would this be closed? There was no discussion or resolution. Are we interpreting silence as wontfix?

leotrs avatar Jul 23 '23 15:07 leotrs

So, it seems like we could possibly use some methods from the stats interface, but as Leo says, that would mean that members would now be an object. Is this worth the effort and complexity? My two cents: if it's simply to cast to different data types, then no, but if we can incorporate other functionality, then maybe?

nwlandry avatar Sep 08 '24 15:09 nwlandry