| 
    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 
   | 
 

Go to the source code of this file.
Functions | |
| void | GetNodeAlias (TFltV &PTblV, TIntVFltVPr &NTTable) | 
| int64 | AliasDrawInt (TIntVFltVPr &NTTable, TRnd &Rnd) | 
| void | PreprocessNode (PWNet &InNet, const double &ParamP, const double &ParamQ, TWNet::TNodeI NI, int64 &NCnt, const bool &Verbose) | 
| void | PreprocessTransitionProbs (PWNet &InNet, const double &ParamP, const double &ParamQ, const bool &Verbose) | 
| Preprocesses transition probabilities for random walks. Has to be called once before SimulateWalk calls.  More... | |
| int64 | PredictMemoryRequirements (PWNet &InNet) | 
| void | SimulateWalk (PWNet &InNet, int64 StartNId, const int &WalkLen, TRnd &Rnd, TIntV &WalkV) | 
| Simulates one walk and writes it into Walk vector.  More... | |
| int64 AliasDrawInt | ( | TIntVFltVPr & | NTTable, | 
| TRnd & | Rnd | ||
| ) | 
Definition at line 51 of file biasedrandomwalk.cpp.
References TRnd::GetUniDev(), TPair< TVal1, TVal2 >::GetVal1(), and TPair< TVal1, TVal2 >::GetVal2().
Referenced by SimulateWalk().


| void GetNodeAlias | ( | TFltV & | PTblV, | 
| TIntVFltVPr & | NTTable | ||
| ) | 
Definition at line 6 of file biasedrandomwalk.cpp.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::DelLast(), TVec< TVal, TSizeTy >::Last(), TVec< TVal, TSizeTy >::Len(), TPair< TVal1, TVal2 >::Val1, and TPair< TVal1, TVal2 >::Val2.
Referenced by PreprocessNode().


Definition at line 119 of file biasedrandomwalk.cpp.
References TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetOutDeg().

| void PreprocessNode | ( | PWNet & | InNet, | 
| const double & | ParamP, | ||
| const double & | ParamQ, | ||
| TWNet::TNodeI | NI, | ||
| int64 & | NCnt, | ||
| const bool & | Verbose | ||
| ) | 
Definition at line 58 of file biasedrandomwalk.cpp.
References TVec< TVal, TSizeTy >::Add(), THash< TKey, TDat, THashFunc >::AddKey(), TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetDat(), TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetId(), TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetNbrNId(), GetNodeAlias(), TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetOutDeg(), and THash< TKey, TDat, THashFunc >::IsKey().
Referenced by PreprocessTransitionProbs().


| void PreprocessTransitionProbs | ( | PWNet & | InNet, | 
| const double & | ParamP, | ||
| const double & | ParamQ, | ||
| const bool & | Verbose | ||
| ) | 
Preprocesses transition probabilities for random walks. Has to be called once before SimulateWalk calls.
Definition at line 97 of file biasedrandomwalk.cpp.
References TVec< TVal, TSizeTy >::Add(), TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetDat(), TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetOutDeg(), TVec< TVal, TSizeTy >::Len(), and PreprocessNode().
Referenced by node2vec().


Simulates one walk and writes it into Walk vector.
Definition at line 131 of file biasedrandomwalk.cpp.
References TVec< TVal, TSizeTy >::Add(), AliasDrawInt(), TRnd::GetUniDevInt(), TVec< TVal, TSizeTy >::Last(), TVec< TVal, TSizeTy >::LastLast(), and TVec< TVal, TSizeTy >::Len().
Referenced by node2vec().

