k_crust(G, k=None, core_number=None)¶
Returns the k-crust of G.
The k-crust is the graph G with the k-core removed.
G (NetworkX graph) – A graph or directed graph.
k (int, optional) – The order of the shell. If not specified return the main crust.
core_number (dictionary, optional) – Precomputed core numbers for the graph G.
G – The k-crust subgraph
- Return type
NetworkXError – The k-crust is not implemented for graphs with self loops or parallel edges.
Not implemented for graphs with parallel edges or self loops.
For directed graphs the node degree is defined to be the in-degree + out-degree.
Graph, node, and edge attributes are copied to the subgraph.