document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. def evaluar(k, seleccion, adj):
  2.     total = 0 #cantidad de vertices en la seleccion                                              
  3.     for i in seleccion:
  4.         for j in seleccion:
  5.             if  i == j and adj[i, j] == 0:
  6.                 total += 1
  7.  
  8.     #print "TAMANO: %d" % total                                                                  
  9.     #print "valor del clique k: %d" % k                                                          
  10.     return ((total >= k), total)
');