Question: convert the adjacent matrix to weighted matrix

Convert undirected graph unweighted graph to a weighted graph even though all the weights are 1

as i want to check how my function works on weighted graph as I know it works unweighted

Please Wait...