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.
Functions | |
void | node2vec (PWNet &InNet, double &ParamP, double &ParamQ, int &Dimensions, int &WalkLen, int &NumWalks, int &WinSize, int &Iter, bool &Verbose, TIntFltVH &EmbeddingsHV) |
Calculates node2vec feature representation for nodes and writes them into EmbeddinsHV, see http://arxiv.org/pdf/1607.00653v1.pdf. More... | |
void | node2vec (PNGraph &InNet, double &ParamP, double &ParamQ, int &Dimensions, int &WalkLen, int &NumWalks, int &WinSize, int &Iter, bool &Verbose, TIntFltVH &EmbeddingsHV) |
Version for unweighted graphs. More... | |
void | node2vec (PNEANet &InNet, double &ParamP, double &ParamQ, int &Dimensions, int &WalkLen, int &NumWalks, int &WinSize, int &Iter, bool &Verbose, TIntFltVH &EmbeddingsHV) |
Version for weighted graphs. Edges must have TFlt attribute "weight". More... | |
void node2vec | ( | PWNet & | InNet, |
double & | ParamP, | ||
double & | ParamQ, | ||
int & | Dimensions, | ||
int & | WalkLen, | ||
int & | NumWalks, | ||
int & | WinSize, | ||
int & | Iter, | ||
bool & | Verbose, | ||
TIntFltVH & | EmbeddingsHV | ||
) |
Calculates node2vec feature representation for nodes and writes them into EmbeddinsHV, see http://arxiv.org/pdf/1607.00653v1.pdf.
Definition at line 4 of file n2v.cpp.
References TVec< TVal, TSizeTy >::Add(), LearnEmbeddings(), TVec< TVal, TSizeTy >::Len(), PreprocessTransitionProbs(), TVVec< TVal, TSizeTy >::PutXY(), TVec< TVal, TSizeTy >::Shuffle(), and SimulateWalk().
Referenced by node2vec().
void node2vec | ( | PNGraph & | InNet, |
double & | ParamP, | ||
double & | ParamQ, | ||
int & | Dimensions, | ||
int & | WalkLen, | ||
int & | NumWalks, | ||
int & | WinSize, | ||
int & | Iter, | ||
bool & | Verbose, | ||
TIntFltVH & | EmbeddingsHV | ||
) |
Version for unweighted graphs.
Definition at line 41 of file n2v.cpp.
References TNGraph::BegEI(), TNGraph::EndEI(), TPt< TRec >::New(), and node2vec().
void node2vec | ( | PNEANet & | InNet, |
double & | ParamP, | ||
double & | ParamQ, | ||
int & | Dimensions, | ||
int & | WalkLen, | ||
int & | NumWalks, | ||
int & | WinSize, | ||
int & | Iter, | ||
bool & | Verbose, | ||
TIntFltVH & | EmbeddingsHV | ||
) |
Version for weighted graphs. Edges must have TFlt attribute "weight".
Definition at line 54 of file n2v.cpp.
References TPt< TRec >::New(), and node2vec().