SNAP Library 6.0, User Reference
2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Local-Spectral-Clustering statistics of a given Graph. More...
#include <ncp.h>
Classes | |
class | TCutInfo |
class | TNodeSweep |
Public Member Functions | |
TLocClustStat (const double &_Alpha, const int &_KMin, const int &_KMax, const double &_KFac, const int &_Coverage, const double &_SizeFrac) | |
void | Save (TSOut &SOut) const |
void | Clr () |
void | SetGraph (const PUNGraph &GraphPt) |
void | Run (const PUNGraph &Graph, const bool &SaveAllSweeps=false, const bool &SaveAllCond=false, const bool &SaveBestNodesAtK=false) |
void | AddBagOfWhiskers () |
void | AddCut (const TIntV &NIdV) |
void | AddCut (const int &ClustSz, const double &Phi) |
void | AddToBestCutH (const PUNGraph &Graph, const TIntV &NIdV, const bool &AddBestCond=true) |
double | FindBestCut (const int &Nodes, const TIntSet &TabuNIdSet, int &BestCutId) const |
const TCutInfo & | FindBestCut (const int &Nodes=-1) const |
double | FindBestCut (const int &Nodes, TIntV &ClustNIdV) const |
int | FindBestCut (const int &Nodes, int &Vol, int &Cut, double &Phi) const |
const TCutInfo & | GetBestCut () const |
int | GetCuts () const |
const TCutInfo & | GetKNodeCut (const int &Nodes) const |
const TCutInfo & | GetCutN (const int &N) const |
int | BestWhiskNodes () const |
int | BestWhiskEdges () const |
double | BestWhiskPhi () const |
TFltPr | GetBestWhisk () const |
const TFltPrV & | GetBagOfWhiskersV () const |
void | GetCurveStat (TFltPrV &MeanV, TFltPrV &MedV, TFltPrV &Dec1V, TFltPrV &MinV, TFltPrV &MaxV) const |
void | GetBoltzmanCurveStat (const TFltV &TempV, TVec< TFltPrV > &NcpV) const |
TStr | ParamStr () const |
void | PlotNCP (const TStr &OutFNm, TStr Desc=TStr()) const |
void | PlotNCPModul (const TStr &OutFNm, TStr Desc=TStr()) const |
void | PlotNcpTop10 (const TStr &OutFNm, TStr Desc, const int &TakeMinN) const |
void | PlotPhiInOut (const TStr &OutFNm, TStr Desc=TStr()) const |
void | PlotBestClustDens (TStr OutFNm, TStr Desc=TStr()) const |
void | PlotNCPScatter (const TStr &OutFNm, TStr Desc=TStr()) const |
void | PlotPhiDistr (const int &CmtySz, const TStr &OutFNm, TStr Desc=TStr()) const |
void | PlotBoltzmanCurve (const TStr &OutFNm, TStr Desc=TStr()) const |
void | ImposeNCP (const TLocClustStat &LcStat2, TStr OutFNm, TStr Desc, TStr Desc1, TStr Desc2) const |
void | ImposeNCP (const TLocClustStat &LcStat2, const TLocClustStat &LcStat3, TStr OutFNm, TStr Desc, TStr Desc1, TStr Desc2, TStr Desc3) const |
void | SaveTxtInfo (const TStr &OutFNmPref, const TStr &Desc, const bool &SetMaxAt1) const |
Static Public Member Functions | |
static void | BagOfWhiskers (const PUNGraph &Graph, TFltPrV &SizePhiV, TFltPr &BestWhisk) |
static void | BagOfWhiskers2 (const PUNGraph &Graph, TFltPrV &SizePhiV) |
static void | MakeExpBins (const TFltPrV &ValV, TFltPrV &NewV) |
static void | MakeExpBins (const TFltV &ValV, TFltV &NewV) |
Public Attributes | |
TVec< TNodeSweep > | SweepsV |
THash< TInt, TFltV > | SizePhiH |
THash< TInt, TCutInfo > | BestCutH |
TFltPrV | BagOfWhiskerV |
TFltPr | BestWhisk |
TCutInfo | BestCut |
TIntSet | SizeBucketSet |
Static Public Attributes | |
static double | BinFactor = 1.01 |
static int | TakeValAt |
Private Attributes | |
TFlt | Alpha |
TFlt | SizeFrac |
TFlt | KFac |
TInt | KMin |
TInt | KMax |
TInt | Coverage |
PUNGraph | Graph |
TLocClustStat::TLocClustStat | ( | const double & | _Alpha, |
const int & | _KMin, | ||
const int & | _KMax, | ||
const double & | _KFac, | ||
const int & | _Coverage, | ||
const double & | _SizeFrac | ||
) |
void TLocClustStat::AddBagOfWhiskers | ( | ) |
Definition at line 404 of file ncp.cpp.
void TLocClustStat::AddCut | ( | const TIntV & | NIdV | ) |
Definition at line 410 of file ncp.cpp.
void TLocClustStat::AddCut | ( | const int & | ClustSz, |
const double & | Phi | ||
) |
void TLocClustStat::AddToBestCutH | ( | const PUNGraph & | Graph, |
const TIntV & | NIdV, | ||
const bool & | AddBestCond = true |
||
) |
|
static |
Definition at line 901 of file ncp.cpp.
Definition at line 977 of file ncp.cpp.
|
inline |
void TLocClustStat::Clr | ( | ) |
Definition at line 293 of file ncp.cpp.
double TLocClustStat::FindBestCut | ( | const int & | Nodes, |
const TIntSet & | TabuNIdSet, | ||
int & | BestCutId | ||
) | const |
Definition at line 469 of file ncp.cpp.
const TLocClustStat::TCutInfo & TLocClustStat::FindBestCut | ( | const int & | Nodes = -1 | ) | const |
double TLocClustStat::FindBestCut | ( | const int & | Nodes, |
TIntV & | ClustNIdV | ||
) | const |
Definition at line 454 of file ncp.cpp.
int TLocClustStat::FindBestCut | ( | const int & | Nodes, |
int & | Vol, | ||
int & | Cut, | ||
double & | Phi | ||
) | const |
Definition at line 460 of file ncp.cpp.
|
inline |
Definition at line 529 of file ncp.cpp.
void TLocClustStat::GetCurveStat | ( | TFltPrV & | MeanV, |
TFltPrV & | MedV, | ||
TFltPrV & | Dec1V, | ||
TFltPrV & | MinV, | ||
TFltPrV & | MaxV | ||
) | const |
Definition at line 490 of file ncp.cpp.
|
inline |
|
inline |
void TLocClustStat::ImposeNCP | ( | const TLocClustStat & | LcStat2, |
TStr | OutFNm, | ||
TStr | Desc, | ||
TStr | Desc1, | ||
TStr | Desc2 | ||
) | const |
Definition at line 786 of file ncp.cpp.
void TLocClustStat::ImposeNCP | ( | const TLocClustStat & | LcStat2, |
const TLocClustStat & | LcStat3, | ||
TStr | OutFNm, | ||
TStr | Desc, | ||
TStr | Desc1, | ||
TStr | Desc2, | ||
TStr | Desc3 | ||
) | const |
Definition at line 810 of file ncp.cpp.
Definition at line 1020 of file ncp.cpp.
Definition at line 1042 of file ncp.cpp.
TStr TLocClustStat::ParamStr | ( | ) | const |
Definition at line 555 of file ncp.cpp.
Definition at line 689 of file ncp.cpp.
Definition at line 747 of file ncp.cpp.
Definition at line 564 of file ncp.cpp.
Definition at line 589 of file ncp.cpp.
Definition at line 715 of file ncp.cpp.
Definition at line 607 of file ncp.cpp.
void TLocClustStat::PlotPhiDistr | ( | const int & | CmtySz, |
const TStr & | OutFNm, | ||
TStr | Desc = TStr() |
||
) | const |
Definition at line 735 of file ncp.cpp.
Definition at line 643 of file ncp.cpp.
void TLocClustStat::Run | ( | const PUNGraph & | Graph, |
const bool & | SaveAllSweeps = false , |
||
const bool & | SaveAllCond = false , |
||
const bool & | SaveBestNodesAtK = false |
||
) |
pow(1.1, cnt)
Definition at line 300 of file ncp.cpp.
void TLocClustStat::SaveTxtInfo | ( | const TStr & | OutFNmPref, |
const TStr & | Desc, | ||
const bool & | SetMaxAt1 | ||
) | const |
Definition at line 841 of file ncp.cpp.
|
inline |
TVec<TNodeSweep> TLocClustStat::SweepsV |