#NEWLINE# def create_random_undirected_adjacency_list( size ) : #NEWLINE# #INDENT# res = np . random . random_integers ( 0 , 1 , ( size , size ) ) #NEWLINE# res = ( ( res + res . T ) % 2 ) #NEWLINE# np . fill_diagonal ( res , 1 ) #NEWLINE# return res