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
|
#include <cascnetinf.h>
Public Member Functions | |
TNetInfBs () | |
TNetInfBs (bool bo, bool cgt) | |
TNetInfBs (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
void | LoadCascadesTxt (TSIn &SIn, const int &Model, const double &alpha) |
void | LoadGroundTruthTxt (TSIn &SIn) |
void | AddGroundTruth (PNGraph >) |
void | AddCasc (const TStr &CascStr, const int &Model=0, const double &alpha=1.0) |
void | AddCasc (const TCascade &Cascade) |
void | GenCascade (TCascade &C, const int &TModel, const double &window, TIntPrIntH &EdgesUsed, const double &delta, const double &std_waiting_time=0, const double &std_beta=0) |
TCascade & | GetCasc (int c) |
int | GetCascs () |
int | GetNodes () |
void | AddNodeNm (const int &NId, const TNodeInfo &Info) |
TStr | GetNodeNm (const int &NId) const |
TNodeInfo | GetNodeInfo (const int &NId) const |
bool | IsNodeNm (const int &NId) const |
void | Init () |
double | GetAllCascProb (const int &EdgeN1, const int &EdgeN2) |
TIntPr | GetBestEdge (double &CurProb, double &LastGain, bool &msort, int &attempts) |
double | GetBound (const TIntPr &Edge, double &CurProb) |
void | GreedyOpt (const int &MxEdges) |
void | SavePajek (const TStr &OutFNm) |
void | SavePlaneTextNet (const TStr &OutFNm) |
void | SaveEdgeInfo (const TStr &OutFNm) |
void | SaveObjInfo (const TStr &OutFNm) |
void | SaveGroundTruth (const TStr &OutFNm) |
void | SaveCascades (const TStr &OutFNm) |
Public Attributes | |
TVec< TCascade > | CascV |
THash< TInt, TNodeInfo > | NodeNmH |
THash< TIntPr, TEdgeInfo > | EdgeInfoH |
TVec< TPair< TFlt, TIntPr > > | EdgeGainV |
THash< TIntPr, TIntV > | CascPerEdge |
PNGraph | Graph |
PNGraph | GroundTruth |
bool | BoundOn |
bool | CompareGroundTruth |
TFltPrV | PrecisionRecall |
TIntPrFltH | Alphas |
TIntPrFltH | Betas |
Definition at line 82 of file cascnetinf.h.
|
inline |
Definition at line 97 of file cascnetinf.h.
|
inline |
Definition at line 98 of file cascnetinf.h.
|
inline |
Definition at line 99 of file cascnetinf.h.
void TNetInfBs::AddCasc | ( | const TStr & | CascStr, |
const int & | Model = 0 , |
||
const double & | alpha = 1.0 |
||
) |
Definition at line 98 of file cascnetinf.cpp.
|
inline |
Definition at line 108 of file cascnetinf.h.
|
inline |
Definition at line 105 of file cascnetinf.h.
|
inline |
Definition at line 115 of file cascnetinf.h.
void TNetInfBs::GenCascade | ( | TCascade & | C, |
const int & | TModel, | ||
const double & | window, | ||
TIntPrIntH & | EdgesUsed, | ||
const double & | delta, | ||
const double & | std_waiting_time = 0 , |
||
const double & | std_beta = 0 |
||
) |
Definition at line 113 of file cascnetinf.cpp.
double TNetInfBs::GetAllCascProb | ( | const int & | EdgeN1, |
const int & | EdgeN2 | ||
) |
Definition at line 255 of file cascnetinf.cpp.
TIntPr TNetInfBs::GetBestEdge | ( | double & | CurProb, |
double & | LastGain, | ||
bool & | msort, | ||
int & | attempts | ||
) |
Definition at line 271 of file cascnetinf.cpp.
double TNetInfBs::GetBound | ( | const TIntPr & | Edge, |
double & | CurProb | ||
) |
Definition at line 356 of file cascnetinf.cpp.
|
inline |
Definition at line 111 of file cascnetinf.h.
|
inline |
Definition at line 112 of file cascnetinf.h.
|
inline |
Definition at line 117 of file cascnetinf.h.
|
inline |
Definition at line 116 of file cascnetinf.h.
|
inline |
Definition at line 114 of file cascnetinf.h.
void TNetInfBs::GreedyOpt | ( | const int & | MxEdges | ) |
Definition at line 374 of file cascnetinf.cpp.
void TNetInfBs::Init | ( | ) |
Definition at line 216 of file cascnetinf.cpp.
|
inline |
Definition at line 118 of file cascnetinf.h.
void TNetInfBs::LoadCascadesTxt | ( | TSIn & | SIn, |
const int & | Model, | ||
const double & | alpha | ||
) |
Definition at line 62 of file cascnetinf.cpp.
void TNetInfBs::LoadGroundTruthTxt | ( | TSIn & | SIn | ) |
Definition at line 75 of file cascnetinf.cpp.
|
inline |
Definition at line 100 of file cascnetinf.h.
void TNetInfBs::SaveCascades | ( | const TStr & | OutFNm | ) |
Definition at line 524 of file cascnetinf.cpp.
void TNetInfBs::SaveEdgeInfo | ( | const TStr & | OutFNm | ) |
Definition at line 470 of file cascnetinf.cpp.
void TNetInfBs::SaveGroundTruth | ( | const TStr & | OutFNm | ) |
Definition at line 502 of file cascnetinf.cpp.
void TNetInfBs::SaveObjInfo | ( | const TStr & | OutFNm | ) |
Definition at line 485 of file cascnetinf.cpp.
void TNetInfBs::SavePajek | ( | const TStr & | OutFNm | ) |
Definition at line 439 of file cascnetinf.cpp.
void TNetInfBs::SavePlaneTextNet | ( | const TStr & | OutFNm | ) |
Definition at line 455 of file cascnetinf.cpp.
TIntPrFltH TNetInfBs::Alphas |
Definition at line 94 of file cascnetinf.h.
TIntPrFltH TNetInfBs::Betas |
Definition at line 94 of file cascnetinf.h.
bool TNetInfBs::BoundOn |
Definition at line 91 of file cascnetinf.h.
Definition at line 89 of file cascnetinf.h.
Definition at line 84 of file cascnetinf.h.
bool TNetInfBs::CompareGroundTruth |
Definition at line 91 of file cascnetinf.h.
Definition at line 86 of file cascnetinf.h.
PNGraph TNetInfBs::Graph |
Definition at line 90 of file cascnetinf.h.
PNGraph TNetInfBs::GroundTruth |
Definition at line 90 of file cascnetinf.h.
Definition at line 85 of file cascnetinf.h.
TFltPrV TNetInfBs::PrecisionRecall |
Definition at line 92 of file cascnetinf.h.