Find K-Core Components

The Wolfram System allows a graph to be hierarchically decomposed into its k-cores using KCoreComponents.

    
In[1]:=
Click for copyable input
Find k-core components:
In[2]:=
Click for copyable input
Out[2]=
Show k-cores:
In[3]:=
Click for copyable input
Out[3]=