Skip to content

Instantly share code, notes, and snippets.

@mandubian
Created November 13, 2017 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandubian/9b51050f83fbbb32c36cf47ca49e3712 to your computer and use it in GitHub Desktop.
Save mandubian/9b51050f83fbbb32c36cf47ca49e3712 to your computer and use it in GitHub Desktop.
// You can run the plus function rewritten in Graph CCC
// and it will build a nice directed graph of your computation
val dGraph = Graph.runGraph(plus)(14, 28)
// now you can translate that directed graph into a nice format like graphviz
Graph.toGraphViz("plus")(dGraph)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment