Defined in File Node2Vec.hpp
public NetworKit::Algorithm
(Class Algorithm)
Feature extraction by node2vec algorithm.
Public Functions
Node2Vec learns embeddings for nodes in a graph by optimizing a neighborhood preserving objective. In order to achieve this, biased random walks are initiated for every node and the result is of probabilistic nature. Several input parameters control the specific behavior of the random walks. Amongst others Node2Vec is able to produce embeddings for visualization (D=2 or D=3) and machine learning (D=128 [default]). Both directed and undirected graphs withouth isolated nodes are supported.
This implementation is an adaption of the original code from snap: https://github.com/snap-stanford/snap
G – The graph.
P – Walk Return parameter (stay local).
Q – Walk In-Out parameter (drift away).
L – Walk length.
N – Walk count.
D – Dimension of embedding vectors.
This method computes all node embeddings.
This method returns a vector that contains feature vectors for all nodes