Leo Torres
Leo Torres
Thanks! We should seek what is the most general way of implementing this so it covers different cases.
We should think of implementing this after #82
Coming back to this months later, I haven't changed my mind: I don't think implementing this is necessary. But @maximelucas might disagree :)
I think this is best left until after the basic interface has stabilized a bit. For example #20
Agreed this method does not belong in the `EdgeView`. It belongs in `Hypergraph`. The main objective of `Hypergraph` is after all to modify the network's structure. What about `H.collapse_edges(weighted=weight_mode, index=index_mode,...
As per #177, the simplicial complex class will (might?) have a method that "collapses" things so it might be wise to choose a different name for this one. I agree...
As per #196, we should keep in mind what happens to the incidence matrix before/after compressing multiple edges.
* In the case when the user wants to keep all attributes inside a list: `"red"` becomes `["red"]` while two duplicate edges with `"red"` and `"blue"` become `["red", "blue"]`. *...
```python3 links = H_int.edges.filterby("size", 2).members() A = np.zeros([n, n]) for i, j in links: A[i, j] += 1 A[j, i] += 1 triangles = H_int.edges.filterby("size", 3).members() B = np.zeros([n, n,...
## Review checklist for @leotrs ### Conflict of interest - [x] I confirm that I have read the [JOSS conflict of interest (COI) policy](https://github.com/openjournals/joss/blob/master/COI.md) and that: I have no COIs...