Tree Graph Layout Method - Maple Help

Tree Graph Layout Method

Description

 • The tree layout method recursively lays out the graph as a tree starting at the first vertex, or the specified root at the top.
 • This layout method works only in two dimensions.

Examples

 > $\mathrm{with}\left(\mathrm{GraphTheory}\right):$
 > $G≔\mathrm{RandomGraphs}:-\mathrm{RandomTree}\left(25\right)$
 ${G}{≔}{\mathrm{Graph 1: an undirected unweighted graph with 25 vertices and 24 edge\left(s\right)}}$ (1)
 > $\mathrm{DrawGraph}\left(G,\mathrm{layout}=\mathrm{tree}\right)$