THE EUROPEAN PHYSICAL JOURNAL B Scale-free homophilic network