CalcuDgree is an algorithm used to calculate indegree for CSR format input or outdegree for CSC format input. The algorithm is quite easy, but due to DDR limits, you cannot get one data per clock. So in this design, cache is used with an adjustable depth to get better performance.