10 long int *
set,
long int *nptr,
long int nth) noexcept
17 long int node=0, maxl,i__1;
18 long int k1,k2,
ind,nlink[1000];
19 long int i__,
k,
l, ndmap[1000];
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)]
78 if (nodes <= 0 || nodes > 1000) {
81 if (edges < 0 || edges > 499500) {
94 if (nodes == 1 || edges == 0) {
113 for (i__ = 1; i__ <= i__1; ++i__) {
118 for (i__ = 1; i__ <= i__1; ++i__) {
129 for (i__ = 1; i__ <= i__1; ++i__) {
130 if (maxl < nlink[i__ - 1]) {
131 maxl = nlink[i__ - 1];
141 m_vset[m_lvset - 1] =
node;
153 ind = m_lteit[m_tabnr - 1];
155 for (i__ = 1; i__ <= i__1; ++i__) {
160 m_wset[m_lwset - 1] =
l;
162 }
else if (
l ==
node) {
164 m_wset[m_lwset - 1] =
k;
174 k1 =
ind - m_lteit[m_tabnr - 1];
185 ind = m_lsett[m_tabnr - 1];
187 for (i__ = 1; i__ <= i__1; ++i__) {
189 m_sett[
ind - 1] = (
short int) m_vset[i__ - 1];
200 if (m_tabnr > nodes) {
204 m_lsett[m_tabnr - 1] = m_lsett[m_tabnr - 2] + m_lvset;
205 m_lteit[m_tabnr - 1] = m_lteit[m_tabnr - 2] + k1;
227 for (i__ = 1; i__ <= i__1; ++i__) {
232 for (i__ = m_lwset - k2 + 1; i__ <= i__1; ++i__) {
234 ndmap[m_wset[i__ - 1] - 1] = 1;
237 i__1 = m_lteit[m_tabnr - 1];
238 for (i__ = m_lteit[m_tabnr - 2] + 1; i__ <= i__1; ++i__) {
241 if (ndmap[
k - 1] + ndmap[
l - 1] == 0) {
256 for (i__ = 1; i__ <= i__1; ++i__) {
258 m_vset[i__ - 1] = m_wset[i__ - 1];
272 if (nodes - m_lvset < nth) {
275 trevni_(m_vset, m_lvset, &
set[1], nodes, nptr, ndmap);
281 if (nodes - m_lwset < nth) {
284 trevni_(m_wset, m_lwset, &
set[1], nodes, nptr, ndmap);
295 m_lweit = m_lteit[m_tabnr - 1] - m_lteit[m_tabnr - 2];
296 m_lwset = m_lsett[m_tabnr - 1] - m_lsett[m_tabnr - 2];
299 ind = m_lteit[m_tabnr - 1];
301 for (i__ = 1; i__ <= i__1; ++i__) {
313 ind = m_lsett[m_tabnr - 1];
315 for (i__ = 1; i__ <= i__1; ++i__) {
326 for (i__ = 1; i__ <= i__1; ++i__) {
344 long int maxv,
long int *newlng,
long int *work) noexcept
346 long int i__1, i__,
k;
361 for (i__ = 1; i__ <= i__1; ++i__) {
366 for (i__ = 1; i__ <= i__1; ++i__) {
372 for (i__ = 1; i__ <= i__1; ++i__) {
373 if (work[i__] == 0) {