Tagged Questions

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

learn more… | top users | synonyms

7
votes
1answer
288 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
286 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
193 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
359 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
1answer
398 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 ...
3
votes
3answers
503 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} ...
6
votes
2answers
460 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
1k 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
2answers
324 views

Creating a punktchain or flow diagram in tikz/pgf latex that is two column then merges to one and back to two

I have update the example code with some of the comments to get really close to what I want. Now I just want two lines coming out of filter 1 and filter 2 inline and with the same line style as ...
5
votes
2answers
203 views

How to converge various nodes with rectangular shapes and arrow in TikZ?

I'm very new to TikZ. I would like to join some nodes as shown in the attached image I've got some idea from this thread tree rectangular. However, I could not manage to implement this properly ...
2
votes
1answer
304 views

Draw a vertical flow chart [closed]

I would like to draw a Diagram like the one in the attached picture.
5
votes
2answers
258 views

Drawing a LISP expression as a tree

Somewhat inspired by How to automatically draw tree diagram of prime factorization with LaTeX? and mostly motivated by laziness, I'd like to be able to draw a tree defined by LISP syntax for a class ...
4
votes
1answer
154 views

Drawing tree in text (like inline math)

Is there a way to draw (with tikz/tikz-qtree) a tree directly in the text, like the inline math command? For a small tree with 2 or 3 nodes? Thanks!
6
votes
1answer
483 views

Label on a tree edge to a node that has children

