Created
May 16, 2016 00:45
-
-
Save metric-space/cced7d1817729066710df82f0b75e9e7 to your computer and use it in GitHub Desktop.
SBCL version of code in "Land of Lisp" (Conrad Barski) page (Graph code, page 120)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun dot->png (fname thunk) | |
(with-open-file (*standard-output* | |
fname | |
:direction :output | |
:if-exists :supersede) | |
(funcall thunk)) | |
(sb-ext:run-program "/usr/local/bin/dot" (list "-T" "png" "-O " fname) :error t) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment