Skip to main content
. 2021 Apr 27;13(9):2111. doi: 10.3390/cancers13092111
Algorithm 1 DeepWalk (G,w,d,γ,)
Input: graph G(V,E)
  windows size w
  representation size d
  epoch γ
  step length t
Output: matrix of nodes representation ψ|V|×d
1: Initialization: ψ
2: Build a binary Tree T from V
3: for i=0 to μ do
4:  V= Shuffle(V)
5: for each viV do
6:   Mvi=RandomWalk(G,vi,t)
7:   SkipGram(ψ,Mvi,w)
8: end for
9: end for