triad.classify
returns the Davis and Leinhardt classification of the triad indicated by tri
in the g
th graph of stack dat
.
triad.classify(dat, g=1, tri=c(1, 2, 3), mode=c("digraph", "graph"))
"digraph"
implies a directed structure, whereas "graph"
implies an undirected structure.NA
if one or more edges were missing
triad.census
), for instance, is linked to a range of substantive hypotheses (e.g., concerning structural balance). The Davis and Leinhardt classification scheme describes each triad by a string of four elements: the number of mutual (complete) dyads within the triad; the number of asymmetric dyads within the triad; the number of null (empty) dyads within the triad; and a configuration code for the triads which are not uniquely distinguished by the first three distinctions. The complete list of classes is as follows.003
012
102
021D
021U
021C
111D
111U
030T
030C
201
120D
120U
120C
210
300
These codes are returned by triad.classify
as strings. In the undirected case, only four triad states are possible (corresponding to the number of edges in the triad). These are evaluated for mode=="graph"
, with the return value being the number of edges.
Wasserman, S., and Faust, K. (1994). Social Network Analysis: Methods and Applications. Cambridge: Cambridge University Press.
triad.census
, gtrans
#Generate a random graph
g<-rgraph(10)
#Classify the triads (1,2,3) and (2,3,4)
triad.classify(g,tri=c(1,2,3))
triad.classify(g,tri=c(1,2,3))
#Plot the triads in question
gplot(g[1:3,1:3])
gplot(g[2:4,2:4])
Run the code above in your browser using DataLab