These operators allow for algebraic manupulation of graph adjacency matrices.

Usage

# S3 method for matrix
%c%(e1,e2)

Arguments

e1

an (unvalued) adjacency matrix.

e2

another (unvalued) adjacency matrix.

Value

The resulting 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.)

References

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