SNAP Library, User Reference
2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
|
Classes | |
struct | TDelSelfEdges |
struct | TDelSelfEdges< PGraph, true > |
struct | TGetSubGraph |
struct | TGetSubGraph< PGraph, false > |
struct | TConvertSubGraph |
struct | TConvertSubGraph< POutGraph, PInGraph, false > |
Functions | |
double | CalcEffDiam (const TIntFltKdV &DistNbrsCdfV, const double &Percentile=0.9) |
Helper function for computing a given Percentile of a (unnormalized) cumulative distribution function. | |
double | CalcEffDiamPdf (const TIntFltKdV &DistNbrsPdfV, const double &Percentile=0.9) |
Helper function for computing a given Percentile of a (unnormalized) probability distribution function. | |
double | CalcAvgDiamPdf (const TIntFltKdV &DistNbrsPdfV) |
Helper function for computing the mean of a (unnormalized) probability distribution function. | |
void | CmtyGirvanNewmanStep (PUNGraph &Graph, TIntV &Cmty1, TIntV &Cmty2) |
A single step of Girvan-Newman clustering procedure. | |
double | _GirvanNewmanGetModularity (const PUNGraph &G, const TIntH &OutDegH, const int &OrigEdges, TCnComV &CnComV) |
void | GetSphereDev (const int &Dim, TRnd &Rnd, TFltV &ValV) |
Sample random point from the surface of a Dim-dimensional unit sphere. | |
template<class PGraph > | |
TIntPr | 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. | |
double | GetInvParticipRat (const TFltV &EigVec) |
void | GVizDoLayout (const TStr &GraphInFNm, TStr OutFNm, const TGVizLayout &Layout) |
Runs GraphViz layout engine over a graph saved in the file GraphInFNm with output saved to OutFNm. | |
TStr | GVizGetLayoutStr (const TGVizLayout &Layout) |
Generates the GraphViz command string based on the selected Layout engine. |
double TSnap::TSnapDetail::_GirvanNewmanGetModularity | ( | const PUNGraph & | G, |
const TIntH & | OutDegH, | ||
const int & | OrigEdges, | ||
TCnComV & | CnComV | ||
) |
double TSnap::TSnapDetail::CalcAvgDiamPdf | ( | const TIntFltKdV & | DistNbrsPdfV | ) |
Helper function for computing the mean of a (unnormalized) probability distribution function.
double TSnap::TSnapDetail::CalcEffDiam | ( | const TIntFltKdV & | DistNbrsCdfV, |
const double & | Percentile | ||
) |
Helper function for computing a given Percentile of a (unnormalized) cumulative distribution function.
double TSnap::TSnapDetail::CalcEffDiamPdf | ( | const TIntFltKdV & | DistNbrsPdfV, |
const double & | Percentile | ||
) |
Helper function for computing a given Percentile of a (unnormalized) probability distribution function.
void TSnap::TSnapDetail::CmtyGirvanNewmanStep | ( | PUNGraph & | Graph, |
TIntV & | Cmty1, | ||
TIntV & | Cmty2 | ||
) |
A single step of Girvan-Newman clustering procedure.
double TSnap::TSnapDetail::GetInvParticipRat | ( | const TFltV & | EigVec | ) |
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.
void TSnap::TSnapDetail::GetSphereDev | ( | const int & | Dim, |
TRnd & | Rnd, | ||
TFltV & | ValV | ||
) |
Sample random point from the surface of a Dim-dimensional unit sphere.
void TSnap::TSnapDetail::GVizDoLayout | ( | const TStr & | GraphInFNm, |
TStr | OutFNm, | ||
const TGVizLayout & | Layout | ||
) |
Runs GraphViz layout engine over a graph saved in the file GraphInFNm with output saved to OutFNm.
TStr TSnap::TSnapDetail::GVizGetLayoutStr | ( | const TGVizLayout & | Layout | ) |
Generates the GraphViz command string based on the selected Layout engine.