| 
    SNAP Library 6.0, Developer Reference
    2020-12-09 16:24:20
    
   SNAP, a general purpose, high performance system for analysis and manipulation of large networks 
   | 
 
Affiliation Graph Model (AGM) graph generator. More...
#include <agm.h>
Static Public Member Functions | |
| static void | RndConnectInsideCommunity (PUNGraph &Graph, const TIntV &CmtyV, const double &Prob, TRnd &Rnd) | 
| Connect members of a given community by Erdos-Renyi.  More... | |
| static PUNGraph | GenAGM (TVec< TIntV > &CmtyVV, const double &DensityCoef, const double &ScaleCoef, TRnd &Rnd=TInt::Rnd) | 
| static PUNGraph | GenAGM (TVec< TIntV > &CmtyVV, const double &DensityCoef, const int TargetEdges, TRnd &Rnd) | 
| static PUNGraph | GenAGM (TVec< TIntV > &CmtyVV, const TFltV &CProbV, TRnd &Rnd, const double PNoCom=-1.0) | 
| Generate graph using the AGM model. CProbV = vector of Pc.  More... | |
      
  | 
  static | 
Definition at line 37 of file agm.cpp.
References TVec< TVal, TSizeTy >::Add(), and TVec< TVal, TSizeTy >::Len().
Referenced by GenAGM().


      
  | 
  static | 
Definition at line 31 of file agm.cpp.
References GenAGM(), and TUNGraph::GetEdges().

      
  | 
  static | 
Generate graph using the AGM model. CProbV = vector of Pc.
Definition at line 49 of file agm.cpp.
References THashSet< TKey, THashFunc >::AddKey(), TUNGraph::AddNode(), TUNGraph::Defrag(), TUNGraph::GetEdges(), THashSet< TKey, THashFunc >::GetKeyV(), TUNGraph::GetNodes(), TUNGraph::IsNode(), TVec< TVal, TSizeTy >::Len(), TUNGraph::New(), and RndConnectInsideCommunity().

      
  | 
  static | 
Connect members of a given community by Erdos-Renyi.
Definition at line 10 of file agm.cpp.
References TUNGraph::AddEdge(), THashSet< TKey, THashFunc >::AddKey(), edge, TRnd::GetBinomialDev(), TRnd::GetUniDevInt(), THashSet< TKey, THashFunc >::IsKey(), TVec< TVal, TSizeTy >::Len(), and Swap().
Referenced by GenAGM().

