You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was reading your blog post which mention the possibility of a decomposition for k-edges which could be applied to (IIUC) hypergraphs of with hyperedges of a fixed order k.
Have you considered this type, using the (hyper)edge-labelled data type and considering e as a Monoid as you suggest?
@jmatsushita Yes, I've been thinking about such representations to support hyperedges, however, I used lists in my experiments because with Set you essentially force the algebra to be commutative with respect to Connect, i.e. you won't be able to express both 1*2 and 2*1. Perhaps, this is fine for your application.
Another subtlety is that with Set you seem to lose the ability to create single vertices that have self-loops, e.g. 1*1. Strangely you can still create more complex graphs with self-loops such as 1*(1+2): here 1 has a self-loop.
So, Set seems a bit awkward. I'd probably use the following data type as a starting point:
Hi there,
I was reading your blog post which mention the possibility of a decomposition for k-edges which could be applied to (IIUC) hypergraphs of with hyperedges of a fixed order k.
Have you considered this type, using the (hyper)edge-labelled data type and considering
e
as aMonoid
as you suggest?The more basic type seems like it would also make sense:
Would you anticipate difficulties pursuing this further?
Cheers,
Jun
The text was updated successfully, but these errors were encountered: