powered by
Symmetrizes the elements of mats according to the rule in rule.
mats
rule
symmetrize(mats, rule="weak", return.as.edgelist=FALSE)
a graph or graph stack.
one of ``upper'', ``lower'', ``strong'' or ``weak''.
logical; should the symmetrized graphs be returned in edgelist form?
The symmetrized graph stack
The rules used by symmetrize are as follows:
symmetrize
upper: Copy the upper triangle over the lower triangle
lower: Copy the lower triangle over the upper triangle
strong: i<->j iff i->j and i<-j (AND rule)
weak: i<->j iff i->j or i<-j (OR rule)
Wasserman, S., and Faust, K. (1994). Social Network Analysis: Methods and Applications. Cambridge: Cambridge University Press.
# NOT RUN { #Generate a graph g<-rgraph(5) #Weak symmetrization symmetrize(g) #Strong symmetrization symmetrize(g,rule="strong") # }
Run the code above in your browser using DataLab