|
static void | GenPLSeq (TIntV &SzSeq, const int &SeqLen, const double &Alpha, TRnd &Rnd, const int &Min, const int &Max) |
| AGMUtil:: Utilities for AGM. More...
|
|
static void | ConnectCmtyVV (TVec< TIntV > &CmtyVV, const TIntPrV &CIDSzPrV, const TIntPrV &NIDMemPrV, TRnd &Rnd) |
| Generate bipartite community affiliation from given power law coefficients for membership distribution and community size distribution. More...
|
|
static void | GenCmtyVVFromPL (TVec< TIntV > &CmtyVV, const PUNGraph &Graph, const int &Nodes, const int &Coms, const double &ComSzAlpha, const double &MemAlpha, const int &MinSz, const int &MaxSz, const int &MinK, const int &MaxK, TRnd &Rnd) |
| Generate bipartite community affiliation from given power law coefficients for membership distribution and community size distribution. More...
|
|
static void | GenCmtyVVFromPL (TVec< TIntV > &CmtyVV, const TIntV &NIDV, const int &Nodes, const int &Coms, const double &ComSzAlpha, const double &MemAlpha, const int &MinSz, const int &MaxSz, const int &MinK, const int &MaxK, TRnd &Rnd) |
| Generate bipartite community affiliation from given power law coefficients for membership distribution and community size distribution. More...
|
|
static void | GenCmtyVVFromPL (TVec< TIntV > &CmtyVV, const int &Nodes, const int &Coms, const double &ComSzAlpha, const double &MemAlpha, const int &MinSz, const int &MaxSz, const int &MinK, const int &MaxK, TRnd &Rnd) |
| Generate bipartite community affiliation from given power law coefficients for membership distribution and community size distribution. More...
|
|
static void | GetNodeMembership (THash< TInt, TIntSet > &NIDComVH, const TVec< TIntV > &CmtyVV) |
| get hash table of <Node ID, community IDs which node belongs to> More...
|
|
static void | GetNodeMembership (THash< TInt, TIntSet > &NIDComVH, const TVec< TIntV > &CmtyVV, const TIntV &NIDV) |
| get hash table of <Node ID, community IDs which node belongs to>. Some nodes in NIDV might belong to no community More...
|
|
static void | GetNodeMembership (TIntH &NIDComVH, const THash< TInt, TIntV > &CmtyVH) |
| get hash table of <Node ID, membership size> More...
|
|
static void | GetNodeMembership (THash< TInt, TIntSet > &NIDComVH, const TVec< TIntSet > &CmtyVV) |
|
static void | GetNodeMembership (THash< TInt, TIntSet > &NIDComVH, const THash< TInt, TIntV > &CmtyVH) |
|
static void | GetNodeMembership (THash< TInt, TIntV > &NIDComVH, const THash< TInt, TIntV > &CmtyVH) |
|
static void | GetNodeMembership (THash< TInt, TIntV > &NIDComVH, const TVec< TIntV > &CmtyVV) |
|
static void | LoadCmtyVV (const TStr &InFNm, TVec< TIntV > &CmtyVV) |
| load bipartite community affiliation graph from text file (each row contains the member node IDs for each community) More...
|
|
static void | LoadCmtyVV (const TStr &InFNm, TVec< TIntV > &CmtyVV, TStrHash< TInt > &StrToNIdH, const int BeginCol, const int MinSz=3, const TSsFmt Sep=ssfTabSep) |
| load bipartite community affiliation graph from text file (each row contains the member node IDs for each community) More...
|
|
static void | DumpCmtyVV (const TStr &OutFNm, const TVec< TIntV > &CmtyVV) |
| dump bipartite community affiliation into a text file More...
|
|
static void | DumpCmtyVV (const TStr OutFNm, TVec< TIntV > &CmtyVV, TIntStrH &NIDNmH) |
| dump bipartite community affiliation into a text file with node names More...
|
|
static int | TotalMemberships (const TVec< TIntV > &CmtyVV) |
| total number of memberships (== sum of the sizes of communities) More...
|
|
static void | RewireCmtyVV (const TVec< TIntV > &CmtyVVIn, TVec< TIntV > &CmtyVVOut, TRnd &Rnd) |
| rewire bipartite community affiliation graphs More...
|
|
static void | RewireCmtyNID (THash< TInt, TIntV > &CmtyVH, TRnd &Rnd) |
| rewire bipartite community affiliation graphs More...
|
|
static int | Intersection (const TIntV &C1, const TIntV &C2) |
|
static void | GetIntersection (const THashSet< TInt > &A, const THashSet< TInt > &B, THashSet< TInt > &C) |
|
static int | Intersection (const THashSet< TInt > &A, const THashSet< TInt > &B) |
|
static double | GetConductance (const PUNGraph &Graph, const TIntSet &CmtyS, const int Edges) |
|
static void | GetNbhCom (const PUNGraph &Graph, const int NID, TIntSet &NBCmtyS) |
|
static void | SaveGephi (const TStr &OutFNm, const PUNGraph &G, const TVec< TIntV > &CmtyVVAtr, const double MaxSz, const double MinSz) |
|
static void | SaveGephi (const TStr &OutFNm, const PUNGraph &G, const TVec< TIntV > &CmtyVVAtr, const double MaxSz, const double MinSz, const THash< TInt, TStr > &NIDNameH) |
|
static void | SaveGephi (const TStr &OutFNm, const PUNGraph &G, const TVec< TIntV > &CmtyVVAtr, const double MaxSz, const double MinSz, const THash< TInt, TStr > &NIDNameH, const THash< TInt, TIntTr > &NIDColorH) |
| save graph into a gexf file which Gephi can read More...
|
|
static void | SaveBipartiteGephi (const TStr &OutFNm, const TIntV &NIDV, const TVec< TIntV > &CmtyVV, const double MaxSz, const double MinSz, const TIntStrH &NIDNameH, const THash< TInt, TIntTr > &NIDColorH, const THash< TInt, TIntTr > &CIDColorH) |
| save bipartite community affiliation into gexf file More...
|
|
static int | FindComsByAGM (const PUNGraph &Graph, const int InitComs, const int MaxIter, const int RndSeed, const double RegGap, const double PNoCom=0.0, const TStr PltFPrx=TStr()) |
| estimate number of communities using AGM More...
|
|
template<class PGraph > |
static PGraph | LoadEdgeListStr (const TStr &InFNm, TIntStrH &NIDNameH, const int &SrcColId=0, const int &DstColId=1, const TSsFmt SsFmt=ssfTabSep) |
|
template<class PGraph > |
static PGraph | LoadEdgeListStr (const TStr &InFNm, TStrHash< TInt > &NodeNameH, const int &SrcColId=0, const int &DstColId=1, const TSsFmt SsFmt=ssfTabSep) |
|
template<class PGraph > |
static void | GVizComGraph (const PGraph &Graph, const TVec< TIntV > &CmtyVV, const TStr &OutFNm, const TStr &Desc=TStr()) |
|
Affiliation Graph Model (AGM) graph generator.
Definition at line 19 of file agm.h.