Catlab.jl icon indicating copy to clipboard operation
Catlab.jl copied to clipboard

ACSet Homomorphism Serialization

Open jpfairbanks opened this issue 3 years ago • 2 comments

We need to extend the write_json_acset function to write CSet homomorphisms. @kris-brown, have you done something similar for any of your projects?

jpfairbanks avatar Sep 16 '22 17:09 jpfairbanks

I have not. No special insights - I’d just do “dom” “codom” and “components” keys. If we wanted to do diagram to json then this would be a special case for walking arrow shape.

kris-brown avatar Sep 16 '22 21:09 kris-brown

Yeah, the diagram of ACSet serialization would make sense. I guess we would store the FreeDiagram ACSet to store the shape of the diagram and then each of the objects in the diagram in a list and then each of the arrows as just a named tuple of the underlying components. We should probably do that rather than a special case for a single arrow.

Is there anything to do about redundancy? It seems like for many cases the Dom, Codom, components encoding will be wasteful.

jpfairbanks avatar Sep 17 '22 00:09 jpfairbanks