Modify Graph Edge Weights
You are given an undirected weighted connected graph containing n nodes labeled from 0 to n - 1 , and an integer array edges where edges[i] = [a i , b i , w i ] indicates that there is an edge between nodes a i and b i with weight w i . Some edges have a weight of -1 ( w i = -1 ), while others have a positive weight ( w i > 0 ). Your task is to modify all edges with a weight of -1 by assigning them positive integer values in the range [1, 2 * 10 9 ] so that the shortest distance between the nodes source and destination becomes equal to an integer target . If there are multiple modifications that make the shortest distance between source and destination equal to target , any of them will be consider...