Skip to main content
. 2022 Feb 13;22(4):1430. doi: 10.3390/s22041430
Algorithm 1 Structural Intervention Algorithm
Given a variable set V with n variables
Initialize the edge set: E={ }
1.  Influence Discovery step:
      for each vi in V
      intervene on vi
        if the state of vj changes, where ji,
           add edge vivj to E
     for each directed path vlvl+1vl+2vm in E
        if there are any directed edges between vlvl+2, 
            Goto 2
2.  Parent Confirmation step:
     Simultaneously intervene on vl and vl+1 by fixing vl+1 and perturbing vl
     if the state of vl+2 does not change
          remove edge vlvl+2
return G=(V,E)