xgi
xgi copied to clipboard
`members()`/`memberships()` do not have the same functionality as `nodestats`/`edgestats`
For example, H.edges.members
doesn't have an asdict()
or aslist
method.
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.
I think this can be closed. Any objections?
Why would this be closed? There was no discussion or resolution. Are we interpreting silence as wontfix?
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?