def eigenvalues(creation_sequence):
 degseq = degree_sequence(creation_sequence)
 degseq.sort()
 eiglist = []
 eig = 0
 row = len(degseq)
 bigdeg = degseq.pop()
 while row:
  if (bigdeg < row):
   eiglist.append(eig)
   row -= 1
  else:
   eig += 1
   if degseq:
    bigdeg = degseq.pop()
   else:
    bigdeg = 0
 return eiglist

def eigenvalues ( creation_sequence ) : degseq = degree_sequence ( creation_sequence ) degseq . sort ( ) eiglist = [ ] eig = 0 row = len ( degseq ) bigdeg = degseq . pop ( ) while row : if ( bigdeg < row ) : eiglist . append ( eig ) row -= 1 else : eig += 1 if degseq : bigdeg = degseq . pop ( ) else : bigdeg = 0 return eiglist
return sequence of eigenvalues of the laplacian of the threshold graph for the given creation_sequence .