BN intervention model 1.0.0
Bayesian network intervention model
Initialise
    Generate memes (HAdv meme and Ad meme) and its initial energy;
    Assign memes to selected agents randomly based on the number of seed agents
For (1) each generation
    For (2) each iteration
        For (3) each agent
If this agent has memes, then diffuse its memes (HAdv meme and Ad meme) to its neighbouring agents and change the energy level of their memes
React and action based on its internal character and memes (HAdv meme and Ad meme)
        End (3)
        For (4) each agent
            Decay the energy rate for its memes (HAdv meme and Ad meme)
        End (4)
    End (2)
End (1)