Introducing community detection and its applications