def k_corona(G, k, core_number=None):
 def func(v, k, c):
  return ((c[v] == k) and (k == sum((1 for w in G[v] if (c[w] >= k)))))
 return _core_subgraph(G, func, k, core_number)

def k_corona ( G , k , core_number = None ) : def func ( v , k , c ) : return ( ( c [ v ] == k ) and ( k == sum ( ( 1 for w in G [ v ] if ( c [ w ] >= k ) ) ) ) ) return _core_subgraph ( G , func , k , core_number )
return the k-corona of g .