Comparator using graphs working only by similarity. Needed to add some kind of sort and random on it.