louvian_ruby 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/louvian.rb +3 -4
  2. metadata +2 -2
data/lib/louvian.rb CHANGED
@@ -31,13 +31,13 @@ class Louvian
31
31
  @levels = value
32
32
  end
33
33
 
34
- def run
34
+ def run verbose=false
35
35
  l = 0
36
- puts "Level #{l}: Comms #{@graph.communities.size}"
36
+ puts "Level #{l}: Comms #{@graph.communities.size}" if verbose
37
37
  l +=1
38
38
 
39
39
  while self.one_level
40
- puts "Level #{l}: Comms #{@graph.communities.size}"
40
+ puts "Level #{l}: Comms #{@graph.communities.size}" if verbose
41
41
  @levels << @graph
42
42
  @graph = @graph.build_graph_from_comms
43
43
 
@@ -48,7 +48,6 @@ class Louvian
48
48
 
49
49
  def unfold_levels!
50
50
  return false if @levels.size < 2
51
- puts "levels count #{@levels.size}"
52
51
  @levels[(1..-1)].each_with_index do |graph, i|
53
52
  graph.expand! @levels[i]
54
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: louvian_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-03 00:00:00.000000000 Z
12
+ date: 2012-04-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Ruby implementation of Louvian community detection algorithim
15
15
  email: yahiaelgamal@gmail.com