4
votes
1answer
91 views

Problem with probability tree

I am trying to make in LaTeX this probability tree: I tried using the tikz package but I keep having some issues. This is the best I got so far (link: ...
3
votes
0answers
36 views

How to draw a tree with fixed node distances? [duplicate]

I am trying to build on the filesystem tree example. I have a similar requirement to display a hierarchical tree, but I'm struggling to get the tree layout right. In the example, the link between a ...
2
votes
1answer
42 views

How can I coerce TikZ trees to have directed edges? [duplicate]

Consider the following \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \node{A} [grow=east] child {node{B} child {node{C}}}; \end{tikzpicture} \end{document} which ...
7
votes
2answers
209 views

Special tree in tikz

I'm trying to draw a tree like this: The root has three children and every of this two... The nodes in the first two tiers has additional informations.. I searched for examples like that, but could ...
7
votes
1answer
201 views

Automatic connection of text points in tikz-qtree

I have to draw pictures like the following a lot: I want to use tikz-qtree, since I have a lot of trees and this package simplifies things considerably. Right now I use the following code, since it ...
3
votes
2answers
685 views

tikz tree fork down edge labels

\documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[level distance=1.5cm, level 1/.style={sibling distance=3.5cm}, level 2/.style={sibling ...
4
votes
1answer
106 views

pgf/tikz line to triangle

I'm trying to draw a simple tree. Here's the latex code: \begin{tikzpicture} \node at (2,-2) [circle,draw,minimum size=8mm] (A) {$\alpha$}; \node at (0,-4) [circle,draw,minimum size=8mm] (B) ...
2
votes
1answer
246 views

Creating Tic-Tac-Toe boards with LaTeX/TikZ

I am trying to create a diagram of tic-tac-toe boards similar to the one attached below. I cannot seem to find any documentation or examples on how to create these boards in LaTeX or TikZ. Does ...
1
vote
1answer
238 views

Depth-first traversal of a binary tree

How can I achieve the drawing of a depth-first traversal of a binary tree like in this picture ?
20
votes
1answer
434 views

Drawing Bruhat--Tits trees with TikZ

I am not a regular user of TikZ, and I was wondering if there was a quick way of drawing trees that look like ? (the picture seems to have been taken from page 71 of J. P. Serre's book on trees). ...
1
vote
1answer
107 views

How to write a tree with no (visible) root with TikZ?

I’m trying to write a tree structure in TikZ. The trees in question are labelled on the leaf only; there is no label on inner nodes. Because I don’t use node on inner nodes, the tree structure joins. ...
3
votes
1answer
82 views

tikz draw tree with extra column

01, 001 and 0001 are not actually "childs". How do I add K=1,2,3 and K=4 to the left hand column? And I tried really hard to adjust the distance. But this is the best I can do. Thanks. ...
7
votes
1answer
212 views

Draw randomized tree in TikZ

I am trying to draw a randomized tree using TikZ, that is, I'm looking for a macro \randtree{NN}{x} that attaches a randomized tree of maximum depth x to a node named NN. The nodes need not be visible ...
10
votes
1answer
304 views

Drawing PQ-trees

I need to draw PQ-trees in LaTeX which look like these: I tried trees in tikz but I had two problems: partially shade rectangles use vertical pointers from children to the parent, if the parent ...
6
votes
1answer
258 views

Trees in latex : Depth of 4 nodes

I am following the current tutorial (MWE) : link However, I am facing difficulties to perform a tree of 4 nodes. Items are superposed, and even if I add a child [missing] {} it doesn't solve the ...
8
votes
2answers
374 views

how to draw a diagram that forks out, then joins in the middle then forks out again?

Update: ref comments: I've slightly corrected the terminology and the title. I am using the term diagram now, instead of tree, and I am just asking on how to draw this diagram in Tikz. Any tool or ...
5
votes
1answer
222 views

Customized edge in forest tree

Following the examples in the documentation, it is not too difficult to customize the edge of trees using the tikz-qtree package. The following code illustrates it: \documentclass{standalone} ...
3
votes
1answer
276 views

Vertical path to node in TikZ trees

How can I set the path between two specific nodes to "vertical" rather than "direct"? Currently my tree looks like this: \begin{tikzpicture}[level distance=1.5cm, every ...
11
votes
1answer
430 views

Using beamer overlays with forest generated trees

I am using the forest package from Sašo Živanović in order to create a wide tree on a beamer slide. Previously, I was using qtree. But due to the easier way of arranging nodes automatically with ...
2
votes
2answers
318 views

Drawing tree like structure

I have to draw the following figure. What I have now is uggly. Somehow the structure should be more balanced. Is there a way to do this with tikz-qtree? The point is that it is multiple dominance and ...
5
votes
1answer
406 views

Square edges in forest package

I can easily do trees with horizontal (square) edges in tikz-qtree (see MWE). The forest package is however a far superior alternative for my purposes. However, every attempt to do either horizontal ...
2
votes
2answers
558 views

[Tikz-]Qtree: force direction of single child to left or right?

I'm trying to draw a tree that has internal nodes with only one child, but which must be oriented. / \ /\ \ /\ Instead of the typical qtree where said children just "hang": ...
14
votes
1answer
348 views

Is it possible to emulate qtree with forest?

This question was actually asked by Alan Munn in a comment to How do I create a LCM tree diagram?. I repeat (and self-answer) it here because the answer is too long to fit the margin :-) qtree is a ...
12
votes
1answer
405 views

draw a many edge from a node- Tree - tikz

i want to draw the tree in the following picture : i have write : \documentclass{article} \usepackage{tikz} \usepackage{color} \definecolor{red}{rgb}{1,0,0} \begin{document} ...
7
votes
2answers
159 views

Seeking improvement on a poor solution---for descendant charts

I've a solution to a problem that screams out for improvement. I'm working on a second edition of a family history (mine) that has a great number of descendant charts. I've cobbled together a way of ...
5
votes
1answer
398 views

How to fix the overlapped nodes with long text, in TikZ. Concept maps

I'd like to get helping from you. I want to have paragraphs in the nodes of the concept map with Tikz, I mean, texts with multiple lines. I have a problem with texts, the nodes are overlapped. Here's ...
6
votes
3answers
909 views

drawing a syntax tree in tikz

I would like to draw a syntax tree, which resembles the below syntax tree. I know that I can use tikz to draw syntax trees, but I can't seem to figure out how to draw a straight line down to a node, ...
10
votes
1answer
566 views

Tikz tree and position of single leaf in binary tree

I am constructing a binary tree which looks as follows: \begin{tikzpicture} \node {root} child { node {left} } child { node {right} child { node {rightmost} } ...
10
votes
1answer
142 views

Indefinite Subtrees

While doing tree proofs, sometimes we need to consider a root with some subtrees, but we don't know the exact properties of the subtrees, so we just represent them using triangles. Is it possible to ...
0
votes
0answers
64 views

Strange line width problem with tikz-qtree [duplicate]

Possible Duplicate: TikZ borders showing through when they shouldn’t (overlapping circles) I have a strange problem with using tikz-qtree where the thickness of the lines are a bit odd. ...
5
votes
1answer
1k views

I'm getting the error: ! Paragraph ended before \@@label was complete

I've scoured this forum and it looks to me like I'm setting up the tree correctly, but I'm still getting this error, I have \usepackage{tikz} \usepackage{tikz-qtree} in the header. Here is the ...
3
votes
2answers
686 views

place several figure into one -tikz

I draw several trees and now I want to place them in a figure ( side by side or one below the other ) \documentclass{report} \usepackage{tikz} \usetikzlibrary{fit,shapes} \begin{document} ...
5
votes
1answer
558 views

Incomplete arrows and missing arrow heads in TikZ

I have the following plot which looks good, but there are two issues: Not all arrows have arrow-heads. I have no idea why this is. Some edges are not long enough. For example, the left edge of the ...
6
votes
1answer
397 views

How do I draw curve crossing one edge of a tree (using tikz-qtree)?

I am using tikz-qtree, and I'd like to draw a curve separating a set of nodes from the rest of the tree. For example, \documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} ...
8
votes
3answers
294 views

Problem using macros to define tree substructures

Relatively simple problem: I want to use macros to define substructures of a tree. In the following example for illustration, I want to define some children (left and right) to be used several times ...
5
votes
1answer
416 views

Tree using Latex

I want to to reduce the size of the node to which they perceived better in my presentation; the problem is that the nodes are overlap. I have the code from Drawing a tree where many nodes have the ...
9
votes
1answer
647 views

draw an ellipse into a Tree picture -tikz package

I have draw a tree using tikz package like this \begin{tikzpicture} \tikzstyle{level 1}=[sibling distance=40mm] \tikzstyle{level 2}=[sibling distance=20mm] \tikzstyle{level 3}=[sibling ...
7
votes
1answer
859 views

How to draw a joining line between two picture tikz-pgf

I'am having draw two tree using the tikz-pgf package \begin{frame} \begin{columns}[c] \begin{column}{2cm} \begin{tikzpicture}[scale=0.5] \tikzstyle{level 1}=[sibling distance=10mm] ...
6
votes
1answer
2k views

TikZ: Draw a B+ Tree

Having consulted this and this thread, I think the multipart feature of TikZ might just do what I need (see picture below). Is there any way to hide the vertical lines between node parts and still be ...
3
votes
1answer
1k views

AVL Trees in TikZ: draw outside of node

I'm trying to draw an AVL tree with TikZ. I got the basic tree structure covered, but I'm not sure how to draw the balance factor outside of the node (see picture below). Any suggestions?
2
votes
1answer
1k views

TikZ - game tree representation with continuum of moves

I have been using TikZ to draw game-trees for my game-theory lectures (mostly using the automata package) but I could not figure out how to draw an arc across the edges the leave a given node. When we ...
1
vote
1answer
354 views

Aligning trees built with tikzpicture

I want to align some trees I am creating. I want the root node of all the trees to be on the same line. Currently for each tree I create, the root node of each subsequent tree is on a line after the ...
2
votes
1answer
386 views

Writing a line from two sibling nodes in a TikZ tree

Recently I am struggling on TikZ and it is really difficult to find options and solutions considering it is such a huge and comprehensive library. What I actually would like to do is drawing, in a ...
1
vote
1answer
717 views

Problems with tikz tree growth on secondary levels in trees

I have the following code: \begin{tikzpicture}[grow=right, sloped] \tikzstyle{level 1}=[level distance=1.3cm, sibling distance=1cm] \tikzstyle{level 2}=[level distance=1.2cm, sibling distance=1cm] ...
4
votes
2answers
2k views

How to draw a horizontal tree with branches on the right and left?

I need to draw trees but they should extend (from the root) on both sides. TikZ seems a good solution but do not how to manage it.
4
votes
1answer
1k views

TikZ-tree: edge-alignment in horizontal org-chart

I'm working on some sort of org-chart/hierarchy-tree and ran into issues with the edge-alignment. As a guideline I used the family-tree-TeXample. See the TeX.sx-dicussion here. However, the text in ...
6
votes
1answer
885 views

How to specify left and right node of a tikz-qtree

I'm drawing a binary tree using tikz-qtree. In my binary tree the order of children is important, so I need distinguish which edge is the left one and the right one. In my sample code I can't ...
3
votes
1answer
252 views

How to generate labels next to junctions and avoid self-collision with tikz?

I have an ASCII-art phylogenetic tree that looks (in part) like /------ PLN /-----+ 0.9 | \------ IL1 /--------+ 1.8 | | /----- PVD | ...
5
votes
1answer
443 views

How to align a vertical tree to the upper-left corner?

How do I align vertical trees to to the top? This is my current tree:       I want to get this tree:                  ^ That's a part of ...
4
votes
1answer
787 views

Visualizing broad Tikz tree graph

Modules of software I created produce Tikz QTree diagrams for visualisation. The problem is that some trees grow quite broad... Even when I try to massively shrink them by Tikz settings, I cannot ...