Apriori approach to graph-based clustering of text documents