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
biasedrandomwalk.h
Go to the documentation of this file.
1 #ifndef RAND_WALK_H
2 #define RAND_WALK_H
3 
5 typedef TPt<TWNet> PWNet;
6 
8 void PreprocessTransitionProbs(PWNet& InNet, const double& ParamP, const double& ParamQ, const bool& verbose);
9 
11 void SimulateWalk(PWNet& InNet, int64 StartNId, const int& WalkLen, TRnd& Rnd, TIntV& Walk);
12 
13 //Predicts approximate memory required for preprocessing the graph
15 
16 #endif //RAND_WALK_H
TNodeEDatNet< TIntIntVFltVPrH, TFlt > TWNet
Definition: dt.h:11
int64 PredictMemoryRequirements(PWNet &InNet)
Node Edge Network (directed graph, TNGraph with data on nodes and edges).
Definition: network.h:491
TPt< TWNet > PWNet
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 cal...
long long int64
Definition: bd.h:27
Definition: bd.h:196
void SimulateWalk(PWNet &InNet, int64 StartNId, const int &WalkLen, TRnd &Rnd, TIntV &Walk)
Simulates one walk and writes it into Walk vector.