Clustering of networks with textual edges