When there are structural zeros given by groups, this function applies
a particular transformation function of a graph by groups returning a
square matrix of the same size of the original one with structural zeros
and the function applied by `INDICES`

.

1 2 3 4 5 6 7 8 9 | ```
transformGraphBy(graph, INDICES, fun = function(g, ...) g, ...)
## S3 method for class 'diffnet'
transformGraphBy(graph, INDICES, fun = function(g, ...) g,
...)
## S3 method for class 'dgCMatrix'
transformGraphBy(graph, INDICES, fun = function(g, ...) g,
...)
``` |

`graph` |
A graph |

`INDICES` |
A vector of length |

`fun` |
A function to apply |

`...` |
Further arguments passed to |

The transformation function `fun`

must return a square matrix
of size *m*m*, where *m* is the size of the subgroup
given by `INDICES`

. See examples below

1 | ```
# Rewiring a graph by
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.