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 <mag.h>
Public Member Functions | |
TMAGNodeSimple () | |
TMAGNodeSimple (const int &_Dim, const double &_Mu=0.5) | |
TMAGNodeSimple (const TMAGNodeSimple &Simple) | |
TMAGNodeSimple & | operator= (const TMAGNodeSimple &Simple) |
void | LoadTxt (const TStr &InFNm) |
void | SaveTxt (TStrV &OutStrV) const |
void | AttrGen (TIntVV &AttrVV, const int &NNodes) |
Static Public Attributes | |
static TRnd | Rnd = TRnd(0) |
Private Attributes | |
TFlt | Mu |
TInt | Dim |
|
inline |
|
inline |
void TMAGNodeSimple::AttrGen | ( | TIntVV & | AttrVV, |
const int & | NNodes | ||
) |
Definition at line 201 of file mag.cpp.
References TVVec< TVal, TSizeTy >::At(), Dim, TVVec< TVal, TSizeTy >::Gen(), IAssert, Mu, and TVVec< TVal, TSizeTy >::PutAll().
void TMAGNodeSimple::LoadTxt | ( | const TStr & | InFNm | ) |
Definition at line 215 of file mag.cpp.
References TStr::CStr(), TStr::GetFlt(), IAssertR, and Mu.
|
inline |
void TMAGNodeSimple::SaveTxt | ( | TStrV & | OutStrV | ) | const |
Definition at line 232 of file mag.cpp.
References TVec< TVal, TSizeTy >::Add(), Dim, TStr::Fmt(), TVec< TVal, TSizeTy >::Gen(), and Mu.
|
private |
Definition at line 72 of file mag.h.
Referenced by AttrGen(), operator=(), and SaveTxt().
|
private |