|
SOLUTIONS
|
COMBINATORICA PACKAGE SYMBOL
SetVertexWeights
SetVertexWeights[g]
assigns random real weights in the range
to vertices in g.
![]()
assigns the weights in the weight list w to the vertices of g.
![]()
assigns the weights in the weight list w to the vertices in the vertex list vs.
DetailsDetails
- 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, or any pure function that takes two arguments: an integer as the first argument and a pair
as the second argument. - 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 »
