SNAP Library, Developer Reference  2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
ggen.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  TSnap
 Main namespace for all the Snap global entities.
namespace  TSnap::TSnapDetail

Functions

template<class PGraph >
PGraph TSnap::GenGrid (const int &Rows, const int &Cols, const bool &IsDir=true)
 Generates a 2D-grid graph of Rows rows and Cols columns.
template<class PGraph >
PGraph TSnap::GenStar (const int &Nodes, const bool &IsDir=true)
 Generates a graph with star topology. Node id 0 is in the center and then links to all other nodes.
template<class PGraph >
PGraph TSnap::GenCircle (const int &Nodes, const int &NodeOutDeg=1, const bool &IsDir=true)
 Generates a circle graph where every node creates out-links to NodeOutDeg forward nodes.
template<class PGraph >
PGraph TSnap::GenFull (const int &Nodes)
 Generates a complete graph on Nodes nodes. Graph has no self-loops.
template<class PGraph >
PGraph TSnap::GenTree (const int &Fanout, const int &Levels, const bool &IsDir=true, const bool &ChildPointsToParent=true)
 Generates a tree graph of Levels levels with every parent having Fanout children.
template<class PGraph >
PGraph TSnap::GenBaraHierar (const int &Levels, const bool &IsDir=true)
 Generates a Ravasz-Barabasi deterministic scale-free graph.
template<class PGraph >
PGraph TSnap::GenRndGnm (const int &Nodes, const int &Edges, const bool &IsDir=true, TRnd &Rnd=TInt::Rnd)
 Generates an Erdos-Renyi random graph.
PBPGraph TSnap::GenRndBipart (const int &LeftNodes, const int &RightNodes, const int &Edges, TRnd &Rnd=TInt::Rnd)
 Generates a random bipartite graph.
PUNGraph TSnap::GenRndDegK (const int &Nodes, const int &NodeDeg, const int &NSwitch=100, TRnd &Rnd=TInt::Rnd)
 Generates a random graph where each node has degree exactly NodeDeg.
PUNGraph TSnap::GenRndPowerLaw (const int &Nodes, const double &PowerExp, const bool &ConfModel, TRnd &Rnd)
PUNGraph TSnap::GenDegSeq (const TIntV &DegSeqV, TRnd &Rnd)
PUNGraph TSnap::GenPrefAttach (const int &Nodes, const int &NodeOutDeg, TRnd &Rnd)
PUNGraph TSnap::GenGeoPrefAttach (const int &Nodes, const int &OutDeg, const double &Beta, TRnd &Rnd)
PUNGraph TSnap::GenSmallWorld (const int &Nodes, const int &NodeOutDeg, const double &RewireProb, TRnd &Rnd)
PUNGraph TSnap::GenConfModel (const TIntV &DegSeqV, TRnd &Rnd)
PUNGraph TSnap::GenRewire (const PUNGraph &OrigGraph, const int &NSwitch, TRnd &Rnd)
PNGraph TSnap::GenForestFire (const int &Nodes, const double &FwdProb, const double &BckProb)
PNGraph TSnap::GenCopyModel (const int &Nodes, const double &Beta, TRnd &Rnd)
PNGraph TSnap::GenRMat (const int &Nodes, const int &Edges, const double &A, const double &B, const double &C, TRnd &Rnd)
PNGraph TSnap::GenRMatEpinions ()
template<class PGraph >
TIntPr TSnap::TSnapDetail::GetRndEdgeNonAdjNode (const PGraph &Graph, int NId1, int NId2)
 Returns a random edge in a graph Graph where the edge does not touch nodes NId1 and NId2.