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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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, double& ParamP, double& ParamQ, bool& verbose);
9 
11 void SimulateWalk(PWNet& InNet, int64 StartNId, 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)
void PreprocessTransitionProbs(PWNet &InNet, double &ParamP, double &ParamQ, bool &verbose)
Preprocesses transition probabilities for random walks. Has to be called once before SimulateWalk cal...
void SimulateWalk(PWNet &InNet, int64 StartNId, int &WalkLen, TRnd &Rnd, TIntV &Walk)
Simulates one walk and writes it into Walk vector.
Node Edge Network (directed graph, TNGraph with data on nodes and edges).
Definition: network.h:491
TPt< TWNet > PWNet
long long int64
Definition: bd.h:27
Definition: bd.h:196