R/getgcc.R

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 2, 2019, 2:12 p.m.