R/getgcc.R

Defines functions getgcc

Documented in getgcc

getgcc <- function(net){
  
  netclust = clusters(net)
  gcc = V(net)$name[netclust$membership==which.max(netclust$csize)]
  gccnet = induced.subgraph(net, gcc)

  return(gccnet)
}

Try the bc3net package in your browser

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

bc3net documentation built on May 30, 2017, 5:22 a.m.