Case EDGES=0 or NODES=1 (graph is fully compatible) is handled correctly.
So we try to comment selection and use first available NODE. This lead s
Do not returt set complement; do not return solutions shorter than NTH.
11{
12
13
14
15
16
17 long int node=0, maxl,i__1;
18 long int k1,k2,
ind,nlink[1000];
19 long int i__,
k,
l, ndmap[1000];
20
21
22
23
24#define teit_ref(a_1,a_2) m_teit[(a_2)*2 + (a_1) - 3]
25#define weit_ref(a_1,a_2) weit[(a_2)*2 + (a_1)]
26
27
28
29
30
31
32
33
34
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74 weit -= 3;
76
77
78 if (nodes <= 0 || nodes > 1000) {
79 goto L999;
80 }
81 if (edges < 0 || edges > 499500) {
82 goto L999;
83 }
84 if (nodes < nth) {
85 goto L999;
86 }
87 if (*nptr > 0) {
89 case 1: goto L10;
90 case 2: goto L20;
91 case 3: goto L999;
92 default:
93
94
95 return 4;
96 }
97 }else{
99 }
100 if (nodes == 1 || edges == 0) {
101 goto L900;
102 }
109
110
111
114
115
116
117L888:
118 i__1 = nodes;
119 for (i__ = 1; i__ <= i__1; ++i__) {
120
121 nlink[i__ - 1] = 0;
122 }
124 for (i__ = 1; i__ <= i__1; ++i__) {
129
130 }
131
132
133 maxl = 0;
134 i__1 = nodes;
135 for (i__ = 1; i__ <= i__1; ++i__) {
136 if (maxl < nlink[i__ - 1]) {
137 maxl = nlink[i__ - 1];
138 node = i__;
139 }
140
141
142 }
143
144
145
148
149
150
151
152
153
154
155
156
157
158
161 for (i__ = 1; i__ <= i__1; ++i__) {
164 if (k == node) {
167
168 } else if (l == node) {
171
172 } else {
176
177 }
178
179 }
182
183 if (ind > 499500) {
184 return 1;
185
186 }
187 if (k1 == 0) {
188 goto L300;
189 }
190
193 for (i__ = 1; i__ <= i__1; ++i__) {
196
197 }
198 if (ind > 499500) {
199 return 2;
200
201 }
202
203
204
207 return 3;
208
209 }
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232 i__1 = nodes;
233 for (i__ = 1; i__ <= i__1; ++i__) {
234
235 ndmap[i__ - 1] = 0;
236 }
238 for (i__ =
m_lwset - k2 + 1; i__ <= i__1; ++i__) {
239
240 ndmap[
m_wset[i__ - 1] - 1] = 1;
241 }
242 k1 = 0;
247 if (ndmap[k - 1] + ndmap[l - 1] == 0) {
248 ++k1;
251
252
253 }
254
255 }
256
257 if (k1 == 0) {
258 goto L10;
259 }
260
262 for (i__ = 1; i__ <= i__1; ++i__) {
263
265 }
268 goto L888;
269
270
271
272
273
274
276
277L300:
279 goto L10;
280 }
282
284 return 0;
285
286L10:
288 goto L20;
289 }
291
293 return 0;
294
295
296
297L20:
299 goto L999;
300 }
307 for (i__ = 1; i__ <= i__1; ++i__) {
311
312
313
314
315
316
317
318 }
321 for (i__ = 1; i__ <= i__1; ++i__) {
326
327 }
328 goto L888;
329
330L900:
331 i__1 = nodes;
332 for (i__ = 1; i__ <= i__1; ++i__) {
333
335 }
336 *nptr = nodes;
338 return 0;
339
340L999:
341 *nptr = 0;
342 return 0;
343}
#define teit_ref(a_1, a_2)
#define weit_ref(a_1, a_2)
static void trevni_(long int *from, long int length, long int *to, long int maxv, long int *newlng, long int *work) noexcept
l
Printing final latex table to .tex output file.
void set(const ELT &e, const element_type &x) const
Set the variable for one element.