xgi icon indicating copy to clipboard operation
xgi copied to clipboard

added empty_edges keyword

Open nwlandry opened this issue 1 year ago • 6 comments

A user reached out and asked if we could allow empty edges. I added the empty_edges as an optional keyword to opt-in to this behavior.

nwlandry avatar May 05 '23 20:05 nwlandry

Codecov Report

Patch coverage: 88.88% and no project coverage change.

Comparison is base (591d681) 90.43% compared to head (9edd480) 90.43%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #354   +/-   ##
=======================================
  Coverage   90.43%   90.43%           
=======================================
  Files          41       41           
  Lines        3012     3012           
=======================================
  Hits         2724     2724           
  Misses        288      288           
Impacted Files Coverage Δ
xgi/classes/hypergraph.py 86.03% <87.50%> (ø)
xgi/convert.py 95.61% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar May 05 '23 20:05 codecov[bot]

I believe at some point we allowed for empty edges and then decided not to support them. Is this the case? If so, does anyone remember why we decided not tu support them?

leotrs avatar May 05 '23 21:05 leotrs

Is this the case?

I don't remember honestly. Do we know what the use-case would be?

maximelucas avatar May 08 '23 07:05 maximelucas

@nwlandry :)

leotrs avatar Jun 19 '23 07:06 leotrs

I originally wanted to include them to represent physical rooms without people in them. One of my colleagues wanted to represent groups that xould have 0 members. Lastly, there are several existing inconsistencies in XGI mentioned in #403.

nwlandry avatar Jun 19 '23 10:06 nwlandry

Okay yeah that sounds like a legit use case. We could try to implement this and the wait and see what breaks.

One caveat is that we'd need a whole battery of tests (several dozens) to test for integration of different corners of the library with empty edges.

leotrs avatar Jun 19 '23 10:06 leotrs

This PR is stale and so I'm closing this. I will work on re-opening this in the future.

nwlandry avatar May 04 '24 12:05 nwlandry