Skip to content

Commit

Permalink
graphviz check
Browse files Browse the repository at this point in the history
  • Loading branch information
soumith committed Nov 12, 2015
1 parent 599e4ad commit 7fb197e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions graphviz.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ function graph.graphvizLayout(g, algorithm)
end

function graph.graphvizFile(g, algorithm, fname)
if not graphvizOk or not cgraphOk then
error("graphviz library could not be loaded.")
end
algorithm = algorithm or 'dot'
local _,_,rendertype = fname:reverse():find('(%a+)%.%w+')
rendertype = rendertype:reverse()
Expand Down

0 comments on commit 7fb197e

Please sign in to comment.