class_docstr: A KcoreModel object contains a core ID for each vertex, and the total
  number of cores in the graph.
  
  The core ID of a vertex is a measure of its global centrality.
  
  The algorithms iteratively remove vertices that has less than :math:`k`
  neighbors **recursively**. The algorithm guarantees that at iteration
  :math:`k+1`, all vertices left in the graph will have at least :math:`k+1`
  neighbors.  The vertices removed at iteration :math:`k` is assigned with a
  core ID equal to :math:`k`.
  
  Below is a list of queryable fields for this model:
  
  +---------------+----------------------------------------------------+
  | Field         | Description                                        |
  +===============+====================================================+
  | core_id       | An SFrame with each vertex's core id               |
  +---------------+----------------------------------------------------+
  | graph         | A new SGraph with the core id as a vertex property |
  +---------------+----------------------------------------------------+
  | kmax          | The maximum core id assigned to any vertex         |
  +---------------+----------------------------------------------------+
  | kmin          | The minimum core id assigned to any vertex         |
  +---------------+----------------------------------------------------+
  | training_time | Total training time of the model                   |
  +---------------+----------------------------------------------------+
  
  This model cannot be constructed directly.  Instead, use
  :func:`turicreate.kcore.create` to create an instance
  of this model. A detailed list of parameter options and code samples
  are available in the documentation for the create function.
  
  See Also
  --------
  create
class_docstr_tok: ["A","KcoreModel","object","contains","a","core","ID","for","each","vertex",",","and","the","total","number","of","cores","in","the","graph",".","The","core","ID","of","a","vertex","is","a","measure","of","its","global","centrality",".","The","algorithms","iteratively","remove","vertices","that","has","less","than",":","math",":","`","k","`","neighbors","*","*","recursively","*","*",".","The","algorithm","guarantees","that","at","iteration",":","math",":","`","k+1","`",",","all","vertices","left","in","the","graph","will","have","at","least",":","math",":","`","k+1","`","neighbors",".","The","vertices","removed","at","iteration",":","math",":","`","k","`","is","assigned","with","a","core","ID","equal","to",":","math",":","`","k","`",".","Below","is","a","list","of","queryable","fields","for","this","model",":","+","--","--","--","--","--","--","--","-+","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","+","|","Field","|","Description","|","+===============+====================================================+","|","core_id","|","An","SFrame","with","each","vertex","'s","core","id","|","+","--","--","--","--","--","--","--","-+","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","+","|","graph","|","A","new","SGraph","with","the","core","id","as","a","vertex","property","|","+","--","--","--","--","--","--","--","-+","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","+","|","kmax","|","The","maximum","core","id","assigned","to","any","vertex","|","+","--","--","--","--","--","--","--","-+","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","+","|","kmin","|","The","minimum","core","id","assigned","to","any","vertex","|","+","--","--","--","--","--","--","--","-+","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","+","|","training_time","|","Total","training","time","of","the","model","|","+","--","--","--","--","--","--","--","-+","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","--","+","This","model","can","not","be","constructed","directly",".","Instead",",","use",":","func",":","`","turicreate.kcore.create","`","to","create","an","instance","of","this","model",".","A","detailed","list","of","parameter","options","and","code","samples","are","available","in","the","documentation","for","the","create","function",".","See","Also","--","--","--","--","create"]
docstr: __init__(self)
docstr_tok: ["__init__","(","self",")"]
code: def __init__(self, model):
      """__init__(self)"""
      self.__proxy__ = model
      self.__model_name__ = self.__class__._native_name()
  
file_path: turicreate/src/python/turicreate/toolkits/graph_analytics/kcore.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import turicreate
  from turicreate.data_structures.sgraph import SGraph
  from turicreate.toolkits.graph_analytics._model_base import GraphAnalyticsModel
label_desc: Use image node_id 1 to create a new KcoreModel object from inherited base classes: _ModelBase with example: obj = KcoreModel(model)