|
|
||
|
|
| Built-in Mathematica Symbol | Tutorials »|See Also »|More About » |
TreePlot |
| TreePlot[{vi1->vj1, vi2->vj2, ...}] generates a tree plot of the graph in which vertex vik is connected to vertex vjk. |
| TreePlot[{{vi1->vj1, lbl1}, ...}] associates labels lblk with edges in the graph. |
| TreePlot[g, pos] places roots of trees in the plot at position pos. |
| TreePlot[g, pos, vk] uses vertex vk as the root node in the tree plot. |
| DataRange | Automatic | the range of vertex coordinates to generate | |
| DirectedEdges | False | whether to show edges as directed arrows | |
| EdgeLabeling | True | whether to include labels given for edges | |
| EdgeRenderingFunction | Automatic | function to give explicit graphics for edges | |
| Frame | False | whether to draw a frame around the plot | |
| FrameTicks | None | what ticks to include on the frame | |
| LayerSizeFunction | (1&) | the height to allow for each layer | |
| MultiedgeStyle | Automatic | how to draw multiple edges between vertices | |
| PackingMethod | Automatic | method to use for packing components | |
| PlotRangePadding | Automatic | how much padding to include around the plot | |
| PlotStyle | Automatic | overall graphics directives for vertices and edges | |
| SelfLoopStyle | Automatic | how to draw edges linking a vertex to itself | |
| VertexLabeling | Automatic | whether to show vertex names as labels | |
| VertexRenderingFunction | Automatic | function to give explicit graphics for vertices |
Draw a tree:
Show direction of edges:
Include vertex labels:
Show edge labels:
Drawing a tree with different orientation from the default:
Specify the root node:
If the graph is not a tree, it is laid out based on a spanning tree of this graph:
|
| © 2008 Wolfram Research, Inc. |