Get the graph based penalty transformation matrix, i.e. *D_p* in *p_{λ}(β) = λ\|D_pβ\|_1.*

1 | ```
fused.trans(A)
``` |

`A` |
input matrix – adjacency matrix of an observed graph based on the non-isolated nodes, of dimension |

the graph based penalty transformation matrix, of dimension *|E| \times n*, where *|E|* is the number of edges in the graph and *n* is the number of nodes.

Yang Feng, Richard J. Samworth and Yi Yu

Yang Feng, Richard J. Samworth and Yi Yu, Community Detection via Fused Principal Component Analysis, manuscript.

1 2 3 4 5 6 7 8 | ```
## to generate an adjacency matrix
A = matrix(c(0,1,1,1,0,0,1,0,0), byrow = TRUE, ncol = 3)
## have a look at A
A
## the graph based transformation matrix
fused.trans(A)
``` |

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.