|
Algorithm 1. Subgraph Extraction |
-
1:
Input: ;
-
2:
Output: ,
-
3:
= =
-
4:
i = 0;
-
5:
for in
do
-
6:
-
7:
if
then
-
8:
procedure
Increment(i)
-
9:
i = i + 1;
-
10:
if
then
-
11:
return
i;
-
12:
else
-
13:
Increment(i);
-
14:
procedure
Recursion(i)
-
15:
if
then
-
16:
-
17:
procedure
Extract(i)
-
18:
for
j in
do
-
19:
if
then
-
20:
-
21:
=
-
22:
=
-
23:
for
do
-
24:
if
then
-
25:
for
l in
do
-
26:
if
then
-
27:
-
28:
if
then
-
29:
Extract
;
-
30:
else
-
31:
return
;
-
32:
else
-
33:
=
-
34:
i = i + 1;
-
35:
Recursion;
-
36:
else
-
37:
break;
|