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