{tikz-trees} is for questions addressing issues related to trees in {tikz-pgf}.

learn more… | top users | synonyms

6
votes
2answers
74 views

Upside-down syntax trees for linguistics with horizontal lines

I know that syntax analysis can be done in Latex using using TikZ, but the tree-structure that produces isn't really used in my country. Here, we mostly use straight lines instead of hierarchy trees. ...
6
votes
3answers
79 views

Drawing vertical hierarchical n-ary tree in tikz

I am trying to draw a simple vertical tree to represent a hierarchical partition of a graph in communities. I have written some code to draw it in tikz, but I am not very satisfied of the result. My ...
16
votes
2answers
253 views
+50

Why does PGF/TikZ 3.0 draw my simple layered graph as non-planar by default?

I have two questions: If I’m reading §30.4 “Crossing Minimization” of the PGF/TikZ 3.0 manual correctly, the layered graph drawing algorithm should have crossing minimization enabled by default. So ...
7
votes
2answers
94 views

How do I draw merged red black tree into 2,3,4 tree in tikz?

I'm using tikz in study material and I want to show analogy between RB trees and B-trees (2,3,4 tree). I want my output looks something like this example from Wikipedia. For RB tree I'm using almost ...
1
vote
1answer
830 views

How do I draw a B+ tree with tikz in latex with more than 4 Key value pair in a node

I'm using child {node {1 \nodepart{two} 2 \nodepart{three} 3 \nodepart{four} 4 \nodepart{five} 5 \nodepart{six} 7}} to create a node in btree. However it seems that \nodepart{five} and ...
11
votes
1answer
311 views

Organigram in Latex. Vertical distance between nodes

I want to draw a organizational structure in form of an organigram. I found this solution and tried to adapt it. The code: \documentclass{article} \usepackage{tikz} ...
6
votes
1answer
168 views

How to plot a graph from its adjacency matrix?

For example, I want to plot a graph whose adjacency matrix is [0,1,0;1,0,1;0,1,0]. I first plot three points labeled by p1,p2,p3, and link the points p1,p2, p2,p3. For a general case, how to link the ...
5
votes
1answer
105 views

Still some of the flows missing in the flowchart

I have posted this question few days back but still I can't complete the algortihm. This is the uncompleted work done so far \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
3
votes
1answer
36 views

flow chart page size issue

I have been doing this since from last month. I want to draw this flow chart using \documentclass[a4paper,11pt]{report} but if I use above configuration (which I want to use) the flow chart does ...
3
votes
1answer
63 views

Organisation chart in latex using tikz

I would like to do a organisation chart with pictures, name, mobile.nr and email in each node... I tried with the tikz tree bit failed. How can i add pictures in a node? Can someone help me? Please
1
vote
1answer
63 views

Fault tree using TikZ : draw subtree at multiple levels

On lines of the Fault Tree in the TiKZ example (http://www.texample.net/tikz/examples/fault-tree/), I made the following Fault tree \node (g1) [event] {Project fails \\ E0} child {node ...
1
vote
0answers
77 views

Tree with some nodes and leafs in arbitrary places [closed]

I need to draw a quite abstract tree. This tree will visualize proof substituting in natural deduction (proof theory). I have a deduction (let's call it 'D1') of A with open assumption B and a ...
3
votes
1answer
135 views

Drawing arrows to nodes in trees

I try to draw rhe following three figures. The left is just a sequence of symbols NP V NP AP, the middle one is a unary branching tree and the right one is a binary brancing tree. I want to place a V ...
6
votes
2answers
435 views

How can I produce this tree diagram in LaTeX?

I want to create the tree diagram shown below in TeX code (with the Level 1... level 3 by the side of the tree diagram). Also, I would like to know how to just put bullet points under a box. For ...
8
votes
1answer
157 views

Why is this comment character required for correct rendering?

There is a comment between two child nodes down below, that if removed would cause tree to render completely wrong. Why? \documentclass[10pt]{article} \usepackage{tikz} \usetikzlibrary{trees} ...
5
votes
2answers
124 views

Blank page before TikZ family tree picture

I drew a family tree using TikZ with the positioning library, following in the footsteps of Gonzalo. The problem is that there is a blank page generated before the family tree. Can anyone explain why ...
9
votes
2answers
112 views

Using em unit instead of cm in text width shifts node label

When em unit is used in text width style directive, resulting label shifts ever so slightly to the left from its center position directed by preceeding text centered. When using cm unit, label is ...
5
votes
2answers
86 views

How to draw an arc between edges connecting child nodes?

I have the following code to generate a couple of trees. How do I draw arcs between the edges (marked in red in the figure)? \usetikzlibrary{intersections} \begin{tikzpicture} \node {Goto(P$_A$)} ...
6
votes
1answer
121 views

Hyperlinks from a TikZ tree

I am trying to combine this answer on how to create hyperlinks with a tree hierarchy taken from the filesystem tree example. While the basic hyperlinking works, I get an error message as soon as I ...
16
votes
1answer
338 views

nodes structure like file system

I would like to draw a picture that reflects some file structure. Below code works almost as expected. I need to adjust the connections between nodes so they don't start from the center of the bottom ...
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 ...
1
vote
1answer
80 views

problem with tikz-qtree

When I type set this example, I get I, love, my , country as four different nodes. I know I am not able to get a syntax for enclosing MULTIPLE words together for tikz-qtree. I tried to look ...
0
votes
0answers
27 views

What is the problem with this tikz-tree [duplicate]

This is just an example code of tikz-qtree. It fails to typeset. I am not getting what syntax error I am introducing even after looking carefully. Kindly help \documentclass{article} ...
2
votes
1answer
104 views

Distance between tree levels in Tikz, edges and node centering

Level distance does not seem to have any effect on the 1st node's distance from its children in the MWE below (tried adding level distance and playing with its values at every level, but it works only ...
3
votes
2answers
97 views

How to define edges in tikz

When I use absolute position for the edges, I get almost intersecting arrows. Here is my code. Kindly help. \begin{tikzpicture} [ node distance = 2cm and 0.8cm, >=stealth, ...
4
votes
1answer
194 views

Draw curved arrows between nodes in tikz-qtree

Is there a "clever" way to draw curved lines between nodes without them to go all through the picture? Here is my MWE : \documentclass[11pt]{beamer} \usepackage{ulem} \usepackage{tikz-qtree} ...
1
vote
2answers
106 views

how can I improve the look and impact of thi tikz tree diagram

\documentclass{beamer} \usepackage{tikz} \usetikzlibrary{shapes,arrows} % styles for flowcharts \tikzstyle{block} = [rectangle, draw, text width=5em, text centered, rounded corners, minimum ...
1
vote
0answers
54 views

How to Create an un-ordered tree in LaTeX?

Is there a way to create a tree in LaTeX without using any "ordering" ? So far, all the examples I came across are structured in this way child{ node [arn_n] {20} child{ ...
2
votes
1answer
79 views

PGF automatic determined vertical distance between tree nodes / level

I am trying to draw a tree overview and got an example from http://www.texample.net. But I have a problem with the vertical distance between the nodes (levels). Is there a way how tikz can ...
3
votes
2answers
3k views

Fit flowchart into one page

I am trying to create a flowchart using TikZ and i have few difficulties... My flowchart doesn't fit into one A4 page The text Yes \ No is on the line and not on the side of it. The size of decision ...
8
votes
2answers
508 views

How to draw empty nodes in tikz-qtree?

I'm new to tikz-qtree, and I would like to reproduce this figure in LaTeX: So far, I've managed to cobble this bit of code, but the results are a bit comical, as the empty nodes (those without ...
1
vote
1answer
239 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 ?
2
votes
1answer
91 views

How to improve the spacing of branches in a tree?

I am trying to build a tree but the length of branches is of uneven size. Moreover, I might need to change the labels to strings of shorter/larger length. Do you have some suggestions to improve this ...
3
votes
2answers
52 views

TikZ tree (not aligned text at a given level of the tree because use exponent)

I have a tree (see example) for which the text at level 1 is not aligned since one of the text uses some math expression with an exponent (i.e., $\mathtt{int}^2$). Any idea how to get all the texts ...
7
votes
2answers
313 views

Is this possible in Tikz?

I am wondering if it is possible to quickly create something like this in Tikz. In particular, I am concerned with making the zig-zag line, which has these properties: Each star is on a clearly ...
3
votes
1answer
143 views

How to draw AVL rectangle represention in TikZ?

I am trying to represent AVL's in an old way that I was taught and found more intuitive to display in comparison to most common books nowadays. The raw images with the features I am interested in are ...
3
votes
1answer
95 views

Forest: different growing directions for branches on the same level

Problem In TikZ, one can control the growing direction of a branch (and its sub-branches) by using the grow=<direction> key. In forest, however, the grow key only controls the growing direction ...
7
votes
2answers
211 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
176 views

Creating radial trees in TikZ

I am fairly new TikZ user and I am looking for a way to generate a radial tree similar this: or this: So far, I have two methods of doing this: 1) Program it manually - This involves quite a ...
5
votes
1answer
150 views

tikz parameterized circle node with t-lines inside within a tree diagram

I would like to draw a tree diagram consisting of circle nodes with three subparts divided by a t-line (see sample below). Instead of separating every tree node by hand I would like to only specify ...
7
votes
1answer
217 views

Clear and readable syntax style for tikz trees with edge labels and options

I'm fairly new to tikz and TeX but I don't have a problem writing the code for the tree. I just would like to have a human readable tree. Here's a minimal expample of the tree without edge labels or ...
5
votes
1answer
160 views

How to connect two parents to the same child, with parents not in the same tree?

I'm trying to draw a specific tree, with two parents node linked to the same child. The problem is that one of the parent is outside the main tree. Here's the code I have for the moment: ...
4
votes
0answers
161 views

How to draw this 3D H-layout recursive tree with Tikz? [closed]

Background: This is an extension problem from my last post How to draw the recursive H-Layout tree using Tikz?. The (2D) H-layout tree is actually from the VLSI layout problem in computer science. I ...
11
votes
2answers
281 views

How to draw the recursive H-Layout tree using Tikz?

The following image shows a recursive H-Layout tree. It is called H-Layout because of its H unit consisting of 7 nodes. My problem is: How to draw such tree in a recursive manner instead of ...
6
votes
2answers
988 views

Tikz mindmaps sharing children

Is it possible to have two mindmaps that share children? This is what I would like to have: Concept 1 is blue, and has some children. Concept 2 is red, and has some children. Concept 1 and two ...
6
votes
1answer
249 views

How do I create a Tikz mindmap that has two connected roots?

I am creating a mindmap that has multiple root concepts instead of just one. How can I create such a mindmap using Tikz? These are the mindmaps: \begin{tikzpicture}[small mindmap,concept ...
4
votes
3answers
1k views

Probability tree using TikZ for Bernoulli experiments?

Consider the tree below. Is there an easy way to label every left edge q, every right edge p, every left node f and every right node r, without doing it manually for every level? Second question: Is ...
3
votes
3answers
284 views

Overlap in graphing TikZ picture

I'm drawing trees in graph theory. Some of the nodes are overlapped. Can anyone help? % Red-black tree % Author: Madit \documentclass{article} \usepackage{tikz} ...
5
votes
2answers
316 views

More efficient way to draw movement arrow to roof in tikz-qtree

When drawing syntactic representations in linguistics, one often uses a triangle to represent a unit whose internal structure is irrelevant. This can be accomplished with the tikz-qtree command ...
3
votes
2answers
696 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 ...