NetworkX

Previous topic

Cores

Next topic

Isomorphism

Quick search

networkx.find_cores

find_cores(G, with_labels=True)

Return the core number for each vertex.

See: arXiv:cs.DS/0310049 by Batagelj and Zaversnik

If with_labels is True a dict is returned keyed by node to the core number. If with_labels is False a list of the core numbers is returned.