Skip to main content
. 2024 Dec 16;24(24):8026. doi: 10.3390/s24248026
Algorithm 1 MSS (Markov seed selection) Algorithm
  • Input: 

    Parameters (W1,W2), size of seed set K and target network G.

  • Output: 

    Seed set V^, Φ(V^) and a set of Markov decision processes {(St,at,rt,St+1)}K.

  •    1:

    Initialization: set t←1 and St← [ ];

  •    2:

    Computing degree di and positive out-degree pi of each node vi in G, then set Dt←[di]N and Pt←[pi]N;

  •    3:

    Set DQN ←(W1,W2);

  •    4:

    while t≤K do

  •    5:

       Compute Q(St,a) based on Equation (9);

  •    6:

       Compute at based on Equation (11), which selects the node with the highest Q-value and then obtain St+1;

  •    7:

       Update Ht, Dt, and Pt according to at and obtain Ht+1, Dt+1, and Pt+1;

  •    8:

       Compute rt=Φ(Vt)−Φ(Vt+1);

  •    9:

       t←t+1;

  •  10:

    end while

  •  11:

    B←{(St,at,rt,St+1)}K, V^←VK;

  •  12:

    return V^,Φ(V^);