Community Detection Algorithms and Clustering of Input-Output Linkages — Analysis of their interconnections ∗