|
SOLUTIONS
|
COMBINATORICA 程序包 符号
SetEdgeWeights
SetEdgeWeights[g]
assigns random real weights in the range
to edges in g.
![]()
assigns edge weights to the edges in the edge list e.
![]()
assigns the weights in the weight list w to the edges of g.
![]()
assigns the weights in the weight list w to the edges in edge list e.
更多信息更多信息
- To use
, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
accepts options WeightingFunction and WeightRange. The default value for WeightingFunction is Random, and the default value for WeightRange is
. - WeightingFunction can take values Random, RandomInteger, Euclidean, or LNorm[n] for non-negative n, or any pure function that takes two arguments, each argument having the form {Integer, {Number, Number}}.
- WeightRange can be an integer range or a real range.
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
