Closed suzuki-shm closed 2 years ago
As far as I know there is no theoretical result of the time complexity of Louvain or Leiden, only empirical analyses that suggest it roughly scales as O(n) or O(n log n), with n being the number of nodes. Experimental results shows that Leiden roughly scales similar to Louvain, see Fig. 5, but with a smaller constant.
Regarding the memory required, in addition to the memory for the graph itself, which is O(n + m), the memory required for the algorithm itself is O(n), with m being the number of edges.
@vtraag Thank you for providing a special insight! It helped me a lot.
I have checked several sources but could not find any description. Let me ask a question regarding complexity. It is noted that the time complexity of Louvain clustering is O(n logn). As Leiden algorithm is faster than Louvain, I think it may have better time complexity. I would like to refer this to select a computational resource.