Combinatorica Package >

SetEdgeWeights

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.
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team