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

learn more… | top users | synonyms

20
votes
3answers
5k views

Drawing a directory listing a la the tree command in TikZ

Good day everyone - Is there a fast and efficient way to draw directory tree structures (aka depth-indented listings) like the unix's tree command, that is, is there a way to draw the following using ...
9
votes
2answers
2k views

Joining two branches of a family tree

I'm trying to write out a family tree for a friend, and I have a few minor issues. My code is \documentclass{article} \usepackage{tikz-qtree} \begin{document} \tikzset{edge from parent/.style= ...
11
votes
1answer
1k views

Drawing a tree where many nodes have the same child in TikZ

I'm trying the draw a tree using the TikZ package, but I don't know how to draw a child node that has many parents. An example for that, is given by this picture My problem is how to draw the level ...
8
votes
2answers
1k views

Tree-like diagram (flow chart?) showing selection of scientific papers when reviewing

I know the title I came up with is not self-explanatory, but I will show straight on some real life examples: Part 1, Question 1: Which package(s) is(are) closely suited for such diagrams? I ...
14
votes
2answers
1k views

Highlight a group of nodes in a tikz tree

To make it simple, I want to highlight a group of tikz nodes like in the following picture It was borrowed from the JLatexEditor. I would like to know which Tikz commands I can use to do the job in ...
16
votes
2answers
2k views

Genogram or family tree with PGF/TikZ

Since it has been recommended to me in Stack Overflow to post it here, I will do so: I want to draw a genogram with LaTeX. I tried to do this with TikZ, but since you need to model at least 3 ...
14
votes
2answers
3k views

How to decrease the size of single node in mindmap?

In tikz's mindmap, I want to change the concept size for individual parents or children (not the entire system). It is simply possible to increase the size of a child node, by introducing minimum size ...
10
votes
2answers
807 views

How do I center this qtree?

I am trying to draw a tree using the tikz-qtree package, however I am having issues with the nodes of the tree being not centered. \documentclass[10pt]{article} \usepackage{tikz} ...
7
votes
1answer
2k views

Horizontal hierarchy tree in tikz-qtree: bad layout for longer node-names

I'm trying to set a number of hierarchy trees directly in LaTeX and found tikz-qtree quite helpful for this task. Since the descriptions for the nodes and children are rather long words, the layout ...
17
votes
5answers
6k views

drawing tree using tikz, child overlap

I am trying to draw a tree but unfortunately i have some childs overlap each other,I increased the sibling distance , even i have used the option scale but i have the same problem. here is my code : ...
16
votes
2answers
7k views

How do I make an unbalanced binary tree?

How do I draw just a tree with one child using tikzpicture? As shown in the picture, I want to have a tree like (1). But I have only been succesful in getting a picture like (2) and (3) using: ...
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?
8
votes
1answer
638 views

Changing the indentation of a Tikz tree

I've drawn a directory listing style tree using code similar to that found in Drawing a directory listing a la the tree command in TikZ. I'll repeat it here for clarity ...
9
votes
1answer
1k views

Mindmap/trees in TikZ

I can't get the following tikz examples to work (PGF manual 2.10, page 255). Most likely I can find a solution here that will save me time. Error: ! Missing \endcsname inserted. <to be read ...
3
votes
4answers
734 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 ...
4
votes
3answers
925 views

Highlighting some nodes of a TikZ binomial tree

In this binomial tree I have 4 columns of nodes. I want the entire last column to be highlighted with light blue, and perhaps a border around this highlighting. Something like a opaque blue-ish ...
4
votes
1answer
617 views

how to draw a process flow figure?

I want to draw the process like in the picture using the code below, however, there is some problem, would someone help me? \usepackage[latin1]{inputenc} \usetikzlibrary{trees} ...
8
votes
1answer
1k views

How to shade mindmap concepts?

I tried to add a shade on my mindmap's concepts with \begin{tikzpicture}[mindmap, text=white, every concept/.append style={circle,shading=ball, ball color=black!20!white!20}] but the problem is ...
6
votes
1answer
605 views

tikz-qtree spoils tikz trees

When I enable the tikz-qtree package, the tree I am drawing with the tikz trees library looks different. Specifically the edges are no longer pointing to proper places on the nodes. In the example ...
4
votes
1answer
3k views

Probability Tree-diagram with TikZ

Thanks for helping me out. How can I make the following tree-diagrams? http://www.vias.org/tmdatanaleng/cc_prob_cond_independ.html
16
votes
1answer
501 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 ...
13
votes
4answers
467 views

How to plot a graph from its adjacency matrix and coordinates of vertices?

A similar question is here. If we give all the data of the vertices's coordinates and the graph's adjacency matrix, how to plot it with tikz, pstrick or other tool in tex? here are the data of ...
11
votes
1answer
594 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 ...
10
votes
2answers
637 views

