SNAP Library 2.3, Developer Reference
2014-06-16 11:58:46
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Classes | |
class | TCNMQMatrix |
struct | TConvertSubGraph |
struct | TConvertSubGraph< POutGraph, PInGraph, false > |
struct | TDelSelfEdges |
struct | TDelSelfEdges< PGraph, true > |
struct | TGetSubGraph |
struct | TGetSubGraph< PGraph, 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. More... | |
double | CalcEffDiam (const TFltPrV &DistNbrsCdfV, const double &Percentile=0.9) |
Helper function for computing a given Percentile of a (unnormalized) cumulative distribution function. More... | |
double | CalcEffDiamPdf (const TIntFltKdV &DistNbrsPdfV, const double &Percentile=0.9) |
Helper function for computing a given Percentile of a (unnormalized) probability distribution function. More... | |
double | CalcEffDiamPdf (const TFltPrV &DistNbrsPdfV, const double &Percentile=0.9) |
Helper function for computing a given Percentile of a (unnormalized) probability distribution function. More... | |
double | CalcAvgDiamPdf (const TIntFltKdV &DistNbrsPdfV) |
Helper function for computing the mean of a (unnormalized) probability distribution function. More... | |
double | CalcAvgDiamPdf (const TFltPrV &DistNbrsPdfV) |
Helper function for computing the mean of a (unnormalized) probability distribution function. More... | |
void | CmtyGirvanNewmanStep (PUNGraph &Graph, TIntV &Cmty1, TIntV &Cmty2) |
A single step of Girvan-Newman clustering procedure. More... | |
double | _GirvanNewmanGetModularity (const PUNGraph &G, const TIntH &OutDegH, const int &OrigEdges, TCnComV &CnComV) |
TIntFltH | MapEquationNew2Modules (PUNGraph &Graph, TIntH &Module, TIntFltH &Qi, int a, int b) |
float | Equation (PUNGraph &Graph, TIntFltH &PAlpha, float &SumPAlphaLogPAlpha, TIntFltH &Qi) |
void | GetSphereDev (const int &Dim, TRnd &Rnd, TFltV &ValV) |
Sample random point from the surface of a Dim-dimensional unit sphere. More... | |
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. More... | |
double | GetInvParticipRatEig (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. More... | |
TStr | GVizGetLayoutStr (const TGVizLayout &Layout) |
Generates the GraphViz command string based on the selected Layout engine. More... | |
double TSnap::TSnapDetail::_GirvanNewmanGetModularity | ( | const PUNGraph & | G, |
const TIntH & | OutDegH, | ||
const int & | OrigEdges, | ||
TCnComV & | CnComV | ||
) |
Definition at line 36 of file cmty.cpp.
References THash< TKey, TDat, THashFunc >::GetDat(), TUNGraph::TNodeI::GetOutDeg(), TSnap::GetWccs(), and TVec< TVal, TSizeTy >::Len().
Referenced by TSnap::CommunityGirvanNewman().
double TSnap::TSnapDetail::CalcAvgDiamPdf | ( | const TIntFltKdV & | DistNbrsPdfV | ) |
Helper function for computing the mean of a (unnormalized) probability distribution function.
Definition at line 41 of file anf.cpp.
References TVec< TVal, TSizeTy >::Len().
Referenced by TSnap::PlotShortPathDistr().
double TSnap::TSnapDetail::CalcAvgDiamPdf | ( | const TFltPrV & | DistNbrsPdfV | ) |
Helper function for computing the mean of a (unnormalized) probability distribution function.
Definition at line 50 of file anf.cpp.
References TVec< TVal, TSizeTy >::Len().
double TSnap::TSnapDetail::CalcEffDiam | ( | const TIntFltKdV & | DistNbrsCdfV, |
const double & | Percentile | ||
) |
Helper function for computing a given Percentile of a (unnormalized) cumulative distribution function.
Definition at line 7 of file anf.cpp.
References TVec< TVal, TSizeTy >::Last(), and TVec< TVal, TSizeTy >::Len().
Referenced by CalcEffDiam(), CalcEffDiamPdf(), TSnap::GetAnfEffDiam(), TSnap::PlotHops(), and TGStat::TakeDiam().
double TSnap::TSnapDetail::CalcEffDiam | ( | const TFltPrV & | DistNbrsCdfV, |
const double & | Percentile | ||
) |
Helper function for computing a given Percentile of a (unnormalized) cumulative distribution function.
Definition at line 21 of file anf.cpp.
References TVec< TVal, TSizeTy >::Add(), CalcEffDiam(), and TVec< TVal, TSizeTy >::Len().
double TSnap::TSnapDetail::CalcEffDiamPdf | ( | const TIntFltKdV & | DistNbrsPdfV, |
const double & | Percentile | ||
) |
Helper function for computing a given Percentile of a (unnormalized) probability distribution function.
Definition at line 29 of file anf.cpp.
References CalcEffDiam(), and TGUtil::GetCdf().
Referenced by TSnap::GetBfsEffDiam(), and TSnap::PlotShortPathDistr().
double TSnap::TSnapDetail::CalcEffDiamPdf | ( | const TFltPrV & | DistNbrsPdfV, |
const double & | Percentile | ||
) |
Helper function for computing a given Percentile of a (unnormalized) probability distribution function.
Definition at line 35 of file anf.cpp.
References CalcEffDiam(), and TGUtil::GetCdf().
A single step of Girvan-Newman clustering procedure.
Definition at line 14 of file cmty.cpp.
References TVec< TVal, TSizeTy >::Clr(), TBreathFS< PGraph >::DoBfs(), THash< TKey, TDat, THashFunc >::Empty(), TSnap::GetBetweennessCentr(), TBreathFS< PGraph >::GetHops(), THash< TKey, TDat, THashFunc >::GetKey(), TSnap::GetNodeWcc(), TInt::Mx, THash< TKey, TDat, THashFunc >::SortByDat(), TPair< TVal1, TVal2 >::Val1, and TPair< TVal1, TVal2 >::Val2.
Referenced by TSnap::CommunityGirvanNewman().
float TSnap::TSnapDetail::Equation | ( | PUNGraph & | Graph, |
TIntFltH & | PAlpha, | ||
float & | SumPAlphaLogPAlpha, | ||
TIntFltH & | Qi | ||
) |
Definition at line 84 of file cmty.cpp.
References THash< TKey, TDat, THashFunc >::Len().
Referenced by TSnap::Infomap().
double TSnap::TSnapDetail::GetInvParticipRatEig | ( | const TFltV & | EigVec | ) |
Definition at line 401 of file gsvd.cpp.
References TVec< TVal, TSizeTy >::Len().
Referenced by TSnap::GetInvParticipRat().
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.
Definition at line 240 of file ggen.h.
References TRnd::GetUniDevInt(), and TInt::Rnd.
Referenced by TSnap::GenDegSeq().
Sample random point from the surface of a Dim-dimensional unit sphere.
Definition at line 343 of file ggen.cpp.
References TVec< TVal, TSizeTy >::Gen(), TRnd::GetNrmDev(), TVec< TVal, TSizeTy >::Len(), and TMath::Sqr().
Referenced by TSnap::GenGeoPrefAttach().
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.
Definition at line 5 of file gviz.cpp.
References TStr::CStr(), TStr::Fmt(), TStr::GetFExt(), GVizGetLayoutStr(), and IAssert.
Referenced by TSnap::DrawGViz(), TGraphKey::DrawGViz(), TGHash< TDat >::DrawGViz(), and TAGMUtil::GVizComGraph().
TStr TSnap::TSnapDetail::GVizGetLayoutStr | ( | const TGVizLayout & | Layout | ) |
Generates the GraphViz command string based on the selected Layout engine.
Definition at line 30 of file gviz.cpp.
References Fail, TStr::GetNullStr(), gvlCirco, gvlDot, gvlNeato, gvlSfdp, and gvlTwopi.
Referenced by GVizDoLayout().
TIntFltH TSnap::TSnapDetail::MapEquationNew2Modules | ( | PUNGraph & | Graph, |
TIntH & | Module, | ||
TIntFltH & | Qi, | ||
int | a, | ||
int | b | ||
) |
Definition at line 53 of file cmty.cpp.
References THash< TKey, TDat, THashFunc >::AddDat(), THash< TKey, TDat, THashFunc >::DelKey(), THash< TKey, TDat, THashFunc >::GetDat(), and THash< TKey, TDat, THashFunc >::IsKey().
Referenced by TSnap::Infomap().