RecipePythonBeginner Find the broker in a network with NetworkX: the rise of the Medici pieces = {n: nx.number_connected_components(G.subgraph(G.nodes - {n})) for n in G}
ConceptPythonAdvanced The graph Laplacian: why its second eigenvector cuts a network in two f"components: {nx.number_connected_components(H)} "