TABLE 3.
Pseudocode for balanced graphs (algorithm 2)a
Step | Description |
---|---|
1 | M[0] ← scoring matrix initialized from weighted adjacency matrix |
2 | ϵ ← threshold for convergence |
3 | E ← initial error value, set to 1 |
4 | I ← maximum number of iterations |
5 | for i = 1 to I do |
6 | while 100E > ϵ then |
7 | |
8 | apply algorithm 1 on M[i] |
9 | for row, column in M[i] do |
10 | |
11 | end |
12 | apply algorithm 1 on M[i] |
13 | |
14 | |
15 | for row, column in M[i] do |
16 | if is not 0 then |
17 | |
18 | |
19 | end |
20 | |
21 | end |
Pseudocode operators “while,” “for,” “if,” “is not,” “then,” “do,” and “end” are highlighted in bold for clarity.