Simple PR which makes it easier to visualize FinFunction using Graphviz, based on the earlier PR #655. I added some documentation to graphics/graphviz_graphs.jl regarding use of it, which you might feel should go somewhere else, but I didn't know anywhere more suitable.
The unit tests are too minimal, but I had trouble finding out how to get at the statements within Subgraph objects. @epatters if you have any suggestions as to how to go about this, I'd be very happy to include more substantive tests!
Simple PR which makes it easier to visualize
FinFunction
using Graphviz, based on the earlier PR #655. I added some documentation to graphics/graphviz_graphs.jl regarding use of it, which you might feel should go somewhere else, but I didn't know anywhere more suitable.The unit tests are too minimal, but I had trouble finding out how to get at the statements withinSubgraph
objects. @epatters if you have any suggestions as to how to go about this, I'd be very happy to include more substantive tests![EDIT]: non-trivial tests implemented https://github.com/AlgebraicJulia/Catlab.jl/pull/725/commits/d19361127155e9af7bdfaa950df7447ec2e8b2ae