|
Algorithm A1 Program Flow: Growth of the graph by attaching simplexes with defects |
-
1:
INPUT:, , , p
-
2:
initialise graph as a simplex of size n taken from the distribution , which is defined in the range
-
3:
initialise set of defected edges as an empty set
-
4:
while
do
-
5:
select new simplex size from the distribution
-
6:
randomly select the docking site as a simplex with folowing constraints: (1) order ; (2) is not in set of defected edges ; and (3) does not contain any edge from
-
7:
form a new simplex by attaching new nodes to the nodes of the docking simplex
-
8:
if random number <p
then
-
9:
if
contains at least one of defected nodes (ends of defected edge) then
-
10:
Chose randomly a defected node a from and randomly b as one of new nodes
-
11:
Add edge to
-
12:
else
-
13:
Chose randomly one of newly added edges and add to
-
14:
end if
-
15:
end if
-
16:
sampling the data of interest;
-
17:
end while
-
18:
END
|