assort {streamDAG} | R Documentation |
Assortativity
Description
Calculates graph assortativity
Usage
assort(G, mode = "in.out")
Arguments
G |
Graph object of class |
mode |
One of |
Details
The definitive measure of graph assortativity is the Pearson correlation coefficient of the degree of pairs of adjacent nodes (Newman, 2002). Let define nodes and directionality of the ith arc,
, let
index the degree type:
, and let
, be the
and
degree of the ith arc. Then, the general form of assortativity index is:
where and
are the arithmetic means of the
s and
s, and
and
are the population standard deviations of the
s and
s. Under this framework, there are four possible forms to
(Foster et al., 2010). These are:
, and
.
Value
Assortativity coefficeint outcome(s)
Author(s)
Ken Aho, Gabor Csardi wrote degree
References
Newman, M. E. (2002). Assortative mixing in networks. Physical Review Letters, 89(20), 208701.
Foster, J. G., Foster, D. V., Grassberger, P., & Paczuski, M. (2010). Edge direction and the structure of networks. Proceedings of the National Academy of Sciences, 107(24), 10815-10820.
Examples
network_a <- graph_from_literal(a --+ b, c --+ d, d --+ e, b --+ e, e --+ j,
j --+ m, f --+ g, g --+ i, h --+ i, i --+ k, k --+ l, l --+ m, m --+ n,
n --+ o)
assort(network_a)