Skip to main content
. 2020 Apr 9;22(4):425. doi: 10.3390/e22040425
Algorithm 1 DCDID
Input:DG={G0,G1,,Gk}
Output:DC={C0,C1,,Ck}
 1: //Initial community detection
 2: C0=CDID(G0)
 3: //Incremental community detection
 4: for t=1 to k do
 5:  compute AN,DN,AE,DE using Equation (8)–(11)
 6:  ΔGtAdd_nodes(AN,Gt,Ct1)
 7:  ΔGtDel_nodes(DN,Gt1,Ct1)
 8:  ΔGtAdd_edges(AE,Ct1)
 9:  ΔGtDel_edges(DE,Ct1)
 10:  compute the unchanged communities Ct1
 11:  ΔCtCDID(ΔGt)
 12:  compute Ct using Equation (12)
 13:  end for