GraphPlot3D
GraphPlot3D[g]
generates a 3D plot of the graph g.
GraphPlot3D[{e1,e2,…}]
generates a 3D plot of the graph with edges ei.
GraphPlot3D[{…,w[ei],…}]
plots ei with features defined by the symbolic wrapper w.
GraphPlot3D[{vi 1vj 1,…}]
uses rules vikvjk to specify the graph g.
GraphPlot3D[m]
uses the adjacency matrix m to specify the graph g.
Details and Options
- GraphPlot3D attempts to place vertices in 3D to give a well-laid-out version of the graph.
- GraphPlot3D supports the same vertices, edges and wrappers as Graph.
- The following special wrappers can be used for the edges ei:
-
Annotation[ei,label] provide an annotation Button[ei,action] define an action to execute when the element is clicked EventHandler[ei,…] define a general event handler for the element Hyperlink[ei,uri] make the element act as a hyperlink Labeled[ei,…] display the element with labeling PopupWindow[ei,cont] attach a popup window to the element StatusArea[ei,label] display in the status area when the element is moused over Style[ei,opts] show the element using the specified styles Tooltip[ei,label] attach an arbitrary tooltip to the element - GraphPlot3D has the same options as Graphics3D, with the following additions and changes: [List of all options]
-
DataRange Automatic the range of vertex coordinates to generate DirectedEdges False whether to interpret Rule as DirectedEdge EdgeLabels None labels and placements for edges EdgeLabelStyle Automatic style to use for edge labels EdgeShapeFunction Automatic generate graphic shapes for edges EdgeStyle Automatic styles for edges GraphLayout Automatic how to lay out vertices and edges GraphHighlight {} vertices and edges to highlight GraphHighlightStyle Automatic style for highlight Method Automatic method to use PerformanceGoal Automatic aspects of performance to try to optimize PlotStyle Automatic graphics directives to determine styles PlotTheme Automatic overall theme for the graph VertexCoordinates Automatic coordinates for vertices VertexLabels None labels and placements for vertices VertexLabelStyle Automatic style to use for vertex labels VertexShape Automatic graphic shape for vertices VertexShapeFunction Automatic generate graphic shapes for vertices VertexSize Automatic size of vertices VertexStyle Automatic styles for vertices - With the setting VertexCoordinates->Automatic, the embedding of vertices and routing of edges is computed automatically, based on the setting for GraphLayout.
- Possible special embeddings for GraphLayout include:
-
"BipartiteEmbedding" vertices on two parallel lines "CircularEmbedding" vertices on a circle "CircularMultipartiteEmbedding" vertices on segments of a circle "DiscreteSpiralEmbedding" vertices on a discrete spiral "GridEmbedding" vertices on a grid "LinearEmbedding" vertices on a line "MultipartiteEmbedding" vertices on several parallel lines "SpiralEmbedding" vertices on a 3D spiral projected to 2D "StarEmbedding" vertices on a circle with a center - Possible structured embeddings for layered graphs such as trees and directed acyclic graphs include:
-
"BalloonEmbedding" vertices on a circle with the center at the parent vertex "RadialEmbedding" vertices on a circular segment "LayeredDigraphEmbedding" vertices on parallel lines for directed acyclic graphs "LayeredEmbedding" vertices on parallel lines - Possible optimizing embeddings all minimize a quantity and include:
-
"HighDimensionalEmbedding" energy for spring-electrical in high dimension "PlanarEmbedding" number of edge crossings "SpectralEmbedding" weighted sum of squares distances "SpringElectricalEmbedding" energy with edges as springs and vertices as charges "SpringEmbedding" energy with edges as springs "TutteEmbedding" number of edge crossings and distance to neighbors - Possible settings for PlotTheme include common base themes, color feature themes, font features themes, and size features themes.
-
"Business" a bright, modern look appropriate for business presentations or infographics "Detailed" identify data by employing labels and tooltips "Marketing" elegant, eye-catching design suitable for marketing needs "Minimal" simple graph "Monochrome" single-color design "Scientific" candid design useful for analyzing detailed data with labels and tooltips "Web" clean, bold design suitable for a consumer website or blog "Classic" historical design of graph to remain compatible with existing uses - Graph features themes affect plot of vertices and edges. Feature themes include:
-
"LargeGraph" large graph "ClassicLabeled" classic graph "IndexLabeled" index-labeled graph -
AlignmentPoint Center the default point in the graphic to align with AspectRatio Automatic ratio of height to width Axes False whether to draw axes AxesEdge Automatic on which edges to put axes AxesLabel None axes labels AxesOrigin Automatic where axes should cross AxesStyle {} graphics directives to specify the style for axes Background None background color for the plot BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the graphic Boxed True whether to draw the bounding box BoxRatios Automatic bounding 3D box ratios BoxStyle {} style specifications for the box ClipPlanes None clipping planes ClipPlanesStyle Automatic style specifications for clipping planes ContentSelectable Automatic whether to allow contents to be selected ControllerLinking False when to link to external rotation controllers ControllerPath Automatic what external controllers to try to use DataRange Automatic the range of vertex coordinates to generate DirectedEdges False whether to interpret Rule as DirectedEdge EdgeLabels None labels and placements for edges EdgeLabelStyle Automatic style to use for edge labels EdgeShapeFunction Automatic generate graphic shapes for edges EdgeStyle Automatic styles for edges Epilog {} 2D graphics primitives to be rendered after the main plot FaceGrids None grid lines to draw on the bounding box FaceGridsStyle {} style specifications for face grids FormatType TraditionalForm default format type for text GraphHighlight {} vertices and edges to highlight GraphHighlightStyle Automatic style for highlight GraphLayout Automatic how to lay out vertices and edges ImageMargins 0. the margins to leave around the graphic ImagePadding All what extra padding to allow for labels, etc. ImageSize Automatic absolute size at which to render the graphic LabelStyle {} style specifications for labels Lighting Automatic simulated light sources to use Method Automatic method to use PerformanceGoal Automatic aspects of performance to try to optimize PlotLabel None a label for the plot PlotRange All range of values to include PlotRangePadding Automatic how much to pad the range of values PlotRegion Automatic final display region to be filled PlotStyle Automatic graphics directives to determine styles PlotTheme Automatic overall theme for the graph PreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic Prolog {} 2D graphics primitives to be rendered before the main plot RotationAction "Fit" how to render after interactive rotation SphericalRegion Automatic whether to make the circumscribing sphere fit in the final display area Ticks Automatic specification for ticks TicksStyle {} style specification for ticks TouchscreenAutoZoom False - whether to zoom to fullscreen when activated on a touchscreen
VertexCoordinates Automatic coordinates for vertices VertexLabels None labels and placements for vertices VertexLabelStyle Automatic style to use for vertex labels VertexShape Automatic graphic shape for vertices VertexShapeFunction Automatic generate graphic shapes for vertices VertexSize Automatic size of vertices VertexStyle Automatic styles for vertices ViewAngle Automatic angle of the field of view ViewCenter Automatic point to display at the center ViewMatrix Automatic explicit transformation matrix ViewPoint {1.3,-2.4,2.} viewing position ViewProjection Automatic projection method for rendering objects distant from the viewer ViewRange All range of viewing distances to include ViewVector Automatic position and direction of a simulated camera ViewVertical {0,0,1} direction to make vertical
List of all options
Examples
open allclose allBasic Examples (3)
Scope (12)
Graph Specification (6)
Specify a graph using a graph:
Specify a graph using a rule list:
Specify a graph using a dense adjacency matrix:
Specify a graph using a sparse adjacency matrix:
Use GraphData for collections of graphs:
Use ExampleData for collections of sparse matrices:
Graph Styling (6)
Plot a disconnected graph using different packing methods:
For very large graphs, it is often better not to draw vertices at all:
Use EdgeShapeFunction and VertexShapeFunction for detailed control:
Options (71)
GraphLayout (66)
"BalloonEmbedding" (6)
Place each vertex in an enclosing circle centered at its parent vertex:
"BalloonEmbedding" works best for tree graphs:
Use the option "EvenAngle"->True to place vertices evenly in an enclosing circle:
With the setting "OptimalOrder"->True, the vertex ordering optimizes the angular resolution and the aspect ratio:
"CircularEmbedding" (2)
"CircularMultipartiteEmbedding" (2)
"DiscreteSpiralEmbedding" (3)
Place vertices on a discrete spiral:
"DiscreteSpiralEmbedding" works best for path graphs:
With the setting "OptimalOrder"True, vertices are reordered so that they lie nicely on a discrete spiral:
"GridEmbedding" (2)
"HighDimensionalEmbedding" (2)
"LayeredEmbedding" (6)
Place vertices in several layers in such a way as to minimize edges between nonadjacent layers:
"LayeredEmbedding" works best for tree graphs:
Use the option "LayerSizeFunction"->func to specify the relative height:
Use the option "RootVertex"->v to set the root vertex:
Use the option "LeafDistance"->d to specify the leaf distance:
Use the option "Orientation"->o to draw a tree with different orientations:
"LayeredDigraphEmbedding" (3)
"LinearEmbedding" (2)
"MultipartiteEmbedding" (2)
"RadialEmbedding" (2)
"SpectralEmbedding" (2)
"SpiralEmbedding" (2)
With the setting "OptimalOrder"->True, vertices are reordered so that they lie on the spiral nicely:
"SpringElectricalEmbedding" (12)
Place vertices so that they minimize mechanical and electrical energy when each vertex has a charge and each edge corresponds to a spring:
With the setting "EdgeWeighted"->True, edge weights are used:
Use the option "EnergyControl"->e to specify limitations on the total energy of the system during minimization:
Use "InferentialDistance"->d to specify a cutoff distance beyond which the interaction between vertices is assumed to be nonexistent:
Use "MaxIteration"->it to specify a maximum number of iterations to be used in attempting to minimize the energy:
Use "Multilevel"->method to specify a method used during a recursive procedure of coarsening a graph:
With the setting "Octree"->True, an octree data structure (in three dimensions) or a quadtree data structure (in two dimensions) is used in the calculation of repulsive force:
Use "RandomSeed"->int to specify a seed for the random number generator that computes the initial vertex placement:
Use "RepulsiveForcePower"->r to control how fast the repulsive force decays over distance:
Use "StepControl"->method to define how step length is modified during energy minimization:
Use "StepLength"->r to specify the initial step length used in moving the vertices around:
Use "Tolerance"->r to specify the tolerance used in terminating the energy minimization process:
"SpringEmbedding" (10)
Place vertices so that they minimize mechanical energy when each edge corresponds to a spring:
With the setting "EdgeWeighted"->True, edge weights are used:
Use the option "EnergyControl"->e to specify limitations on the total energy of the system during minimization:
Use "InferentialDistance"->d to specify a cutoff distance beyond which the interaction between vertices is assumed to be nonexistent:
Use "MaxIteration"->it to specify a maximum number of iterations to be used in attempting to minimize the energy:
Use "Multilevel"->method to specify a method used during a recursive procedure of coarsening a graph:
Use "RandomSeed"->int to specify a seed for the random number generator that computes the initial vertex placement:
Use "StepControl"->method to define how step length is modified during energy minimization:
Use "StepLength"->r to specify the initial step length used in moving the vertices around:
Use "Tolerance"->r to specify the tolerance used in terminating the energy minimization process:
"StarEmbedding" (3)
PlotStyle (3)
Specify an overall style for the graph:
PlotStyle can be combined with VertexShapeFunction, which has higher priority:
PlotStyle can be combined with EdgeShapeFunction, which has higher priority:
Applications (2)
Properties & Relations (7)
Use LayeredGraphPlot for hierarchical-style drawing of directed graphs:
Use TreePlot for different types of tree drawing:
Use GraphPlot to draw graphs in 2D:
Use GraphData for an extensive collection of predefined graphs and properties:
Get the connectivity and plot it:
Use PolyhedronData for a large collection of polyhedra and properties:
Compare to a predefined embedding:
Use ExampleData for a large collection of sparse matrices:
Use ArrayPlot or MatrixPlot to display sparse matrices:
Text
Wolfram Research (2007), GraphPlot3D, Wolfram Language function, https://reference.wolfram.com/language/ref/GraphPlot3D.html (updated 2019).
CMS
Wolfram Language. 2007. "GraphPlot3D." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/GraphPlot3D.html.
APA
Wolfram Language. (2007). GraphPlot3D. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GraphPlot3D.html