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
There are some places in the code (for instance in the nauty integration, but I bet not just there) where we copy or even deepcopy a whole acset just to get an acset of the same shape that we'll then overwrite. It might be nice to write a method of Base.similar that copies an acset's shape (i.e. attrtypes and cardinalities of homs) but leaves everything uninitialized for this kind of situation. I don't know enough about columns to know whether this would be trivial or annoying.
The text was updated successfully, but these errors were encountered:
Good idea. It should be straightforward to implement this feature without reaching into the internals. Just create an empty acset of the same type (I think/hope Base.empty is already implemented for acsets) and call add_parts! without setting any subparts.
There are some places in the code (for instance in the nauty integration, but I bet not just there) where we copy or even
deepcopy
a whole acset just to get an acset of the same shape that we'll then overwrite. It might be nice to write a method ofBase.similar
that copies an acset's shape (i.e. attrtypes and cardinalities of homs) but leaves everything uninitialized for this kind of situation. I don't know enough about columns to know whether this would be trivial or annoying.The text was updated successfully, but these errors were encountered: