What you're describing is assortativity, which I haven't analyzed personally.
But maybe I'll write a synopsis of this paper