From: Neil Smith Date: Fri, 10 Feb 2012 20:10:27 +0000 (+0000) Subject: Fixed typo in graph.rb X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=e3fe1f33fea019106289edfae4e7a32f3ba3e03b;p=graph.njae.git Fixed typo in graph.rb --- diff --git a/lib/graph.njae/graph.rb b/lib/graph.njae/graph.rb index 09d6137..acfc9e0 100644 --- a/lib/graph.njae/graph.rb +++ b/lib/graph.njae/graph.rb @@ -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