made function for preprocessing, created datasets for top 50, 100, 500, 1000 users for graph visualization