Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sna.operators

Graphical Operators


Description

These operators allow for algebraic manupulation of graph adjacency matrices.

Usage

## S3 method for class 'matrix'
e1 %c% e2

Arguments

e1

an (unvalued) adjacency matrix.

e2

another (unvalued) adjacency matrix.

Details

Currently, only one operator is supported. x %c% y returns the adjacency matrix of the composition of graphs with adjacency matrices x and y (respectively). (Note that this may contain loops.)

Value

The resulting adjacency matrix.

Author(s)

Carter T. Butts buttsc@uci.edu

References

Wasserman, S. and Faust, K. (1994). Social Network Analysis: Methods and Applications. Cambridge: University of Cambridge Press.

Examples

#Create an in-star
g<-matrix(0,6,6)
g[2:6,1]<-1
gplot(g)

#Compose g with its transpose
gcgt<-g%c%t(g)
gplot(gcgt,diag=TRUE)
gcgt

sna

Tools for Social Network Analysis

v2.6
GPL (>= 2)
Authors
Carter T. Butts [aut, cre, cph]
Initial release
2020-10-5

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.