Perform the k-core of a graph.
[Go,I] = NL_G_KCore(G,K)
Graph.
Node degree.
Output graph.
List of deleted nodes.
NL_G_KCore performs the k-core of the graph G. The k-core of a graph is the subgraph obtained from the original graph after the removal of all nodes of degree
(WIKIPEDIA). The list of deleted nodes is stored in I.