Combinatorica`
Combinatorica`
SetVertexWeights
As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. »
SetVertexWeights[g]
assigns random real weights in the range to vertices in g.
SetVertexWeights[g,w]
assigns the weights in the weight list w to the vertices of g.
SetVertexWeights[g,vs,w]
assigns the weights in the weight list w to the vertices in the vertex list vs.
更多信息和选项
- SetVertexWeights functionality is now available in the built-in Wolfram Language function VertexWeight.
- To use SetVertexWeights, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
- SetVertexWeights accepts options WeightingFunction and WeightRange. The default value for WeightingFunction is Random and the default value for WeightRange is {0,1}.
- WeightingFunction can take values Random, RandomInteger, or any pure function that takes two arguments: an integer as the first argument and a pair {number,number} as the second argument.
- WeightRange can be an integer range or a real range.
Wolfram Research (2012),SetVertexWeights,Wolfram 语言函数,https://reference.wolfram.com/language/Combinatorica/ref/SetVertexWeights.html.
文本
Wolfram Research (2012),SetVertexWeights,Wolfram 语言函数,https://reference.wolfram.com/language/Combinatorica/ref/SetVertexWeights.html.
CMS
Wolfram 语言. 2012. "SetVertexWeights." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/SetVertexWeights.html.
APA
Wolfram 语言. (2012). SetVertexWeights. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/Combinatorica/ref/SetVertexWeights.html 年