Implementation of Chinese Whispers graph clustering algorithm