Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Changing the weights in a graph

Suppose I have a weighted graph G, and I want to change the weights of some of the edges. One way to do this is to output the weighted adjacency matrix, modify it, and then recreate the graph. Is there a more efficient way?