Algorithm 1. Greedy Gradient Max-Cut |
-
1
Input: the graph and labeled vertex and label ;
-
2
Initialization:
-
3
Construct the initial cut by the initial labeled vertex :
-
4
Unlabeled vertex set ;
-
5
repeat
-
6
for all to
do
-
7
calculate the connectivity:
-
8
End for
-
9
Update the cut by placing the vertex xi* to the Sj* subset:
-
10
Add xi to
-
11
Delete xi from
-
12
Until
-
13
Output: the final cut and the corresponding labeled subsets Sj, j = 1, 2,…, c
|