The input matrix should ensure that the following conditions hold:
- No duplicate edges
- compressed sparse column/row (CSC/CSR) format
The algorithm implementation is shown as the figure below:
Figure 1 : calculate degree architecture on FPGA
As seen from the figure:
- Module calculate degree: first get the vertex node’s outdegree and keep them in one DDR buffer.