<s> """<STR_LIT>""" <EOL> import networkx as nx <EOL> import matplotlib . pyplot as plt <EOL> G = nx . gnp_random_graph ( <NUM_LIT:100> , <NUM_LIT> ) <EOL> degree_sequence = sorted ( [ d for n , d in G . degree ( ) ] , reverse = True ) <EOL> dmax = max ( degree_sequence ) <EOL> plt . loglog ( degree_sequence , '<STR_LIT>' , marker = '<STR_LIT:o>' ) <EOL> plt . title ( "<STR_LIT>" ) <EOL> plt . ylabel ( "<STR_LIT>" ) <EOL> plt . xlabel ( "<STR_LIT>" ) <EOL> plt . axes ( [ <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] ) <EOL> Gcc = sorted ( nx . connected_component_subgraphs ( G ) , key = len , reverse = True ) [ <NUM_LIT:0> ] <EOL> pos = nx . spring_layout ( Gcc ) <EOL> plt . axis ( '<STR_LIT>' ) <EOL> nx . draw_networkx_nodes ( Gcc , pos , node_size = <NUM_LIT:20> ) <EOL> nx . draw_networkx_edges ( Gcc , pos , alpha = <NUM_LIT> ) <EOL> plt . savefig ( "<STR_LIT>" ) <EOL> plt . show ( ) </s>
