You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.
In the talk ((Co)algebraic analysis of social systems: from graphs to hypergraphs) https://www.youtube.com/watch?v=nnBg4haKyF0, Nina Otter mentioned about representing a directed graph as a coalgebra of the covariant power set endofunctor given by , where is the out neighbourhood function. However, I do not see a way to generalise this definition to multigraphs unless (we suitably talk about multisets). Are there any exisiting coalgebra formalisms for multigraphs? Or, am I misunderstanding something fundamentally?
There are! Ordinary directed multigraphs, i.e. parallel pairs form a presheaf category, and all presheaf categories are comonadic over sets, with the forgetful functor given in this case by the disjoint union of all the elements of the presheaf; the analogous formula works in general. But you mentioned multisets, so maybe this isn't quite the kind of multigraph you mean? Most possibilities are comonadic, if you'd like to pin one down.
Thanks!! Yes, I meant the ordinary directed multigraph only.
I wanted to see explicitly, whether it can be seen as function , for an endofunctor and a set .
For a directed graph(not a multigraph) , Nina considered as the covariant power set endofunctor , and the is the out-neighbourhood function. The function completely determine .
Now, we are talking about the covariant presheaf , where is the category freely generated on ( parallel pairs). Are you saying that for this covariant presheaf , we have , and a function [Need to define ]
I am new to the formalism of graphs as coalgebras. So, I may sound naive. Sorry for that!
No, is the left adjoint of the comonadic adjunction. The right adjoint sends a set to the chaotic graph which has edges between each labeled by each Thus the comonad is carried by the composite endofunctor, A coalgebra structure gives a decomposition of into disjoint pieces that’ll correspond to vertices and edges, and the coalgebra axioms make sure every vertex is mapped to itself and every edge is mapped to itself as an edge between two vertices, producing a well defined graph.
So the powerset functor doesn’t appear here at all; you can’t describe a directed multigraph in terms of a vertex’s mere set of out-neighbors, nor does an edge have a mere set of adjacent vertices, so it has no role to play.
This is a special case of Ahman-Uustalu’s theorem that polynomial comonads are the same as small categories, which you can find explained in much more detail in David and Nelson Niu’s book on Poly, if you’re curious.
Thank you so much!
Another approach would be to use the multiset (or bag) functor , acting like , but every element can be contained an arbitrary number of times in each subset, so essentially consists of functions of type . This is maybe a bit closer in spirit to what happens in the presentation, since this style of coalgebra does usually not involve comonads.
Though this does give you a different notion of graph homomorphism compared to presheaf graphs.
Thanks!! Yes, I agree. I think we may also think of as the free commutative monoid monad i.e. , where is the free commutative monoid functor () and is the forgetful functor, that takes a commutative monoid to its underlying set. Then, any graph can be described as the coalgebra , where the function takes a vertex to the formal linear combination , where is the number of edges from to , is the number of edges from to , and so on.
This is true-ish, but the categories are far from equivalent, since you can’t permute the edges between two vertices in the multiset picture. Instead a map just becomes a function on vertices which numerically preserves arities everywhere. This kind of graph is sometimes used, although the main near-example I’m aware of is in Petri nets, which are a touch more complicated.
Yep, and this already happens in the original example of -coalgebras. I would expect a graph homomorphism to preserve edges, but coalgebra homomorphisms preserve and reflect them.
Thanks. I also felt the presentation is "closer to Petri nets" , but I think for a Petri net over the set of entities , we need a function denoting its inputs and outputs. I am not able to guess at the moment how to see in the form of a colalgebra for some endofunctor , so that coalgebra morphisms become the morphisms of Petri nets.