get_dc_membership: Get individual dynamic community membership from a MajorTrack...

Description Usage Arguments Value Examples

View source: R/MTRfuncs.R

Description

get_dc_membership extracts the per timestep dynamic communities for each vertex.

Usage

1

Arguments

track

A MajorTrack object as produced by do_track

Value

A list, the length of which is the number of timesteps included in the MajorTrack object. Each element of the list is a numeric vector indicating which dynamic community a vertex is currently a member of.

Examples

1
2
3
4
5
6
7
data(allnets)
#detect each networks communities
coms=lapply(allnets,function(x){
  igraph::cluster_louvain(x)
})
track = do_track(allnets, coms, history=1)
get_dc_membership(track)

jevansbio/MajorTrackR documentation built on Dec. 20, 2021, 11:06 p.m.