Adding networkx based component sizes