I have a problem when trying to label an edge that goes to a node that itself has children. Here is what I would like to do: \begin{tikzpicture} \node {A} child { node {B} edge from parent ...
1
vote
0answers
39 views

How come it always says \tikzlibrary{calc} is missing? [duplicate]

Whenever I put 2 trees onto a document, the system always tells me I am missing \tikzlibrary{calc} on the second tree (I have the same line for both trees) on this line \draw[dashed,rounded ...
4
votes
1answer
247 views

How to draw search space tree in a dynamic manner

I am visualising the search space for a set of binary variables. I have done it for three variables before; and now I am extending it to six but seems a tedious work to do. Thus, I am wondering if ...
2
votes
0answers
134 views

Tikzpicture: Data from File

I want to create a number of trees from a series of input files. What syntax would the file need to be in to create the following tree? This is what I need done, but from a file and with loops ...
3
votes
1answer
401 views

Inserting floating text near decision tree arrows

How do I insert Yes and No beside the solid arrows? I tried putting node [near end, right] {Yes} after each node and child declaration but this just messes up the flow of the decision tree. Code ...
1
vote
1answer
315 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
0answers
99 views

TikZ-PGF child nodes in different locations

When I use TiKz to draw two trees, each in a nested picture, the position of the middle child of the second tree is different from the first. This is even though the code for the trees is basically ...
7
votes
1answer
228 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 ...
8
votes
2answers
310 views

How to highlight tree levels

How can i highlight tree levels to be some thing like that... I've drawn my tree with this code \documentclass[landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
1
vote
1answer
142 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. ...
11
votes
1answer
524 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} ...
3
votes
1answer
96 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. ...
2
votes
2answers
258 views

Style inheritance in TikZ trees

As I read the rule for style inheritance in a tree (pgfmanual 18.4, page 215), the naked [rect] below should mean that the node labeled "empty" be rectangular. But it's not. What am I doing wrong? ...
7
votes
1answer
313 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 ...
2
votes
1answer
498 views

Tikz-Tree: Arrow-style depending on parent node

I have drawn a tree in tikz with different styles for nodes (this simplified example has nodes with style a or b). The arrows from nodes to childs are always the same and I would like to apply ...
4
votes
1answer
275 views

TikZ - Smooth curve surrounding points without specifying control points

This is what I have right now: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,automata} \definecolor{light-gray}{gray}{0.6} \begin{document} \begin{tikzpicture}[line ...
5
votes
2answers
246 views

How to make TikZ draw right child before left

I'm trying to make a tree with two different colors of edges, black and gray. This is my code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,automata} ...
3
votes
1answer
309 views

Tikz example doesn't compile

I tested this example (from tikz package) example's link and my IDE TexMaker with MiKTeX returns an error ! Package pgfkeys Error: I do not know the key '/tikz/edge from parent fork dow I aalo ...
10
votes
1answer
364 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 ...
7
votes
1answer
327 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 ...
2
votes
1answer
193 views

How can I use fork style edges with explicitely positioned TikZ tree nodes?

As part of a graphical export facility, I try to render a tree in TikZ were all the node positions are exactly given and were the edges are fork-style. Doing that without the trees package demands ...
8
votes
1answer
241 views

Split tikz tree level in two parts

I would like to rebuild this graphic for my bachelorthesis. The problem that i ran into was, that i don't know how to split the graph in the second level, like shown in the picture above. I was ...
4
votes
1answer
145 views

Trees in latex : 2 nodes on the same line with tikzpicture

I'm following the tutorial/MWE provided at this link : http://www.texample.net/tikz/examples/filesystem-tree/ I would like to have to nodes at the same line, for example : [MAIN] ...
1
vote
1answer
197 views

Vertex with two labes (label in, weight out)

I use the tikzpicture environment to make graphs. I would like to make a vetex in the graph with comondo \Vertex with an internal value to the vertex (label's vertex) and another value outside ...
4
votes
1answer
312 views

How to shift a subtree of a tikz tree horizontally

how can I shift a subtree of a tikztree/qtree to the right without affecting the rest of the tree? Consider the following tree: \documentclass[tikz]{standalone} \usepackage[utf8]{inputenc} ...
3
votes
1answer
606 views

how could we create this tree diagram?

How could we create the following tree diagram in a seperate page which has horizontal landscape?
3
votes
1answer
241 views

tikz trees - children attached to wrong node

Consider \usetikzlibrary{calc,decorations.pathreplacing,shapes.symbols} \begin{tikzpicture} \node [shape=cloud,aspect=2,draw] {\strut} [level distance=6em,sibling distance=1.5em,grow=45] child ...
7
votes
1answer
1k views

Mindmap sibling angle in Tikz

I am using the following tikz example (original source) MWE: % Author: Till Tantau % Source: The PGF/TikZ manual \documentclass{article} \usepackage{tikz} \usetikzlibrary{mindmap,trees} ...
8
votes
1answer
271 views

Newton finite differences with Tikz

I am trying to picture Newton's finite differences method with a Tikz tree. Unfortunately, a few nodes are doubled. Is the approach wrong or is there a solution? \documentclass{article} ...
5
votes
1answer
783 views

Step-by-step revealing of tikz-tree using opacity trick and overlays in beamer

I am using the very elegant method from user Daniel described here to try and reveal my tikz-tree gradually. The brief idea is that the tree is always fully drawn to avoid "jumpy" nodes and make their ...
7
votes
1answer
631 views

Styles in TikZ trees not working as expected

I want to draw a "cut-out" region of a tree, and visually underline this by having dashed edges on top and on the bottom of my diagram (to symbolize the levels further up and further down). I am ...
3
votes
2answers
199 views

How to make Tikz Node Content fit?

I'm trying to make a decision tree with Tikz, but the text in my nodes overlap. Does anyone know how to fix that? Thanks so much! \begin{tikzpicture} \node {{Lorem ipsum dolor sit amet, ...
7
votes
1answer
301 views

How to align parent nodes to the left/top in a tree

I am drawing trees in LATEX. The qtree library seems to be what I need but the parent is always placed in the center of its children like this: parent / \ child_1 child_2 (I'm a new ...
3
votes
1answer
365 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 ...
8
votes
1answer
1k views

Multi-rooted Tree-like Structures and Nodes with Multiple Parents in LaTeX

The qtree package seems to facilitate the drawing of simple trees only. Is there a way to incorporate: Multiple roots & Nodes with multiple parents in a tree in LaTeX?
7
votes
2answers
516 views

How do I skip a level with tikz-qtree?

I'm trying to draw a tree, but I can't get it to skip one level. This is my code. \documentclass[border=1cm]{standalone} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} [every tree ...
3
votes
4answers
685 views

What is a more efficient way to draw this tree?

I have drawn the following tree in TikZ. What I don't like about it is that I have to manually adjust the sibling distance for each level; and the syntax is too cumbersome. It has been suggested ...