GraphCoordinates
GraphCoordinates[g,options]
calculates a visually appealing 2D layout of the vertices of the graph g and returns the coordinates of the vertices.
更多信息和选项
- GraphCoordinates functionality is now available in the built-in Wolfram Language function GraphEmbedding.
- To use GraphCoordinates, you first need to load the Graph Utilities Package using Needs["GraphUtilities`"].
- GraphCoordinates returns the coordinates of the vertices as computed using a graph-drawing algorithm. This is useful when you need to draw a graph repeatedly using the same layout but different styles.
- GraphCoordinates accepts the same options as GraphPlot.
范例
打开所有单元关闭所有单元基本范例 (2)
This gives the coordinates of the vertices in the previous drawing:
GraphCoordinates has been superseded by GraphEmbedding:
Scope (1)
Properties & Relations (1)
Possible Issues (1)
This shows the LayeredGraphPlot of a directed graph:
GraphCoordinates only returns the position of the vertices:
The curved edges between vertices 1 and 3 are not reproduced:
文本
Wolfram Research (2007),GraphCoordinates,Wolfram 语言函数,https://reference.wolfram.com/language/GraphUtilities/ref/GraphCoordinates.html.
CMS
Wolfram 语言. 2007. "GraphCoordinates." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GraphUtilities/ref/GraphCoordinates.html.
APA
Wolfram 语言. (2007). GraphCoordinates. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/GraphUtilities/ref/GraphCoordinates.html 年