VertexWeight

VertexWeight

Graph 和相关函数的一个选项和注解,它指定一个顶点权值.

更多信息

  • 可以使用下列选项设置:
  • {w1,w2,}以与 VertexList 中所用的相同顺序给出所有顶点的权值
  • 当以例如 Graph 的函数创建图时,可以使用封装 Annotation[v,VertexWeight->w].
  • 权值 可以是任意表达式.
  • 权值 可以解释为代价或者容量,或者对于不同的图计算函数,具有其它特殊的含义.

范例

基本范例  (2)

设置所有顶点的权:

使用任何表达式作为权:

Wolfram Research (2010),VertexWeight,Wolfram 语言函数,https://reference.wolfram.com/language/ref/VertexWeight.html.

文本

Wolfram Research (2010),VertexWeight,Wolfram 语言函数,https://reference.wolfram.com/language/ref/VertexWeight.html.

CMS

Wolfram 语言. 2010. "VertexWeight." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/VertexWeight.html.

APA

Wolfram 语言. (2010). VertexWeight. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/VertexWeight.html 年

BibTeX

@misc{reference.wolfram_2024_vertexweight, author="Wolfram Research", title="{VertexWeight}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/VertexWeight.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_vertexweight, organization={Wolfram Research}, title={VertexWeight}, year={2010}, url={https://reference.wolfram.com/language/ref/VertexWeight.html}, note=[Accessed: 22-November-2024 ]}