-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
None of the files is valid DOT #4
Comments
Well. This will be tricky. |
Closed
I am sorry. I am so, so sorry – but I may have accidentally built a game. #!/usr/bin/env ruby
layout = ARGV[0].to_s || 'neato'
max = ARGV[1].to_i || 10
range = (0..max)
def element(num, colour)
"\"#{num}\" [URL=\"#{num}.svg\"; style=filled; fillcolor=\"#{colour}\"]"
end
range.each do |n|
links = range.map do |num|
colour = num < n ? "#FF0000" : "#00FF00"
element(num, colour)
end.join("\n")
edges = (0..n).to_a.join('->')
graph = "digraph { layout=#{layout} #{links} #{edges}->0}"
IO.popen("dot -T svg -o #{n}.svg", "w") { |io| io.write(graph) }
end |
Same goes for Microsoft Word Templates ... I tried Office 2013 for Windows, Office 2011 for Mac and the Office 15 for Mac Preview ... Says Template is invalid |
@kgz Feel free to open a new issue & give a valid prototype for this madness:
|
@bascht I will look into it :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With graphviz installed, run:
See lots of errors.
Disappointed, expected a lot of nice pictures to look at.
The text was updated successfully, but these errors were encountered: