R/clust2Mat.R

Defines functions clust2Mat

Documented in clust2Mat

clust2Mat<-function(memb){
N<-length(memb)
return(as.numeric(outer(memb, memb, FUN="=="))-outer(1:N,1:N,"=="))}

Try the GraphAT package in your browser

Any scripts or data that you put into this service are public.

GraphAT documentation built on Nov. 8, 2020, 5:01 p.m.