Skip to content

add_graph fails when passed a GraphViz object #48

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

2 participants

@nerab
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 glejeune added a commit that referenced this issue Jul 2, 2012
@glejeune Issue #48
add_graph fails when passed a GraphViz object
324b44f
@glejeune glejeune added a commit that referenced this issue Jul 2, 2012
@glejeune Test Issue #48 b7a73f0
@glejeune
Owner
glejeune commented Jul 2, 2012

Corrected in 1.0.7

@glejeune glejeune closed this Jul 2, 2012
@nerab
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
Something went wrong with that request. Please try again.