Want to take part in these discussions? Sign in if you have an account, or apply for one below
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
I mentioned here that I had made a stub for bipartite graph, and alluded to the fact that there was a small mistake in the original definition which Thomas Holder corrected. For the record, the original definition I wrote was
A bipartite graph is a graph G equipped with a 2-coloring of its vertices, i.e., equipped with a graph homomorphism f:G→K2.
and then we had this discussion on the page:
Thomas: This is really what you want ? Normally, being bipartite is property of a graph not a structure. As you define it it amounts to being an object in Grph/K2. This might be an (étendue) topos, presumably equivalent to the slice over K2 of the topos of involutory directed graphs, cf. a related construction in Lawvere 1986 .
Noam: That’s a good point. I am changing “equipped with a 2-coloring” to “can be 2-colored”, which suggests the property reading (but presumably doesn’t entirely rule out the possibility of a structure reading). Thanks for the reference to Lawvere!
I recently found a question on mathoverflow about “the category of hypergraphs as a topos”, and got to thinking about whether the original definition that I had sloppily suggested for bipartite graphs actually is a good way of defining hypergraphs. Specifically, as explained at hypergraph (and on Wikipedia), any hypergraph can be canonically transformed into a 2-colored graph and vice versa (so long as we admit hypergraphs with empty hyperedges, or alternatively we assume that graphs have no isolated white vertices). But that suggests defining the category of hypergraphs precisely as the slice category Grph/K2 that Thomas mentions above. I believe this is equivalent to the category of hypergraphs Oliver Kullman sketches in that mathoverflow question: a morphism between 2-colored graphs sends black vertices (= hypervertices) to black vertices and white vertices (= hyperedges) to white vertices, while preserving the incidence relation between them.
Do people agree?
…but the terminal object in this slice category is just a 2-colored K2, i.e., the hypergraph consisting of one hyperedge incident to one hypervertex, which is different from what Kullmann suggested in the comments. I’m not exactly sure what he meant by “the usual commutativity condition”. If (V,E,h:E→P(V)) and (V′,E′,h′:E′→P(V′)) are hypergraphs in that formulation, then I think the right notion of homomorphism is a pair (a:V→V′,b:E→E′) together with a 2-cell P(a)∘h⇒h′∘b rather than an equation. That translates the condition that f:H→H′ is a hypergraph homomorphism if v∈e implies f(v)∈f(e) for all v,e∈H.
If you take as vertice set of the terminal object V={*} and as hyper edge label set E={∅,{*}} then Kullmann’s assigment function is h=id2* i.e. idK2 = the terminal object of Grph/K2, no !?
Concerning the MO discussion, I have a hunch that the category Kullmann had in mind isn’t really a topos. At some point the question comes up whether a corollary in what I think must be the Carboni-Johnstone paper on Artin glueing is erroneous. Now in that paper some of the claims were indeed wrong but I don’t think the characterization in that corollary was among those because the elephant still believes in that result. Thus your remark on the morphisms is probably on the right track.
To elaborate on the last part. The relevant category seems to be the Artin gluing of F:Set→Set with F the finite power set functor i.e the suggested hypergraph category is Set↓F. The proposed terminal object is (1𝒜,F(1𝒜),id:F(1𝒜)→F(1𝒜)) with 𝒜=Set hence ({*},{∅,{*}},id{∅,{*}}). This gives a topos iff F preserves pullbacks (elephant I, pp.82,177).
Seen as a 2-colored graph, the terminal object idK2 of Grph/K2 is just the K2 graph with one vertex colored black and one colored white. So viewing it as a hypergraph, it has only one hyperedge, rather than two. As a 2-colored graph, the hypergraph that Kullmann describes is the union of this one together with an isolated white vertex.
Just to clarify what I wrote above, by asking for a 2-cell P(a)∘h⇒h′∘b I meant that for every hyperedge e∈E, there is an inclusion P(a)(h(e))⊆h′(b(e)) (i.e., for all e∈E and v∈h(e), we have a(v)∈h′(b(e))). I believe with that definition the category is equivalent to Grph/K2, but I have to check that.
Asking for an equality and in particular for the reverse inclusion P(a)∘h⊇h′∘b would demand that for every hyperedge e′=b(e) which is in the image of the homomorphism, all of the hypervertices v′ which are incident to e′ are also in the image of the homomorphism ∃v.v′=a(v). That condition doesn’t make sense to me as part of the definition of a hypergraph homomorphism, but I will try to find an actual definition somewhere in the literature.
Apparently, I was seduced by the superficial ressemblance between the respective objects. I have no good intuition concerning the hyper-edges or the coloring. But would you agree with the rest, namely that F is the right functor but the resulting category Set↓F is only a quasi-topos, in any case not a topos !? That seems to me the conclusion of the variuos comments on MO.
I think that the morphisms in Set↓F are nevertheless bound to yield some reasonable notion of map.
[add-corr.: as Todd points out below (#7) there is a result in Johnstone-Lack-Sobocinski that says that ℬ↓F is a quasitopos for F:𝒜→ℬ between two quasitoposes iff F preserves pullbacks. Hence Set↓F is not even a quasitopos (cf. #6).]
I wish I were following this discussion better, because it sounds interesting. But regarding some points: in the alleged Artin-gluing construction, I am strongly doubtful that the finite-power-set functor preserves pullbacks. A short back-of-envelope calculation indicates that the fiber product of the map ∃!:Pfin(X)→Pfin1 with itself (where !:X→1 is the unique map, and the covariant finite power set functor Pfin on morphisms f:A→B is defined by direct image Pfin(f)=∃f) is of size (2n−1)2+1 if X is of finite size n. Which is a far cry from the size of Pfin(X2), which is 2n2.
I believe what is true though is that Pfin is a taut functor: preserves inverse images of subobjects. The fact that the full power set functor is taut plays an important role in Paul Taylor’s theory of recursion and well-foundedness.
Furthermore, consonant with what Mike said in that MO discussion, my instinct is that the category of hypergraphs (as defined in that discussion) is more likely to be a quasitopos. Most categories of graphs that I am familiar with, e.g., sets equipped with a symmetric relation, are in fact quasitoposes. (A somewhat idle musing here is that Artin gluing along a taut functor between toposes is a quasitopos: perhaps that is already known? That would be neat.)
The last comment by Noam puts me in mind of the distinction between morphisms of Pfin-coalgebras (which are like simulations) and merely colax morphisms which merely preserve the relation ≺ defined by a coalgebra structure, as briefly discussed here. But I should check up on that – just throwing it out there for now.
Edited: Sorry, Thomas; I hadn’t noticed that you had meanwhile commented. I was in the middle of chauffering my daughter to her dance classes.
It seems my idle musing was quite wrong, as shown by theorem 13 here.
ad #6: you probably haven’t missed much and still answered most of my questions anyway. Why so shy with your back-of-the-envelope-calculation ? Doesn’t the same example work for full P as well?
I have added the Johnstone-Lack-Sobocinski paper at Artin gluing.
There’s a definition of hypergraph homomorphism in Relations and Graphs by Schmidt & Ströhlein, and it’s essentially the one I had in mind. They define a hypergraph as a heterogenous relation H⊆E×V (describing “incidence” between hyperedges and hypervertices), and a homomorphism (H⊆E×V)→(H′⊆E′×V′) as a pair of functions fe:E→E′, fv:V→V′ which preserve the incidence relation, i.e., eHv implies fe(e)H′fv(v). They define this as a generalization of the case of homogenous relations, which they call “1-graphs” and I believe correspond to “directed loop graphs” in the terminology of {graph} (no multiple edges, but loops are okay). Re: Thomas #5 and Todd #6, the homogenous case would indeed correspond to a colax morphism of coalgebras for the powerset monad. How would you translate that to the heterogenous case? I think one way to describe it is as the category of elements of the functor (×op;P):Setop×Setop→Cat, where P:Setop→Cat sends a set to its partial order of subsets. (By the way, I don’t see a good motivation for restricting hyperedges to be incident to a finite number of hypervertices, as suggested in the mathoverflow question; if you do that then you should also restrict hypervertices to be incident to a finite number of hyperedges, to preserve the perfect edge/vertex duality of hypergraphs.)
Getting back to my claim that this category (call it ℋ) is equivalent to Grph/K2, I see one issue is what exactly we mean by “Grph”. I was thinking of it as the category of “pseudographs” in the sense of {graph}, but now I realize that for hypergraphs in ℋ, the corresponding 2-colored graphs are all simple graphs, i.e., any pair of a white vertex and a black vertex can be incident at most once. (Note that 2-coloring a pseudograph forces it to be loop-free, but it could still contain multiple edges.) So, now I’ll claim that ℋ≡SimpGrph/K2, but I’m also interested in how to generalize this to the case of 2-colored pseudographs. I guess we should replace relations by spans?
So to flesh that out, hypergraphs allowing “multiple incidences” could be modelled by the functor category Setℬ, where ℬ=X←R→Y is the walking span. Likewise, pseudographs can be modelled by the functor category Set𝒫, where 𝒫 is the walking “quiver equipped with an involution exchanging source and target”, i.e., 𝒫 has two objects X1,X0 and two parallel arrows s,t:X1→X0, together with an arrow i:X1→X1 such that i2=id and s∘i=t. The K2 graph lives in Set𝒫, and can be defined by
X1=X0=2,s=id,t=¬,i=¬Then my conjecture is that Setℬ is equivalent to the slice category Set𝒫/K2.
Regarding Set𝒫/K2: that is the category I had in mind in the passage that you quote in (#1).
I imagine that SimpGrph is rather badly behaved as category e.g. it seems to lack a terminal object !? So slicing is already an improvement - on the other hand it seems to me that you have to deduce all categorical properties of SimpGrph/K2 by foot now. So isn’t this just a high brow way to restate the fact that 2-colored graphs correspond to hypergraphs !?
My point in (#5) was that Set↓F should be canonically related to Grph/K2 assuming this to be HypGrph, not that it was HypGrph. A point that I still consider worth thinking about if one takes F the full covariant powerset functor provided you like the objects in Set↓F as hypergraphs.
By the way, I think that ’directed loop graphs’ are just the ¬¬-separated quivers described here.
A last suggestion, it might be well worthwhile looking if there already exists in the literature a species of hypergraphs.
I imagine that SimpGrph is rather badly behaved as category e.g. it seems to lack a terminal object
That’s right – luckily, it looks like we can actually get by with the larger category of “loop graphs”, i.e., symmetric relations, which I believe is cartesian closed. The terminal object in LoopGrph is the equality relation on 1, corresponding to the one vertex loop. Moreover, K2 lives inside (as the disequality relation on 2), and taking the slice LoopGrph/K2 still recovers the category of “simple hypergraphs” = heterogenous relations, owing to the fact that 2-coloring a graph rules out the possibility of loops.
So isn’t this just a high brow way to restate the fact that 2-colored graphs correspond to hypergraphs !?
With this starting point I think that the equivalence has more punch: slicing into disequality takes you from symmetric relations to heterogenous relations.
Your remark on slicing into inequality gives an interesting point of view!
I see at category of simple graphs that Loopgrph happens to be a quasitopos (cf. Todd in #6) and hence so is Loopgrph/K2. This suggests that it corresponds to Sep¬¬(Set𝒫/K2) assuming this to be a way to ’separate’ graphs.
It would be now interesting to see how Lawvere’s construction fits in. He takes as “B-partite graphs” those E→B in SetΔop1/B such the pullback (in SetΔop1) along ♭E→B yields ♭(E→B). He claims that this yields the quivers as petit topos from the slice over the loop. But to what would his topos of K2-partite graphs correspond to ? Set𝒫/K2 as well !? It is kind of interesting to see how natural concepts of graphs are apparently related to his petit-gros story!
So before I saw your comments I went ahead and filled out the article some more. Coming back to #1, I believe the conclusion of this discussion is that hypergraphs should not be defined as 2-colored graphs, but rather that the classical equivalence can be expressed as an equivalence of categories. A very natural way of defining a hypergraph is simply as a span, and then hypergraphs can be organized as a presheaf category Set•←*→∘. I see that this is exactly what James Cranch suggested in an answer to the original MO question, but then got tripped up by the finiteness condition. As I said earlier, I don’t understand the motivation for this condition, and in some situations I am interested in it is false.
I don’t know if anyone has worked out some hypergraph theory using spans, but I think it could be interesting. As I mentioned, the book by Schmidt & Ströhlein takes a relational approach.
I see at category of simple graphs that Loopgrph happens to be a quasitopos (cf. Todd in #6) and hence so is Loopgrph/K2. This suggests that it corresponds to Sep¬¬(Set𝒫/K2) assuming this to be a way to ’separate’ graphs.
I believe that’s right, and that the equivalent category SimpHGrp corresponds to Sep¬¬(Set•←*→∘).
I will have to look back to the article by Lawvere to understand your second comment.
Sorry, that the last part sounded so cryptic, unfortunately the passage in the Lawvere paper will be very dense, too. As you were using more exotic type of graphs, it occurred to me that after all it might be possible to squeeze hypergraphs out of reflexive graphs as well. Such a result would be primarily interesting for Lawvere’s enterprise - and the resulting construction presumably much more involved than your construction.
Concerning the finiteness condition: it seems to be rather common in combinatorics that people demand uniform (finite) cardinalities of the hyper-edge sets e.g. Bollobás in his combinatorics book defines only r-uniform hypergraphs. So this particular form might be caused by some intended application.
For finger practice, I have computed Set𝒞op/K2 via the formula Set𝒞op/K2≅Set(∫𝒞K2)op. Here ∫𝒞K2 is the category of elements and I use as blueprint for quivers with an involution the category 𝒞 with underlying diagram . For , this yields the following underlying diagram with the obvious compositions . This is equivalent to the walking cospan . Hence as you said.
[addendum: incidentally, the argument works for the generic arc in , the diagram category underlying quivers, as well with the same result: hence . ]
Nice proof!
I’ve added a remark to hypergraph that is spatial and scattered. I hope I got the subtoposes right though!
I’ve added an Artin gluing analysis of with fringe functor and at hypergraph yielding an adjoint string: . It would be nice if somebody could take a look at the last adjunction since it is done mostly by hand without checking all the details.
Looks reasonable to me.
Thanks ! I probably got a bit mystified by the Artin gluing. If one thinks of the hypergraphs simply as a presheaf topos this is a rather straightforward string.
1 to 21 of 21