SNAP Library 6.0, Developer Reference
2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <agmattr.h>
Static Public Member Functions | |
template<class PGraph > | |
static double | GetConductance (const PGraph &Graph, const TIntSet &CmtyS, const int Edges) |
template<class PGraph > | |
static void | GenHoldOutPairs (const PGraph &G, TVec< TIntSet > &HoldOutSet, double HOFrac, TRnd &Rnd) |
template<class PGraph > | |
static void | GetNbhCom (const PGraph &Graph, const int NID, TIntSet &NBCmtyS) |
template<class PGraph > | |
static void | GetNIdPhiV (const PGraph &G, TFltIntPrV &NIdPhiV) |
static void | LoadNIDAttrHFromNIDKH (const TIntV &NIDV, const TStr &InFNm, THash< TInt, TIntV > &NIDAttrH, const TStrHash< TInt > &NodeNameH, const TSsFmt Sep=ssfTabSep) |
static void | LoadNIDAttrHFromNIDKH (const TIntV &NIDV, const TStr &InFNm, THash< TInt, TIntV > &NIDAttrH) |
static void | DumpNIDAttrHToNIDK (const TStr &FNm, const THash< TInt, TIntSet > &NIDAttrH, const TStrHash< TInt > &FeatNameH, const TStrHash< TInt > &NodeNameH) |
static void | DumpNIDAttrHToNIDK (const TStr &FNm, const THash< TInt, TIntSet > &NIDAttrH, const TStrHash< TInt > &FeatNameH) |
static void | DumpNIDAttrHToNIDK (const TStr &FNm, const THash< TInt, TIntSet > &NIDAttrH) |
static void | DumpNIDAttrHToNIDK (const TStr &FNm, const THash< TInt, TIntV > &NIDAttrH, const TStrHash< TInt > &FeatNameH, const TStrHash< TInt > &NodeNameH) |
static void | DumpNIDAttrHToNIDK (const TStr &FNm, const THash< TInt, TIntV > &NIDAttrH, const TStrHash< TInt > &FeatNameH) |
static void | DumpNIDAttrHToNIDK (const TStr &FNm, const THash< TInt, TIntV > &NIDAttrH) |
static int | GetAttrs (const THash< TInt, TIntV > &NIDAttrH) |
static void | DumpNIDAttrHToMetis (const TStr &FNm, const THash< TInt, TIntV > &NIDAttrH, const TIntV &NIDV) |
static void | FilterLowEntropy (const THash< TInt, TIntV > &OldNIDAttrH, THash< TInt, TIntV > &NewNIDAttrH, const TIntStrH &OldNameH, TIntStrH &NewNameH, const double MinFrac=0.00001, const double MaxFrac=0.95, const int MinCnt=3) |
static void | FilterLowEntropy (const THash< TInt, TIntV > &OldNIDAttrH, THash< TInt, TIntV > &NewNIDAttrH, const double MinFrac=0.00001, const double MaxFrac=0.95, const int MinCnt=3) |
|
inlinestatic |
Definition at line 179 of file agmattr.h.
References TStr::CStr(), THash< TKey, TDat, THashFunc >::GetDat(), IAssert, THash< TKey, TDat, THashFunc >::IsKey(), and TVec< TVal, TSizeTy >::Len().
|
inlinestatic |
Definition at line 127 of file agmattr.h.
References TStr::CStr(), TStr::Fmt(), THash< TKey, TDat, THashFunc >::GetKey(), TStrHash< TDat, TStringPool, THashFunc >::GetKey(), TStrHash< TDat, TStringPool, THashFunc >::IsKeyId(), and THash< TKey, TDat, THashFunc >::Len().
Referenced by DumpNIDAttrHToNIDK().
|
inlinestatic |
Definition at line 140 of file agmattr.h.
References DumpNIDAttrHToNIDK().
|
inlinestatic |
Definition at line 144 of file agmattr.h.
References DumpNIDAttrHToNIDK().
|
inlinestatic |
Definition at line 148 of file agmattr.h.
References TStr::CStr(), TStr::Fmt(), THash< TKey, TDat, THashFunc >::GetKey(), TStrHash< TDat, TStringPool, THashFunc >::GetKey(), TStrHash< TDat, TStringPool, THashFunc >::IsKeyId(), and THash< TKey, TDat, THashFunc >::Len().
|
inlinestatic |
Definition at line 161 of file agmattr.h.
References DumpNIDAttrHToNIDK().
|
inlinestatic |
Definition at line 165 of file agmattr.h.
References DumpNIDAttrHToNIDK().
|
inlinestatic |
Definition at line 203 of file agmattr.h.
References TVec< TVal, TSizeTy >::Add(), THash< TKey, TDat, THashFunc >::AddDat(), THash< TKey, TDat, THashFunc >::Empty(), THash< TKey, TDat, THashFunc >::Gen(), THash< TKey, TDat, THashFunc >::GetDat(), THash< TKey, TDat, THashFunc >::GetKey(), THash< TKey, TDat, THashFunc >::IsKey(), THash< TKey, TDat, THashFunc >::Len(), and THash< TKey, TDat, THashFunc >::SortByDat().
Referenced by FilterLowEntropy().
|
inlinestatic |
Definition at line 241 of file agmattr.h.
References FilterLowEntropy().
|
inlinestatic |
Definition at line 38 of file agmattr.h.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Gen(), TRnd::GetUniDevInt(), gfDirected, HasGraphFlag, and TMath::Round().
Referenced by TCesna::FindComs(), and TCesna::SetHoldOut().
Definition at line 169 of file agmattr.h.
References THash< TKey, TDat, THashFunc >::Len().
|
inlinestatic |
Definition at line 10 of file agmattr.h.
References gfDirected, HasGraphFlag, THashSet< TKey, THashFunc >::IsKey(), and THashSet< TKey, THashFunc >::Len().
Referenced by GetNIdPhiV().
|
inlinestatic |
Definition at line 68 of file agmattr.h.
References THashSet< TKey, THashFunc >::AddKey(), and THashSet< TKey, THashFunc >::Gen().
|
inlinestatic |
Definition at line 77 of file agmattr.h.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Gen(), GetConductance(), and TExeTm::GetTmStr().
|
inlinestatic |
Definition at line 100 of file agmattr.h.
References TVec< TVal, TSizeTy >::Add(), THash< TKey, TDat, THashFunc >::AddDat(), THash< TKey, TDat, THashFunc >::Clr(), TStr::CStr(), TStr::Fmt(), THash< TKey, TDat, THashFunc >::Gen(), TVec< TVal, TSizeTy >::Gen(), THash< TKey, TDat, THashFunc >::GetDat(), TSsParser::GetFld(), TSsParser::GetInt(), TStr::GetInt(), TStrHash< TDat, TStringPool, THashFunc >::GetKeyId(), TSsParser::GetLineNo(), TUInt64::GetStr(), IAssertR, TVec< TVal, TSizeTy >::IsIn(), THash< TKey, TDat, THashFunc >::IsKey(), TStrHash< TDat, TStringPool, THashFunc >::IsKey(), THash< TKey, TDat, THashFunc >::Len(), TVec< TVal, TSizeTy >::Len(), TStrHash< TDat, TStringPool, THashFunc >::Len(), TSsParser::Next(), ssfTabSep, and TInt::Val.
Referenced by LoadNIDAttrHFromNIDKH().
|
inlinestatic |
Definition at line 123 of file agmattr.h.
References LoadNIDAttrHFromNIDKH().