Assigning the values for each vertex of the undirected graph
values = [ ] ; NEW_LINE values . append ( 3 ) ; NEW_LINE values . append ( 2 ) ; NEW_LINE values . append ( 4 ) ; NEW_LINE values . append ( - 2 ) ; NEW_LINE values . append ( 0 ) ; NEW_LINE values . append ( - 1 ) ; NEW_LINE values . append ( - 5 ) ; NEW_LINE