Assigning the values for each vertex of the undirected graph
vector < int > values ; values . push_back ( 3 ) ; values . push_back ( 2 ) ; values . push_back ( 4 ) ; values . push_back ( -2 ) ; values . push_back ( 0 ) ; values . push_back ( -1 ) ; values . push_back ( -5 ) ;