|
Algorithm 4: MTCLM_COLOUR (G, ). |
-
Input:
graph G,
-
Output:
X,.
-
1:
;
-
2:
;
-
3:
computer the optimal solution to the LP: ,;
-
4:
;
-
5:
;
-
6:
build auxiliary graph ;
-
7:
obtain a legal colouring of greedily;
-
8:
for
do
-
9:
calculate the number of targets covered by each colour k;
-
10:
end for
-
11:
obtain colour q with the maximum number of covered targets;
-
12:
obtain the edges coloured by q in graph ;
-
13:
for
do
-
14:
if is the duplication nodes of j in graph G
then
-
15:
set ;
-
16:
;
-
17:
end if
-
18:
end for
-
19:
return;
|