Hyperlinked nodes in TikZ mindmap

I am trying to make a small mindmap such that some of the child nodes are hyperlinked. I tried to follow the advice given here, about the new node style hyperlink node, but the following MWE compiles ...
11
votes
1answer
420 views

How to plot a graph from its adjacency matrix (coordinates manually specified)?

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 ...
6
votes
2answers
2k views

How to modify the distance between branches when drawing trees using TiKZ?

I want to modify the distance between a parent node and a child node when drawing a tree using TiKZ package. I looked at the example at TiKZ site, and add a property called sibling distance. However, ...
5
votes
1answer
807 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 ...
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
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 ...
10
votes
1answer
1k views

macro for empty nodes in tikz-qtree

I'm trying to define a macro for writing empty nodes in a binary tree using tikz-qtree. Referring to the code below, I want the string \missing in my code to be replaced by \edge[draw=none]; {} as-is ...
10
votes
3answers
1k views

Drawing a tree of grids

I need to draw a game tree that is similar to the image below. Is there any way to do this using the Tikz package so that the grids can simply be added as nodes?
5
votes
3answers
1k views

Draw a binary tree using tikz

I'm trying to draw a binary tree using tikz package. If I use only circle, I get a tree. But I want to represent a subtree using a triangle. Now the tree gets uneven. I want to attach the arrows to ...
5
votes
1answer
182 views

TikZ: Re-arranging the hierarchical diagram

I was quite impressed by the solution given by "cfr" for the question posted here. Can you suggest a method to change the two main children (labelled Projection matrix Theory and Reconstruction ...
5
votes
1answer
207 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 ...
11
votes
2answers
342 views

Recursive Stern-Brocot tree definition

I am trying to build a Stern-Brocot tree (enumeration of rationals). The result is nearly acceptable, but I am still dissatisfied with the following points. The edge from the parents goes to the ...
8
votes
3answers
313 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
186 views

how to draw part of the picture to be line and the other part to be the “\leadsto” symbol

Please refer to the answer of how to draw arrow that looks like the symbol "\leadsto" in latex? in the picture all lines are changed to the \leadsto: Now i want to keep the connector ...
5
votes
1answer
1k views

Adding child nodes to child nodes in TikZ Mindmap

I'm trying to build a mind map in TikZ and am having numerous problems. I have only a very basic grasp of TeX and would like some help. I found a source and replaced text to create my first steps. ...
4
votes
1answer
617 views

How to draw custom nodes attached to tikz-qtree?

I want to draw a tree which is similar to the Merge sort recursion tree in this Tikz sample from TeXample.net: However, I don't want to draw all the + and = signs, I just want two columns: one from ...
3
votes
1answer
179 views

how to draw special line in a picture

Here is my current code for the picture: \documentclass[a4paper,12pt]{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \resizebox{.5\textwidth}{!}{ \tikzset{level 1/.style={level ...
2
votes
0answers
266 views

Vertical trees with TikZ [duplicate]

Possible Duplicate: Drawing a directory listing a la the tree command in TikZ Is there a way to configure the trees drawn by TikZ to have child nodes at the same level listed below each ...
1
vote
2answers
309 views

construction set of tree

I have three trees in latex , I have this construction : with his code : \documentclass[openright,a4paper,11pt,french]{report} \usepackage{tikz} \begin{document} \begin{tikzpicture}[shorten ...
22
votes
2answers
740 views

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 ...
15
votes
1answer
843 views

How to typeset a prefix tree (aka trie)

I am currently trying to typeset a prefix tree (also called a trie). I can make a tree just fine with TiKZ, but I find myself unable to make the prefix tree nodes draw acceptably. I have attached a ...
9
votes
1answer
786 views

Family tree with multiple marriage ties

I'm trying to build a family tree, and among the many examples I've found online this one has been the most useful: How can I improve this family tree in TikZ? However, there are two things I cannot ...
8
votes
1answer
275 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} ...
7
votes
1answer
767 views

How to draw the structure with rectangles inside

I wish to draw the flow like in the picture using the code below, however, I found it is very hard to locate the rectangles by using Coordinate. Is there any better way to do this? Here is the code ...
8
votes
2answers
939 views

Tree in tikz, with triangles standing for sub-trees

I need to draw a tree in tikz similar to this one: What I CAN'T DO is drawing the dashed triangle leaves (standing for unspecified subtrees). I think I can manage to draw the legend by myself, and ...
4
votes
1answer
260 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 ...
12
votes
1answer
480 views

Nested node class with pictogram decoration

I'm wondering how can I define custom TikZ node class mynode thats allows my to use following syntax: \node [mynode,fill=yellow!40] {component} \child{ \node [mynode,fill=yellow!40] ...