This PR also updates graph->svg and graph->bitmap functions to delete the .png and .dot files by default. All functions are updated in the developer docs.
Breaking features
This PR pushes a breaking change to the function graph->bitmap. Originally a filename was required when calling this function (i.e)
However now the filename and directory are optional keyword args since the .dot and .png files are deleted by default. If a filename is not specified then the default name __tmp__ is used instead. If the directory is not specified then the systems tmp directory is used.
;; generate and cleanup files in the systems tmp directory using the default name
(graph->bitmap my-graph)
;; generate and cleanup files in using specified directory and filename
(graph->bitmap my-graph #:directory (current-directory) #:filename "test")
Additionally, if you want to save the generated files then you need to set the keyword arg #:clean #f
;; test.dot and test.png are not deleted
(graph->bitmap my-graph #:filename "test" #:clean #f)
About
This PR exports two new functions:
create-formatters
graph->png
This PR also updates
graph->svg
andgraph->bitmap
functions to delete the.png
and.dot
files by default. All functions are updated in the developer docs.Breaking features
This PR pushes a breaking change to the function
graph->bitmap
. Originally a filename was required when calling this function (i.e)However now the filename and directory are optional keyword args since the
.dot
and.png
files are deleted by default. If a filename is not specified then the default name__tmp__
is used instead. If the directory is not specified then the systems tmp directory is used.Additionally, if you want to save the generated files then you need to set the keyword arg
#:clean #f