You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
result=degree[sorted_idx[0]] +degree[sorted_idx[1]] -1# at least sum(top2 values) - 1
27
+
foriinxrange(m-1): # only need to check pairs of top2 values
28
+
forjinxrange(i+1, m):
29
+
ifdegree[sorted_idx[i]]+degree[sorted_idx[j]]-int(sorted_idx[i] inadjandsorted_idx[j] inadj[sorted_idx[i]]) >result: # if equal to ideal sum of top2 values, break
0 commit comments