# Reciprocity (network science)

(Redirected from Reciprocity in network)

In network science, reciprocity is a measure of the likelihood of vertices in a directed network to be mutually linked.[1] Like the clustering coefficient, scale-free degree distribution, or community structure, reciprocity is a quantitative measure used to study complex networks.

## Motivation

In real network problems, people are interested in determining the likelihood of occurring double links (with opposite directions) between vertex pairs. This problem is fundamental for several reasons. First, in the networks that transport information or material (such as email networks,[2] World Wide Web (WWW),[3] World Trade Web,[4] or Wikipedia[5] ), mutual links facilitate the transportation process. Second, when analyzing directed networks, people often treat them as undirected ones for simplicity; therefore, the information obtained from reciprocity studies helps to estimation the error introduced when a directed network is treated as undirected (for example, when measuring the clustering coefficient). Finally, detecting nontrivial patterns of reciprocity can reveal possible mechanisms and organizing principles that shape the observed network's topology.[1]

## How is it defined?

A traditional way to define the reciprocity r is using the ratio of the number of links pointing in both directions ${\displaystyle L^{<->}}$ to the total number of links L [6] ${\displaystyle r={\frac {L^{<->}}{L}}}$

With this definition, ${\displaystyle r=1}$ is for a purely bidirectional network while ${\displaystyle r=0}$ for a purely unidirectional one. Real networks have an intermediate value between 0 and 1.

However, this definition of reciprocity has some defects. It cannot tell the relative difference of reciprocity compared with purely random network with the same number of vertices and edges. The useful information from reciprocity is not the value itself, but whether mutual links occur more or less often than expected by chance. Besides, in those networks containing self-linking loops (links starting and ending at the same vertex), the self-linking loops should be excluded when calculating L.

### Garlaschelli and Loffredo's definition

In order to overcome the defects of the above definition, Garlaschelli and Loffredo defined reciprocity as the correlation coefficient between the entries of the adjacency matrix of a directed graph (${\displaystyle a_{ij}=1}$ if a link from i to j is there, and ${\displaystyle a_{ij}=0}$ if not):

${\displaystyle \rho \equiv {\frac {\sum _{i\neq j}(a_{ij}-{\bar {a}})(a_{ji}-{\bar {a}})}{\sum _{i\neq j}(a_{ij}-{\bar {a}})^{2}}}}$,

where the average value ${\displaystyle {\bar {a}}\equiv {\frac {\sum _{i\neq j}a_{ij}}{N(N-1)}}={\frac {L}{N(N-1)}}}$.

${\displaystyle {\bar {a}}}$ measures the ratio of observed to possible directed links (link density), and self-linking loops are now excluded from L because of i not equal to j.

The definition can be written in the following simple form:

${\displaystyle \rho ={\frac {r-{\bar {a}}}{1-{\bar {a}}}}}$

The new definition of reciprocity gives an absolute quantity which directly allows one to distinguish between reciprocal (${\displaystyle \rho >0}$) and antireciprocal (${\displaystyle \rho <0}$) networks, with mutual links occurring more and less often than random respectively.

If all the links occur in reciprocal pairs, ${\displaystyle \rho =1}$; if r=0, ${\displaystyle \rho =\rho _{min}}$. ${\displaystyle \rho _{min}\equiv {\frac {-{\bar {a}}}{1-{\bar {a}}}}}$

This is another advantage of using ${\displaystyle \rho }$, because it incorporates the idea that complete antireciprocal is more statistical significant in the networks with larger density, while it has to be regarded as a less pronounced effect in sparser networks.

### Reciprocity in real social networks

The reciprocity was analyzed in some real social networks by Gallos [7] . It seems that females tend to have higher reciprocity compared to males.

## References

1. ^ a b Garlaschelli, Diego; Loffredo, Maria I. (December 2004). "Patterns of Link Reciprocity in Directed Networks". Physical Review Letters. 93 (26). American Physical Society. doi:10.1103/PhysRevLett.93.268701.
2. ^ M. E. J. Newman, S. Forrest, and J. Balthrop, Phys. Rev. E 66, 035101(R) (2002).
3. ^ R. Albert, H. Jeong, and A.-L. Baraba´si, Nature (London) 401, 130 (1999).
4. ^ D. Garlaschelli and M. I. Loffredo, Phys. Rev. Lett. 93, 188701 (2004).
5. ^ V. Zlatic, M. Bozicevic, H. Stefancic, and M. Domazet, Phys. Rev. E 74, 016115 (2006)
6. ^ M. E. J. Newman, S. Forrest, and J. Balthrop, Phys. Rev. E 66, 035101(R) (2002).
7. ^ Gallos, Lazaros K.; Rybski, Diego; Liljeros, Fredrik; Havlin, Shlomo; Makse, Hernán A. (2012). "How People Interact in Evolving Online Affiliation Networks". Physical Review X. 2 (3). doi:10.1103/PhysRevX.2.031014. ISSN 2160-3308.