| Conditions | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 1.729 |
| Changes | 0 | ||
| 1 | 1 | module NoSE |
|
| 4 | 1 | def initialize(params = {}) |
|
| 5 | super params |
||
| 6 | |||
| 7 | @beta = params.fetch :beta, 0.5 |
||
| 8 | @node_degree = params.fetch :node_degree, 2 |
||
| 9 | @nodes = 0..(@nodes_nb - 1) |
||
| 10 | |||
| 11 | @entities = @nodes.map do |node| |
||
| 12 | create_entity node |
||
| 13 | end |
||
| 14 | |||
| 15 | build_initial_links |
||
| 16 | rewire_links |
||
| 17 | add_foreign_keys |
||
| 18 | end |
||
| 19 | |||
| 48 |