# Tag Info

### Elegant implementation of factorial tree graph

Update 3: ExpressionGraph is now available in version 12.1. Update 2: a more streamlined version for 2D graphs: ...
• 392k
Accepted

### Cone Trees: map a graph onto geometric shape

To lay out a graph on a cone, you start by laying it out in a circular way. Then you add an appropriate "z coordinate" to each node position, proportionally to its distance form the centre. This is ...
• 234k

### Elegant implementation of factorial tree graph

IGraph/M already has this built-in as IGSymmetricTree. You can specify the number of branches at each level. ...
• 234k
Accepted

### Elegant implementation of factorial tree graph

here is my elegant implementation ...
• 6,647
Accepted

### TreePlot does not give a "binary-looking" tree for a binary tree

The documentation says: TreePlot[g] attempts to choose the root so as to make trees have as few layers as possible. What it does not say is that edge directions are ignored when determining the ...
• 68.7k
Accepted

### How to work with phylogenetic trees?

Download the Phylogenetics package here: Phylogenetics on GitHub (direct link to latest release: source zip), available on PackageData.net here. Documentation: notebook / pdf / dark themed pdf (for ...
• 46.9k

### How to draw a "proper" tree diagram

It's a fussy solution, but it works. ...
• 234k
Accepted

### How to draw a "proper" tree diagram

We can use TreePlot (GraphComputationTreePlotLegacy in versions 12.0+) with the hidden option ...
• 392k
Accepted

### TreeForm outputs different results for the same input, Why?

The difference between your two examples is that one uses packed arrays and the other doesn't. The lists generated by Range are, by default, packed. ...
• 67.9k
Accepted

### Collapsible Tree

So I took a slightly different tack from lowriniak, making a tree object, rather than just using a tree hierarchy, but the result is much the same. What's worth noting, though, is that this gives you ...
• 46.8k

### Elegant implementation of factorial tree graph

I don't know if you find this elegant. But I give it a try. ...
Accepted

Another way: ...
• 234k

### Combinatorica Functionality in Vers. 11.1.1

The problem is that you defined the Graph using M syntax and not Combinatorica syntax. For your example you should do: ...
• 130k
Accepted

### Is there a way to draw a level tree?

GraphComputation`ExpressionGraph[expr /. List -> (List[List, ##] &)] ...
• 392k
Accepted

...
• 392k
Accepted

### TreeGraph construction

Update 2: Relabeling vertices using VertexReplace: ...
• 392k

### How can I make the vertices of a tree graph clickable?

Maybe something like this: ...
• 26.4k
Accepted

### How to really plot a binary tree?

One possibility is to somehow represent missing left and right nodes, but not to draw edges and vertices for those nodes. Something like this (not extensively tested): ...
• 206
Accepted

### How to make a Tree diagram using images as vertices, that goes left to right

It's explained on the doc page of GraphLayout. This documentation page is very long, and most of the information is under the Scope section, under specific layout ...
• 234k
Accepted

### How to change TreeForm style？

What about using Tree with a TreeElementStyle option: ...
• 31.4k
Accepted

### Can trees be made into graphs?

You can use halirutan's makeTree function from this answer. Your purpose is slightly different than the purpose in that question, so the function can be simplified ...
• 70.4k
Accepted

### How can I create an Association from a multidimensional list of values and a list of keys?

Clear[helper]; helper[tl_] := GroupBy[tl, First -> Rest, helper]; helper[{{n_}}] := n; helper@Transpose@Append[Flatten@vals]@Transpose@Tuples[dims] The idea is ...
• 7,881
Accepted

### How can I make TreeForm think some elements are atomic?

Since strings are atomic and are displayed as themselves in a tree, we can just replace the terms with their string counterparts. ...
• 7,770
Accepted

...
• 392k
Accepted

### How can I make the output of Reduce more readable (with a tree)?

There are plenty of new functionalities for manipulating and styling trees in v13 (some of them present already in v12.3). For example: ...
• 21.9k

### How to generate a random tree?

In 12.3, RandomTree can be used to generate random labeled trees of a given size: Currently, this does not sample uniformly, but this will be fixed in a future version.
• 521

### How to generate a random tree?

Most of the existing answers do not sample uniformly from the set of labelled trees. IGraph/M now has a function which guarantees uniform sampling, IGTreeGame. It ...
• 234k

### VertexDelete Problem

No, this is not a bug in VertexDelete. Some background first: TreePlot, along with ...
• 234k