bin/graph in graph-2.4.1 vs bin/graph in graph-2.5.0

- old
+ new

@@ -19,8 +19,11 @@ name = "#{type.capitalize}Analyzer" klass = Object.const_get name analyzer = klass.new graph = analyzer.run -graph.save name, $d ? nil : "png" +huge = graph.nodes.size + graph.edges.size > 500 +ext = $d ? nil : huge ? "pdf" : "png" -system "open #{name}.#{$d ? "dot" : "png"}" if $o +graph.save name, ext + +system "open #{name}.#{ext || "dot"}" if $o