From 8f9dfdb2c7f308c2c0fe929f11a9652cb49e8ac7 Mon Sep 17 00:00:00 2001 From: Neil Smith Date: Fri, 18 May 2012 15:04:49 +0100 Subject: [PATCH] Bumped gem spec to 0.3.0 --- lib/graph.njae/graph.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/graph.njae/graph.rb b/lib/graph.njae/graph.rb index 3029ceb..27ee54f 100644 --- a/lib/graph.njae/graph.rb +++ b/lib/graph.njae/graph.rb @@ -105,12 +105,6 @@ module GraphNjae end end end -# self.vertices.each do |v| -# n = v.neighbours.length -# v.neighbours.each do |neighbour| -# neighbour.similarity += v.last_similarity / n -# end -# end max_similarity = vertices.map {|v| v.similarity}.max self.vertices.each do |v| v.similarity = v.similarity / max_similarity -- 2.34.1