|
Algorithm 1 DBR |
Input: Predecessor , successors , complex network G, , , forward business relationships , reverse business relationships
Output: The between the source node and the target node.
-
1:
-
2:
-
3:
whiledo
-
4:
if
then
-
5:
←,
-
6:
for v∈ do
-
7:
for w ∈ do
-
8:
if w∉ then
-
9:
k←
-
10:
if () or (
) or (
) then
-
11:
-
12:
← v
-
13:
← k
-
14:
else
-
15:
-
16:
end if
-
17:
end if
-
18:
if then
-
19:
if () or (
) or (
) then
-
20:
-
21:
end if
-
22:
end if
-
23:
end for
-
24:
end for
-
25:
else
-
26:
,
-
27:
for do
-
28:
for do
-
29:
if then
-
30:
-
31:
if () or (
) or (
) then
-
32:
-
33:
-
34:
-
35:
else
-
36:
-
37:
end if
-
38:
end if
-
39:
if then
-
40:
if () or (
) or (
) then
-
41:
-
42:
end if
-
43:
end if
-
44:
end for
-
45:
end for
-
46:
end if
-
47:
end while
|