examples/sample36.rb in ruby-graphviz-1.0.7 vs examples/sample36.rb in ruby-graphviz-1.0.8
- old
+ new
@@ -4,15 +4,15 @@
require "graphviz"
GraphViz.graph( :G ) { |g|
last_line = []
node_number = 0
-
+
100.times do |j|
# New_Line
new_line = []
c = g.subgraph( :rank => "same" )
-
+
100.times do |i|
current_node = c.add_nodes( "N#{node_number}", :shape => "point", :label => "" )
last_node = new_line[-1]
unless last_node.nil?
c.add_edges( last_node, current_node )