Okay, I have figured this out and here is the solution in case anybody
else wants to do something like this:
1. create a very simple dot src block:
#+begin_src org
,#+name: generate-graph
,#+begin_src dot :var graph="digraph {}" :file graph.pdf
$graph
,#+end_src
#+end_
I've had a suggestion to use ":wrap src dot" for my elisp code, to avoid
using internal API calls. This is a good suggestion but I cannot figure
out how to actually accomplish what I want.
Basically, I want to #+call: a src block which takes my tables as
arguments, uses my elisp code to generate