In the context of Social Network Analysis, I want to compute the homogeneity of different networks for specific attributes. For this case the igraph package contains the method assortativity() to compute the assortativity coefficient for similar vertices - http://igraph.org/r/doc/assortativity.html.
assortativity(myGraph, V(myGraph)$class == 0, V(myGraph)$class == 1, directed=T)
Is it legit to compute the assortativity by setting the first attribute value of one class equal zero and the second attribute of the second class equal one? In that case I am not interesting in the similarity of one specific class but rather in the homopholy of different classes. Or is it only possible to compare different vertices (other features) with each other?