triad_census: Triad census for affiliation networks

Description Usage Arguments Details Value Triad censuses References See Also Examples

View source: R/triad-census.R

Description

Given an affiliation network, tally all actor triads by isomorphism or other congruence class.

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
triad_census(graph, ..., add.names = TRUE)

triad_census_an(graph, scheme = "full", method = "batagelj_mrvar", ...,
  add.names = TRUE)

triad.census.an(...)

triad_census_full(graph, method = "batagelj_mrvar", ..., add.names = TRUE)

triad_census_full_batagelj_mrvar(graph, use.integer = FALSE)

triad_census_full_projection(graph, verbose = FALSE)

triad_census_difference(graph, method = "batagelj_mrvar", ...,
  add.names = TRUE)

triad_census_difference_batagelj_mrvar(graph, use.integer = FALSE)

triad_census_difference_projection(graph)

unif_triad_census(graph)

unif.triad.census(graph)

triad_census_binary(graph, method = "batagelj_mrvar", ..., add.names = TRUE)

triad_census_binary_batagelj_mrvar(graph, use.integer = FALSE)

triad_census_binary_projection(graph, verbose = FALSE)

str_triad_census(graph)

structural.triad.census(graph)

simple_triad_census(graph, add.names = TRUE)

simple.triad.census(graph, add.names = TRUE)

Arguments

graph

An igraph object, usually an affiliation network.

...

Additional arguments (currently use.integer and verbose) passed to the method function.

add.names

Logical; whether to label the rows and columns of the output matrix.

scheme

Character; the type of triad census to calculate, matched to "full", "difference" (also "uniformity"), "binary" (also "structural"), or "simple".

method

Character; the triad census method to use. Currently only "batagelj_mrvar" is implemented. "projection" calls an inefficient but reliable implementation in R from the first package version that invokes the simple_triad_census of the actor_projection of graph.

use.integer

Logical; whether to use the IntegerMatrix class in Rcpp rather than the default NumericMatrix.

verbose

Logical; whether to display progress bars.

Details

The triad_census_* functions implement the several triad censuses described below. Each census is based on a congruence relation among the triads in an affiliation network, and each function returns a matrix (or, in the "simple" case, a vector) recording the number of triads in each congruence class.

The function triad_census supercedes triad_census but calls in case graph is not an affiliation network.

Value

A matrix counts of triad congruence classes, with row indices reflecting pairwise exclusive events and column indices reflecting triadwise events.

Triad censuses

Three triad censuses are implemented for affiliation networks:

Each of these censuses can be projected from the previous using the function project_census. A fourth census, called the uniformity triad census and implemented as unif_triad_census, is deprecated. Three-actor triad affiliation networks can be constructed and plotted using the triad functions.

The default method for the two affiliation network–specific triad censuses is adapted from the algorithm of Batagelj and Mrvar (2001) for calculating the classical triad census for a directed graph.

References

Kreher, D.L., & Stinson, D.R. (1999). Combinatorial algorithms: generation, enumeration, and search. SIGACT News, 30(1), 33–35.

Batagelj, V., & Mrvar, A. (2001). A subquadratic triad census algorithm for large sparse networks with small maximum degree. Social Networks, 23(3), 237–243.

Brunson, J.C. (2015). Triadic analysis of affiliation networks. Network Science, 3(4), 480–508.

See Also

Original igraph functions: triad_census

Other triad census functions: project_census, triad_closure_from_census, triad_tallies

Examples

1
2
3

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