transitivity_an: Affiliation network clustering coefficients

Description Usage Arguments Value See Also

View source: R/transitivity-an.R

Description

This function computes a given flavor of transitivity (triadic closure) on a given affiliation network. The calculations are performed locally. Each flavor is defined as a proportion of "wedges" that are "closed", for suitable definitions of both terms. The function transitivity_an is a shell that proceeds across actors and computes wedges using the provided wedgeFun. These functions count the "wedges", and among them the "closed" ones, centered at a given actor node in a given affiliation network. The triads method transitivity_an_triads first classifies every triad centered at each node. The appropriate formula then counts the wedges and closed wedges at each. The method is slower for a single flavor but can be used to produce multiple flavors with negligible additional computational cost. The wedges method transitivity_an_wedges relies on a separate "wedge function" for each statistic. The algorithm calls the appropriate wedge function to run over the necessary wedge centers and return a wedge count matrix, which is returned back into transitivity_an for outputting.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
transitivity_an(graph, type = "global", wedgeFun, flavor,
  vids = which(!V(graph)$type), add.names = FALSE)

transitivity_an_triads(graph, vids = which(!V(graph)$type), flavor)

transitivity_an_wedges(graph, vids = which(!V(graph)$type), wedgeFun)

transitivity.an(graph, type = "global", wedgeFun, flavor,
  vids = which(!V(graph)$type), add.names = FALSE)

transitivity.an.triads(graph, vids = which(!V(graph)$type), flavor)

transitivity.an.wedges(graph, vids = which(!V(graph)$type), wedgeFun)

indequ_transitivity(graph, type = "global", vids = which(!V(graph)$type))

indequ.transitivity(graph, type = "global", vids = which(!V(graph)$type))

indstr_transitivity(graph, type = "global", vids = which(!V(graph)$type))

indstr.transitivity(graph, type = "global", vids = which(!V(graph)$type))

injact_transitivity(graph, type = "global", vids = which(!V(graph)$type))

injact.transitivity(graph, type = "global", vids = which(!V(graph)$type))

injequ_transitivity(graph, type = "global", vids = which(!V(graph)$type))

injequ.transitivity(graph, type = "global", vids = which(!V(graph)$type))

injstr_transitivity(graph, type = "global", vids = which(!V(graph)$type))

injstr.transitivity(graph, type = "global", vids = which(!V(graph)$type))

opsahl_transitivity(graph, type = "global", vids = which(!V(graph)$type))

opsahl.transitivity(graph, type = "global", vids = which(!V(graph)$type))

excl_transitivity(graph, type = "global", vids = which(!V(graph)$type))

excl.transitivity(graph, type = "global", vids = which(!V(graph)$type))

Arguments

graph

An affiliation network; see is_an.

type

Character; the type of clustering coefficient (defaults to "global").

wedgeFun

The wedge function; overrides flavor.

flavor

The flavor of transitivity to be used; overridden by wedgeFun.

vids

A subset of actor node ids at which to evaluate the local clustering coefficient.

add.names

Logical; whether to label the matrix rows and columns.

triads

A matrix of centered triads.

Value

If type is "global", the global clustering coefficient of the network; if "local", the local clustering coefficients of the actors; otherwise, a 2-column matrix, each row of which gives the number of wedges and the number of closed wedges centered at each actor.

See Also

Other triad closure functions: dynamic_triad_closure, project_transitivity, triad_closure_from_census, triad_closure


corybrunson/bitriad documentation built on May 13, 2019, 10:51 p.m.