Skip to content
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

add_graph fails when passed a GraphViz object #48

Closed
nerab opened this issue Jul 1, 2012 · 2 comments
Closed

add_graph fails when passed a GraphViz object #48

nerab opened this issue Jul 1, 2012 · 2 comments
Labels

Comments

@nerab
Copy link

nerab commented Jul 1, 2012

require "graphviz"

# ok
master = GraphViz::new(:G)
cl1 = master.add_graph('cluster_cl1')
puts master.inspect
# digraph G {
# subgraph cluster_cl1 {
# }
# }

# add_graph fails when passed a GraphViz object
master = GraphViz::new(:G)
cl1 = GraphViz::new('cluster_cl1')
master.add_graph cl1
puts master.inspect
# digraph G {
# digraph cluster_cl1 {
# }
# }

I believe that the output of the two parts should be equivalent, i.e. cluster_cl1 should be subgraph instead of digraph.

glejeune added a commit that referenced this issue Jul 2, 2012
add_graph fails when passed a GraphViz object
glejeune added a commit that referenced this issue Jul 2, 2012
@glejeune
Copy link
Owner

glejeune commented Jul 2, 2012

Corrected in 1.0.7

@glejeune glejeune closed this as completed Jul 2, 2012
@nerab
Copy link
Author

nerab commented Jul 2, 2012

Excellent work, thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants