TreeGraph[{v1, v2, ...}, {u1, u2, ...}]
yields a tree where is the predecessor of .

TreeGraph[{e1, e2, ...}]
yields a tree with edges .

TreeGraph[{v1, v2, ...}, {e1, e2, ...}]
yields a tree with vertices and edges .

TreeGraph[{..., wi[vi, ...], ...}, {..., wj[ej, ...], ...}]
yields a tree with vertex and edge properties defined by the symbolic wrappers .

Details and OptionsDetails and Options

  • TreeGraph generates a Graph object.
  • TreeGraph supports the same vertices, edges, wrappers, and options as Graph.
  • A tree is a connected graph with no cycles.
  • TreeGraph can only represent trees.
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »