segregation

netseg

R package with measures of homophily and segregation in networks.