Fixed typo in graph.rb
authorNeil Smith <neil.github@njae.me.uk>
Fri, 10 Feb 2012 20:10:27 +0000 (20:10 +0000)
committerNeil Smith <neil.github@njae.me.uk>
Fri, 10 Feb 2012 20:10:27 +0000 (20:10 +0000)
lib/graph.njae/graph.rb

index 09d6137f0d96edc4b6a9936ad74adac38d972a17..acfc9e07e998ee3843aa19e990f7670d38a8bcce 100644 (file)
@@ -49,10 +49,10 @@ module GraphNjae
           e2_vertices = e2.vertices
           source = product_graph.vertices.find {|v| v.g1_vertex == e1_vertices[0] and v.g2_vertex == e2_vertices[0]}
           destination = product_graph.vertices.find {|v| v.g1_vertex == e1_vertices[1] and v.g2_vertex == e2_vertices[1]}
-          pe1 = product_graph.connect source, destination
+          product_graph.connect source, destination
           source = product_graph.vertices.find {|v| v.g1_vertex == e1_vertices[0] and v.g2_vertex == e2_vertices[1]}
           destination = product_graph.vertices.find {|v| v.g1_vertex == e1_vertices[1] and v.g2_vertex == e2_vertices[0]}
-          pe2 = product_graph.connect source, destination
+          product_graph.connect source, destination
         end
       end
       product_graph