modified output to get network size and its giant component size