GraphUtilities`
GraphUtilities`

GraphCoordinates3D

As of Version 10, all the functionality of the GraphUtilities package is built into the Wolfram System. »

GraphCoordinates3D[g,options]

calculates a visually appealing 3D layout of the vertices of a graph g and returns the coordinates of the vertices.

更多信息和选项

  • GraphCoordinates3D functionality is now available in the built-in Wolfram Language function GraphEmbedding.
  • To use GraphCoordinates3D, you first need to load the Graph Utilities Package using Needs["GraphUtilities`"].
  • GraphCoordinates3D returns the coordinates of the vertices as computed using a graph-drawing algorithm in 3D. It is useful when the coordinates of the vertices are needed, rather than a drawing of the graph, or when one needs to draw a graph repeatedly using the same layout but different style.
  • GraphCoordinates accepts the same options as GraphPlot.

范例

打开所有单元关闭所有单元

基本范例  (2)

This plots a graph:

This gives the coordinates of the vertices in the previous drawing:

GraphCoordinates3D has been superseded by GraphEmbedding:

Scope  (1)

This plots a graph:

This gives the coordinates of the vertices in the previous drawing:

This plots the graph with two different styles, using the layout already calculated:

The relationship between vertices and coordinates is given by the following:

Properties & Relations  (1)

This shows a drawing of a small graph and the coordinates associated with the drawing:

This shows the relationship between vertex labels and their coordinates:

The coordinates can be reused to create the drawing without recomputing:

Interactive Examples  (1)

This shows how to travel from vertex 1 to 7 through the shortest path:

Wolfram Research (2007),GraphCoordinates3D,Wolfram 语言函数,https://reference.wolfram.com/language/GraphUtilities/ref/GraphCoordinates3D.html.

文本

Wolfram Research (2007),GraphCoordinates3D,Wolfram 语言函数,https://reference.wolfram.com/language/GraphUtilities/ref/GraphCoordinates3D.html.

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_graphcoordinates3d, author="Wolfram Research", title="{GraphCoordinates3D}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GraphUtilities/ref/GraphCoordinates3D.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_graphcoordinates3d, organization={Wolfram Research}, title={GraphCoordinates3D}, year={2007}, url={https://reference.wolfram.com/language/GraphUtilities/ref/GraphCoordinates3D.html}, note=[Accessed: 18-November-2024 ]}