triad_census_attr: triad census with node attributes
Description
triad census with node attributes
Usage
triad_census_attr(g, vattr)
Value
triad census with node attributes
Arguments
g
igraph object. should be a directed graph
vattr
name of vertex attribute to be used
Author
David Schoch
Details
The node attribute should be integers from 1 to max(attr).
The output is a named vector where the names are of the form Txxx-abc, where xxx corresponds to the standard triad census notation and "abc" are the attributes of the involved nodes.
The implemented algorithm is comparable to the algorithm in Lienert et al.
References
Lienert, J., Koehly, L., Reed-Tsochas, F., & Marcum, C. S. (2019). An efficient counting method for the colored triad census. Social Networks, 58, 136-142.