View source: R/core identification.R
proximity | R Documentation |
Calculates the social proximity of all vertices in a graph as described by Alba and Kadushin: Alba, Richard D., and Charles Kadushin. “The Intersection of Social Circles: A New Measure of Social Proximity in Networks.” Sociological Methods & Research 5, no. 1 (August 1, 1976): 77–102.
proximity(graph, neighborhood = 2, mode = "total")
graph |
is a igraph network |
mode |
if "total" the proximity is calculated on the size of the combined neighborhood. If "own" or "other" proximity is calculated on the basis of either of the vertices in a relation. |
neihborhood |
a numerical value indicating the order of the neighborhood, see neighborhood |
a matrix with proximity measures
data(den)
den.health <- has.tags(den, "Health", res = "relations", silent = TRUE)
graph.health <- elite.network(den.health)
graph.health <- betweenness.decomposition(graph.health)
proximity(graph.health)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.