Make Adjacency List
for i in range ( M ) : NEW_LINE INDENT x = edges [ i ] [ 0 ] ; NEW_LINE y = edges [ i ] [ 1 ] ; NEW_LINE Adj [ x ] . append ( y ) ; NEW_LINE Adj [ y ] . append ( x ) ; NEW_LINE DEDENT