| Input: H (matrix of neuronal weights), nodes (array detailing which neurons belong to each node) | |
| Output: aggregated_weight_matrix | |
| 1: | aggregated_weight_matrix = zeros(num_nodes, num_components) |
| 2: | for i in range(num_nodes) |
| 3: | for j in range(num_compnents) |
| 1: | aggregated_weight_matrix [i, j] = sum(H [nodes[i], j) |