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
This can be fixed with the following method Catlab.to_graphviz(s::TypedSchema) = to_graphviz(Presentation(s.schema)). It would be nice to also extend Presentation to accept a typed schema so that you could draw it with concrete types Presentation(s::TypedSchema). But this 1 liner is a quick fix that would get you 90% of the way there.
The text was updated successfully, but these errors were encountered:
If you try to draw a TypedSchema with
to_graphviz
, you get a MethodError.This can be fixed with the following method
Catlab.to_graphviz(s::TypedSchema) = to_graphviz(Presentation(s.schema))
. It would be nice to also extend Presentation to accept a typed schema so that you could draw it with concrete typesPresentation(s::TypedSchema)
. But this 1 liner is a quick fix that would get you 90% of the way there.The text was updated successfully, but these errors were encountered: