SNAP Library 4.0, Developer Reference
2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Go to the source code of this file.
Typedefs | |
typedef TNodeEDatNet < TIntIntVFltVPrH, TFlt > | TWNet |
typedef TPt< TWNet > | PWNet |
Functions | |
void | PreprocessTransitionProbs (PWNet &InNet, double &ParamP, double &ParamQ, bool &verbose) |
Preprocesses transition probabilities for random walks. Has to be called once before SimulateWalk calls. More... | |
void | SimulateWalk (PWNet &InNet, int64 StartNId, int &WalkLen, TRnd &Rnd, TIntV &Walk) |
Simulates one walk and writes it into Walk vector. More... | |
int64 | PredictMemoryRequirements (PWNet &InNet) |
Definition at line 5 of file biasedrandomwalk.h.
typedef TNodeEDatNet<TIntIntVFltVPrH, TFlt> TWNet |
Definition at line 4 of file biasedrandomwalk.h.
Definition at line 108 of file biasedrandomwalk.cpp.
References TNodeEDatNet< TNodeData, TEdgeData >::TNodeI::GetOutDeg().
void PreprocessTransitionProbs | ( | PWNet & | InNet, |
double & | ParamP, | ||
double & | ParamQ, | ||
bool & | verbose | ||
) |
Preprocesses transition probabilities for random walks. Has to be called once before SimulateWalk calls.
Definition at line 86 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 120 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().