gliop: Return a Binary Operation on GLI Values Computed on Two Graphs
Description
gliop is a wrapper which allows for an arbitrary binary operation on GLIs to be treated as a single call. This is particularly useful for test routines such as cugtest and qaptest.
Usage
gliop(dat, GFUN, OP="-", g1=1, g2=2, ...)
Arguments
dat
A graph stack
GFUN
A function taking single graphs as input
OP
The operator to use on the output of GFUN
g1
The index of the first input graph
g2
The index of the second input graph
...
Additional arguments to GFUN
Value
OP(GFUN(dat[g1, , ],...),GFUN(dat[g2, , ],...))
Details
gliop operates by evaluating GFUN on the graphs indexed by g1 and g2 and returning the result of OP as applied to the GFUN output.
References
Anderson, B.S.; Butts, C.T.; and Carley, K.M. (1999). ``The Interaction of Size and Density with Graph-Level Indices.'' Social Networks, 21(3), 239-267.