<s> """<STR_LIT>""" <EOL> from networkx import * <EOL> from networkx . generators . degree_seq import * <EOL> n = <NUM_LIT> <EOL> p = <NUM_LIT:0.1> <EOL> w = [ p * n for i in range ( n ) ] <EOL> G = expected_degree_graph ( w ) <EOL> print ( "<STR_LIT>" ) <EOL> print ( "<STR_LIT>" ) <EOL> dh = degree_histogram ( G ) <EOL> low = min ( degree ( G ) ) <EOL> for i in range ( low , len ( dh ) ) : <EOL> bar = '<STR_LIT>' . join ( dh [ i ] * [ '<STR_LIT:*>' ] ) <EOL> print ( "<STR_LIT>" % ( i , dh [ i ] , bar ) ) </s>
