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 | node2vec (PWNet &InNet, const double &ParamP, const double &ParamQ, const int &Dimensions, const int &WalkLen, const int &NumWalks, const int &WinSize, const int &Iter, const bool &Verbose, const bool &OutputWalks, TVVec< TInt, int64 > &WalksVV, TIntFltVH &EmbeddingsHV) |
Calculates node2vec feature representation for nodes and writes them into EmbeddinsHV, see http://arxiv.org/pdf/1607.00653v1.pdf. More... | |
void | node2vec (PWNet &InNet, const double &ParamP, const double &ParamQ, const int &Dimensions, const int &WalkLen, const int &NumWalks, const int &WinSize, const int &Iter, const bool &Verbose, TIntFltVH &EmbeddingsHV) |
Version without walk output flag. For backward compatibility. More... | |
void | node2vec (const PNGraph &InNet, const double &ParamP, const double &ParamQ, const int &Dimensions, const int &WalkLen, const int &NumWalks, const int &WinSize, const int &Iter, const bool &Verbose, const bool &OutputWalks, TVVec< TInt, int64 > &WalksVV, TIntFltVH &EmbeddingsHV) |
Version for unweighted graphs. More... | |
void | node2vec (const PNGraph &InNet, const double &ParamP, const double &ParamQ, const int &Dimensions, const int &WalkLen, const int &NumWalks, const int &WinSize, const int &Iter, const bool &Verbose, TIntFltVH &EmbeddingsHV) |
Version for unweighted graphs without walk output flag. For backward compatibility. More... | |
void | node2vec (const PNEANet &InNet, const double &ParamP, const double &ParamQ, const int &Dimensions, const int &WalkLen, const int &NumWalks, const int &WinSize, const int &Iter, const bool &Verbose, const bool &OutputWalks, TVVec< TInt, int64 > &WalksVV, TIntFltVH &EmbeddingsHV) |
Version for weighted graphs. Edges must have TFlt attribute "weight". More... | |
void | node2vec (const PNEANet &InNet, const double &ParamP, const double &ParamQ, const int &Dimensions, const int &WalkLen, const int &NumWalks, const int &WinSize, const int &Iter, const bool &Verbose, TIntFltVH &EmbeddingsHV) |
Version for weighted graphs. Edges must have TFlt attribute "weight". No walk output flag. For backward compatibility. More... | |
void node2vec | ( | PWNet & | InNet, |
const double & | ParamP, | ||
const double & | ParamQ, | ||
const int & | Dimensions, | ||
const int & | WalkLen, | ||
const int & | NumWalks, | ||
const int & | WinSize, | ||
const int & | Iter, | ||
const bool & | Verbose, | ||
const bool & | OutputWalks, | ||
TVVec< TInt, int64 > & | WalksVV, | ||
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 | ( | PWNet & | InNet, |
const double & | ParamP, | ||
const double & | ParamQ, | ||
const int & | Dimensions, | ||
const int & | WalkLen, | ||
const int & | NumWalks, | ||
const int & | WinSize, | ||
const int & | Iter, | ||
const bool & | Verbose, | ||
TIntFltVH & | EmbeddingsHV | ||
) |
Version without walk output flag. For backward compatibility.
Definition at line 45 of file n2v.cpp.
References node2vec().
void node2vec | ( | const PNGraph & | InNet, |
const double & | ParamP, | ||
const double & | ParamQ, | ||
const int & | Dimensions, | ||
const int & | WalkLen, | ||
const int & | NumWalks, | ||
const int & | WinSize, | ||
const int & | Iter, | ||
const bool & | Verbose, | ||
const bool & | OutputWalks, | ||
TVVec< TInt, int64 > & | WalksVV, | ||
TIntFltVH & | EmbeddingsHV | ||
) |
Version for unweighted graphs.
Definition at line 56 of file n2v.cpp.
References TPt< TRec >::New(), and node2vec().
void node2vec | ( | const PNGraph & | InNet, |
const double & | ParamP, | ||
const double & | ParamQ, | ||
const int & | Dimensions, | ||
const int & | WalkLen, | ||
const int & | NumWalks, | ||
const int & | WinSize, | ||
const int & | Iter, | ||
const bool & | Verbose, | ||
TIntFltVH & | EmbeddingsHV | ||
) |
Version for unweighted graphs without walk output flag. For backward compatibility.
Definition at line 71 of file n2v.cpp.
References node2vec().
void node2vec | ( | const PNEANet & | InNet, |
const double & | ParamP, | ||
const double & | ParamQ, | ||
const int & | Dimensions, | ||
const int & | WalkLen, | ||
const int & | NumWalks, | ||
const int & | WinSize, | ||
const int & | Iter, | ||
const bool & | Verbose, | ||
const bool & | OutputWalks, | ||
TVVec< TInt, int64 > & | WalksVV, | ||
TIntFltVH & | EmbeddingsHV | ||
) |
Version for weighted graphs. Edges must have TFlt attribute "weight".
Definition at line 81 of file n2v.cpp.
References TPt< TRec >::New(), and node2vec().
void node2vec | ( | const PNEANet & | InNet, |
const double & | ParamP, | ||
const double & | ParamQ, | ||
const int & | Dimensions, | ||
const int & | WalkLen, | ||
const int & | NumWalks, | ||
const int & | WinSize, | ||
const int & | Iter, | ||
const bool & | Verbose, | ||
TIntFltVH & | EmbeddingsHV | ||
) |
Version for weighted graphs. Edges must have TFlt attribute "weight". No walk output flag. For backward compatibility.
Definition at line 96 of file n2v.cpp.
References node2vec().