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
|
Statistics of a Graph Snapshot. More...
#include <gstat.h>
Classes | |
class | TCmpByVal |
Public Types | |
typedef TQuad< TStr, TStr, TStr, TGpScaleTy > | TPlotInfo |
Public Member Functions | |
TGStat (const TSecTm &GraphTm=TSecTm(), const TStr &GraphName=TStr()) | |
TGStat (const PNGraph &Graph, const TSecTm &Time, TFSet StatFSet=TFSet(), const TStr &GraphName=TStr()) | |
TGStat (const PUNGraph &Graph, const TSecTm &Time, TFSet StatFSet=TFSet(), const TStr &GraphName=TStr()) | |
TGStat (const PNEGraph &Graph, const TSecTm &Time, TFSet StatFSet=TFSet(), const TStr &GraphName=TStr()) | |
template<class PGraph > | |
TGStat (const PGraph &Graph, const TSecTm &Time, TFSet StatFSet=TFSet(), const TStr &GraphName=TStr()) | |
TGStat (const TGStat &GStat) | |
TGStat (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
template<class PGraph > | |
PGStat | New (const PGraph &Graph, const TSecTm &Time, TFSet StatFSet=TFSet(), const TStr &GraphNm=TStr()) |
PGStat | Clone () const |
TGStat & | operator= (const TGStat &GStat) |
bool | operator== (const TGStat &GStat) const |
bool | operator< (const TGStat &GStat) const |
int | GetYear () const |
int | GetMonth () const |
int | GetDay () const |
int | GetHour () const |
int | GetMin () const |
int | GetSec () const |
TStr | GetTmStr () const |
void | SetTm (const TSecTm &GraphTm) |
TStr | GetNm () const |
void | SetNm (const TStr &GraphName) |
int | GetTime (const TTmUnit &TimeUnit) const |
int | GetVals () const |
bool | HasVal (const TGStatVal &StatVal) const |
double | GetVal (const TGStatVal &StatVal) const |
void | SetVal (const TGStatVal &StatVal, const double &Val) |
int | GetDistrs () const |
bool | HasDistr (const TGStatDistr &Distr) const |
const TFltPrV & | GetDistr (const TGStatDistr &Distr) const |
void | GetDistr (const TGStatDistr &Distr, TFltPrV &FltPrV) const |
void | SetDistr (const TGStatDistr &Distr, const TFltPrV &FltPrV) |
int | GetNodes () const |
int | GetEdges () const |
void | TakeStat (const PNGraph &Graph, const TSecTm &Time, TFSet StatFSet, const TStr &GraphName) |
void | TakeStat (const PUNGraph &Graph, const TSecTm &Time, TFSet StatFSet, const TStr &GraphName) |
template<class PGraph > | |
void | TakeStat (const PGraph &Graph, const TSecTm &Time, TFSet StatFSet, const TStr &GraphName) |
template<class PGraph > | |
void | TakeBasicStat (const PGraph &Graph, const bool &IsMxWcc=false) |
template<class PGraph > | |
void | TakeBasicStat (const PGraph &Graph, TFSet FSet, const bool &IsMxWcc=false) |
template<class PGraph > | |
void | TakeSccStat (const PGraph &Graph, TFSet StatFSet) |
template<class PGraph > | |
void | TakeBccStat (const PGraph &Graph, TFSet StatFSet) |
template<class PGraph > | |
void | TakeDegDistr (const PGraph &Graph) |
template<class PGraph > | |
void | TakeDegDistr (const PGraph &Graph, TFSet StatFSet) |
template<class PGraph > | |
void | TakeDiam (const PGraph &Graph, const bool &IsMxWcc=false) |
template<class PGraph > | |
void | TakeDiam (const PGraph &Graph, TFSet StatFSet, const bool &IsMxWcc=false) |
template<class PGraph > | |
void | TakeConnComp (const PGraph &Graph) |
template<class PGraph > | |
void | TakeConnComp (const PGraph &Graph, TFSet StatFSet) |
template<class PGraph > | |
void | TakeClustCf (const PGraph &Graph, const int &SampleNodes=-1) |
template<class PGraph > | |
void | TakeTriadPart (const PGraph &Graph) |
void | TakeSpectral (const PNGraph &Graph, const int _TakeSngVals=-1) |
void | TakeSpectral (const PNGraph &Graph, TFSet StatFSet, int _TakeSngVals=-1) |
void | Plot (const TGStatDistr &Distr, const TStr &FNmPref, TStr Desc=TStr(), bool PowerFit=false) const |
void | Plot (const TFSet &FSet, const TStr &FNmPref, const TStr &Desc=TStr(), bool PowerFit=false) const |
void | PlotAll (const TStr &FNmPref, TStr Desc=TStr(), bool PowerFit=false) const |
void | DumpValStat () |
void | AvgGStat (const PGStatVec &GStatVec, const bool &ClipAt1=false) |
void | AvgGStat (const TGStatV &GStatV, const bool &ClipAt1=false) |
Static Public Member Functions | |
static PGStat | New (const TSecTm &Time=TSecTm(), const TStr &GraphName=TStr()) |
static PGStat | New (const PNGraph &Graph, const TSecTm &Time, TFSet StatFSet=TFSet(), const TStr &GraphNm=TStr()) |
static PGStat | New (const PUNGraph &Graph, const TSecTm &Time, TFSet StatFSet=TFSet(), const TStr &GraphNm=TStr()) |
static PGStat | New (const PNEGraph &Graph, const TSecTm &Time, TFSet StatFSet=TFSet(), const TStr &GraphNm=TStr()) |
static PGStat | Load (TSIn &SIn) |
static TStr | GetDistrStr (const TGStatDistr &Distr) |
static TStr | GetValStr (const TGStatVal &Val) |
static TPlotInfo | GetPlotInfo (const TGStatVal &Val) |
static TPlotInfo | GetPlotInfo (const TGStatDistr &Distr) |
static TFSet | NoStat () |
static TFSet | BasicStat () |
static TFSet | DegDStat () |
static TFSet | NoDiamStat () |
static TFSet | NoDistrStat () |
static TFSet | NoSvdStat () |
static TFSet | AllStat () |
Public Attributes | |
TSecTm | Time |
TStr | GraphNm |
TIntFltH | ValStatH |
THash< TInt, TFltPrV > | DistrStatH |
Static Public Attributes | |
static int | NDiamRuns = 10 |
static int | TakeSngVals = 100 |
Private Attributes | |
TCRef | CRef |
Static Private Attributes | |
static const TFltPrV | EmptyV = TFltPrV() |
Friends | |
class | TCmpByVal |
class | TPt< TGStat > |
typedef TQuad<TStr, TStr, TStr, TGpScaleTy> TGStat::TPlotInfo |
TGStat::TGStat | ( | const PNGraph & | Graph, |
const TSecTm & | Time, | ||
TFSet | StatFSet = TFSet() , |
||
const TStr & | GraphName = TStr() |
||
) |
Definition at line 25 of file gstat.cpp.
TGStat::TGStat | ( | const PUNGraph & | Graph, |
const TSecTm & | Time, | ||
TFSet | StatFSet = TFSet() , |
||
const TStr & | GraphName = TStr() |
||
) |
Definition at line 29 of file gstat.cpp.
TGStat::TGStat | ( | const PNEGraph & | Graph, |
const TSecTm & | Time, | ||
TFSet | StatFSet = TFSet() , |
||
const TStr & | GraphName = TStr() |
||
) |
Definition at line 33 of file gstat.cpp.
|
inline |
Definition at line 64 of file gstat.h.
|
static |
Definition at line 401 of file gstat.cpp.
void TGStat::AvgGStat | ( | const PGStatVec & | GStatVec, |
const bool & | ClipAt1 = false |
||
) |
Definition at line 243 of file gstat.cpp.
void TGStat::AvgGStat | ( | const TGStatV & | GStatV, |
const bool & | ClipAt1 = false |
||
) |
Definition at line 247 of file gstat.cpp.
|
static |
|
inline |
Definition at line 80 of file gstat.h.
|
static |
void TGStat::DumpValStat | ( | ) |
const TFltPrV & TGStat::GetDistr | ( | const TGStatDistr & | Distr | ) | const |
void TGStat::GetDistr | ( | const TGStatDistr & | Distr, |
TFltPrV & | FltPrV | ||
) | const |
|
static |
Definition at line 289 of file gstat.cpp.
|
inline |
Definition at line 108 of file gstat.h.
|
inline |
Definition at line 107 of file gstat.h.
|
static |
|
static |
Definition at line 358 of file gstat.cpp.
double TGStat::GetVal | ( | const TGStatVal & | StatVal | ) | const |
Definition at line 81 of file gstat.cpp.
Definition at line 307 of file gstat.cpp.
|
inline |
bool TGStat::HasVal | ( | const TGStatVal & | StatVal | ) | const |
Definition at line 75 of file gstat.cpp.
Definition at line 79 of file gstat.h.
|
inlinestatic |
Definition at line 69 of file gstat.h.
|
inlinestatic |
Definition at line 71 of file gstat.h.
|
inlinestatic |
Definition at line 73 of file gstat.h.
|
inlinestatic |
Definition at line 75 of file gstat.h.
|
inline |
Definition at line 77 of file gstat.h.
|
static |
Definition at line 388 of file gstat.cpp.
|
static |
|
static |
|
static |
Definition at line 396 of file gstat.cpp.
bool TGStat::operator< | ( | const TGStat & | GStat | ) | const |
Definition at line 61 of file gstat.cpp.
void TGStat::Plot | ( | const TGStatDistr & | Distr, |
const TStr & | FNmPref, | ||
TStr | Desc = TStr() , |
||
bool | PowerFit = false |
||
) | const |
Definition at line 204 of file gstat.cpp.
void TGStat::Plot | ( | const TFSet & | FSet, |
const TStr & | FNmPref, | ||
const TStr & | Desc = TStr() , |
||
bool | PowerFit = false |
||
) | const |
Definition at line 220 of file gstat.cpp.
Definition at line 228 of file gstat.cpp.
void TGStat::SetDistr | ( | const TGStatDistr & | Distr, |
const TFltPrV & | FltPrV | ||
) |
void TGStat::SetVal | ( | const TGStatVal & | StatVal, |
const double & | Val | ||
) |
void TGStat::TakeBasicStat | ( | const PGraph & | Graph, |
const bool & | IsMxWcc = false |
||
) |
Definition at line 257 of file gstat.h.
void TGStat::TakeBasicStat | ( | const PGraph & | Graph, |
TFSet | FSet, | ||
const bool & | IsMxWcc = false |
||
) |
Definition at line 262 of file gstat.h.
void TGStat::TakeBccStat | ( | const PGraph & | Graph, |
TFSet | StatFSet | ||
) |
Definition at line 434 of file gstat.h.
void TGStat::TakeClustCf | ( | const PGraph & | Graph, |
const int & | SampleNodes = -1 |
||
) |
Definition at line 447 of file gstat.h.
void TGStat::TakeConnComp | ( | const PGraph & | Graph | ) |
void TGStat::TakeConnComp | ( | const PGraph & | Graph, |
TFSet | StatFSet | ||
) |
Definition at line 397 of file gstat.h.
void TGStat::TakeDegDistr | ( | const PGraph & | Graph | ) |
void TGStat::TakeDegDistr | ( | const PGraph & | Graph, |
TFSet | StatFSet | ||
) |
Definition at line 306 of file gstat.h.
void TGStat::TakeDiam | ( | const PGraph & | Graph, |
const bool & | IsMxWcc = false |
||
) |
Definition at line 326 of file gstat.h.
void TGStat::TakeDiam | ( | const PGraph & | Graph, |
TFSet | StatFSet, | ||
const bool & | IsMxWcc = false |
||
) |
Definition at line 332 of file gstat.h.
void TGStat::TakeSccStat | ( | const PGraph & | Graph, |
TFSet | StatFSet | ||
) |
Definition at line 421 of file gstat.h.
void TGStat::TakeSpectral | ( | const PNGraph & | Graph, |
const int | _TakeSngVals = -1 |
||
) |
Definition at line 169 of file gstat.cpp.
Definition at line 173 of file gstat.cpp.
void TGStat::TakeStat | ( | const PNGraph & | Graph, |
const TSecTm & | Time, | ||
TFSet | StatFSet, | ||
const TStr & | GraphName | ||
) |
Definition at line 105 of file gstat.cpp.
void TGStat::TakeStat | ( | const PUNGraph & | Graph, |
const TSecTm & | Time, | ||
TFSet | StatFSet, | ||
const TStr & | GraphName | ||
) |
Definition at line 137 of file gstat.cpp.
void TGStat::TakeStat | ( | const PGraph & | Graph, |
const TSecTm & | Time, | ||
TFSet | StatFSet, | ||
const TStr & | GraphName | ||
) |
Definition at line 219 of file gstat.h.
void TGStat::TakeTriadPart | ( | const PGraph & | Graph | ) |
Definition at line 460 of file gstat.h.