SetEdgeWeights

As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. >>

SetEdgeWeights[g]
assigns random real weights in the range [0,1] to edges in g.

SetEdgeWeights[g,e]
assigns edge weights to the edges in the edge list e.

SetEdgeWeights[g,w]
assigns the weights in the weight list w to the edges of g.

SetEdgeWeights[g,e,w]
assigns the weights in the weight list w to the edges in edge list e.

DetailsDetails