forest tree nodes
I'd like to clean up my tree by drawing an edge between parent nodes. In the following, I'd like to have the 0
nodes (which are children now) adjacent to the numbered nodes (ie on the "parent" level). How might I do this? Am I missing something simple? Thanks!
documentclass{article}
usepackage{forest}
begin{document}
begin{forest}
for tree={circle, draw, l sep=20pt, s sep=5 mm}
[0, green
[0, green]
[1, red
[0, green]
[2, red
[0, green]
[3, red]
]
[3, red
[0, green]
[2, red]
]
]
[2, red
[0, green]
[1, red
[0, green]
[3, red]
]
[3, red
[0, green]
[1, red]
]
]
[3, red
[0, green]
[1, red
[0, green]
[2, red]
]
[2, red
[0, green]
[1, red]
]
]
]
end{forest}
end{document}
by letting each 0
node be on the same level as the parents and connecting the parent.
That is, I'd like it to look something like
0 ----- 0
/
0 --- 1 2 --- 0
/
2 3
tikz-trees forest trees
add a comment |
I'd like to clean up my tree by drawing an edge between parent nodes. In the following, I'd like to have the 0
nodes (which are children now) adjacent to the numbered nodes (ie on the "parent" level). How might I do this? Am I missing something simple? Thanks!
documentclass{article}
usepackage{forest}
begin{document}
begin{forest}
for tree={circle, draw, l sep=20pt, s sep=5 mm}
[0, green
[0, green]
[1, red
[0, green]
[2, red
[0, green]
[3, red]
]
[3, red
[0, green]
[2, red]
]
]
[2, red
[0, green]
[1, red
[0, green]
[3, red]
]
[3, red
[0, green]
[1, red]
]
]
[3, red
[0, green]
[1, red
[0, green]
[2, red]
]
[2, red
[0, green]
[1, red]
]
]
]
end{forest}
end{document}
by letting each 0
node be on the same level as the parents and connecting the parent.
That is, I'd like it to look something like
0 ----- 0
/
0 --- 1 2 --- 0
/
2 3
tikz-trees forest trees
Normally you can achieve this by adding appropriatetier
s but in your tree the0
nodes occur at all levels.
– marmot
2 hours ago
@marmot: would it be possible to do that just with the first0
node, for example? As in adding two0
nodes at the top level, one with the remaining full tree, and one which is the final node?
– rrrrr
2 hours ago
You could trydocumentclass{article} usepackage{forest} begin{document} begin{forest} for tree={circle, draw, l sep=20pt, s sep=5 mm} [0, green [0, green,tier=murmel] [1, red [0, green,tier=murmel] [2, red [0, green] [3, red] ] [3, red [0, green] [2, red] ] ] (rest of your tree start with [2, red) end{forest}end{document}
but this doesn't look convincing to me. This is not because forest cannot do it, but because I do not understand your request.
– marmot
1 hour ago
@marmot: thanks, edited question to be more clear
– rrrrr
58 mins ago
To attract more users to your question, please add a preamble:documentclass{article} usepackage{forest} begin{document}
andend{document}
, show the current output and then the sketch of what you want to achieve.
– marmot
53 mins ago
add a comment |
I'd like to clean up my tree by drawing an edge between parent nodes. In the following, I'd like to have the 0
nodes (which are children now) adjacent to the numbered nodes (ie on the "parent" level). How might I do this? Am I missing something simple? Thanks!
documentclass{article}
usepackage{forest}
begin{document}
begin{forest}
for tree={circle, draw, l sep=20pt, s sep=5 mm}
[0, green
[0, green]
[1, red
[0, green]
[2, red
[0, green]
[3, red]
]
[3, red
[0, green]
[2, red]
]
]
[2, red
[0, green]
[1, red
[0, green]
[3, red]
]
[3, red
[0, green]
[1, red]
]
]
[3, red
[0, green]
[1, red
[0, green]
[2, red]
]
[2, red
[0, green]
[1, red]
]
]
]
end{forest}
end{document}
by letting each 0
node be on the same level as the parents and connecting the parent.
That is, I'd like it to look something like
0 ----- 0
/
0 --- 1 2 --- 0
/
2 3
tikz-trees forest trees
I'd like to clean up my tree by drawing an edge between parent nodes. In the following, I'd like to have the 0
nodes (which are children now) adjacent to the numbered nodes (ie on the "parent" level). How might I do this? Am I missing something simple? Thanks!
documentclass{article}
usepackage{forest}
begin{document}
begin{forest}
for tree={circle, draw, l sep=20pt, s sep=5 mm}
[0, green
[0, green]
[1, red
[0, green]
[2, red
[0, green]
[3, red]
]
[3, red
[0, green]
[2, red]
]
]
[2, red
[0, green]
[1, red
[0, green]
[3, red]
]
[3, red
[0, green]
[1, red]
]
]
[3, red
[0, green]
[1, red
[0, green]
[2, red]
]
[2, red
[0, green]
[1, red]
]
]
]
end{forest}
end{document}
by letting each 0
node be on the same level as the parents and connecting the parent.
That is, I'd like it to look something like
0 ----- 0
/
0 --- 1 2 --- 0
/
2 3
tikz-trees forest trees
tikz-trees forest trees
edited 52 mins ago
rrrrr
asked 2 hours ago
rrrrrrrrrr
1977
1977
Normally you can achieve this by adding appropriatetier
s but in your tree the0
nodes occur at all levels.
– marmot
2 hours ago
@marmot: would it be possible to do that just with the first0
node, for example? As in adding two0
nodes at the top level, one with the remaining full tree, and one which is the final node?
– rrrrr
2 hours ago
You could trydocumentclass{article} usepackage{forest} begin{document} begin{forest} for tree={circle, draw, l sep=20pt, s sep=5 mm} [0, green [0, green,tier=murmel] [1, red [0, green,tier=murmel] [2, red [0, green] [3, red] ] [3, red [0, green] [2, red] ] ] (rest of your tree start with [2, red) end{forest}end{document}
but this doesn't look convincing to me. This is not because forest cannot do it, but because I do not understand your request.
– marmot
1 hour ago
@marmot: thanks, edited question to be more clear
– rrrrr
58 mins ago
To attract more users to your question, please add a preamble:documentclass{article} usepackage{forest} begin{document}
andend{document}
, show the current output and then the sketch of what you want to achieve.
– marmot
53 mins ago
add a comment |
Normally you can achieve this by adding appropriatetier
s but in your tree the0
nodes occur at all levels.
– marmot
2 hours ago
@marmot: would it be possible to do that just with the first0
node, for example? As in adding two0
nodes at the top level, one with the remaining full tree, and one which is the final node?
– rrrrr
2 hours ago
You could trydocumentclass{article} usepackage{forest} begin{document} begin{forest} for tree={circle, draw, l sep=20pt, s sep=5 mm} [0, green [0, green,tier=murmel] [1, red [0, green,tier=murmel] [2, red [0, green] [3, red] ] [3, red [0, green] [2, red] ] ] (rest of your tree start with [2, red) end{forest}end{document}
but this doesn't look convincing to me. This is not because forest cannot do it, but because I do not understand your request.
– marmot
1 hour ago
@marmot: thanks, edited question to be more clear
– rrrrr
58 mins ago
To attract more users to your question, please add a preamble:documentclass{article} usepackage{forest} begin{document}
andend{document}
, show the current output and then the sketch of what you want to achieve.
– marmot
53 mins ago
Normally you can achieve this by adding appropriate
tier
s but in your tree the 0
nodes occur at all levels.– marmot
2 hours ago
Normally you can achieve this by adding appropriate
tier
s but in your tree the 0
nodes occur at all levels.– marmot
2 hours ago
@marmot: would it be possible to do that just with the first
0
node, for example? As in adding two 0
nodes at the top level, one with the remaining full tree, and one which is the final node?– rrrrr
2 hours ago
@marmot: would it be possible to do that just with the first
0
node, for example? As in adding two 0
nodes at the top level, one with the remaining full tree, and one which is the final node?– rrrrr
2 hours ago
You could try
documentclass{article} usepackage{forest} begin{document} begin{forest} for tree={circle, draw, l sep=20pt, s sep=5 mm} [0, green [0, green,tier=murmel] [1, red [0, green,tier=murmel] [2, red [0, green] [3, red] ] [3, red [0, green] [2, red] ] ] (rest of your tree start with [2, red) end{forest}end{document}
but this doesn't look convincing to me. This is not because forest cannot do it, but because I do not understand your request.– marmot
1 hour ago
You could try
documentclass{article} usepackage{forest} begin{document} begin{forest} for tree={circle, draw, l sep=20pt, s sep=5 mm} [0, green [0, green,tier=murmel] [1, red [0, green,tier=murmel] [2, red [0, green] [3, red] ] [3, red [0, green] [2, red] ] ] (rest of your tree start with [2, red) end{forest}end{document}
but this doesn't look convincing to me. This is not because forest cannot do it, but because I do not understand your request.– marmot
1 hour ago
@marmot: thanks, edited question to be more clear
– rrrrr
58 mins ago
@marmot: thanks, edited question to be more clear
– rrrrr
58 mins ago
To attract more users to your question, please add a preamble:
documentclass{article} usepackage{forest} begin{document}
and end{document}
, show the current output and then the sketch of what you want to achieve.– marmot
53 mins ago
To attract more users to your question, please add a preamble:
documentclass{article} usepackage{forest} begin{document}
and end{document}
, show the current output and then the sketch of what you want to achieve.– marmot
53 mins ago
add a comment |
2 Answers
2
active
oldest
votes
This not really an answer but more to clarify if you want something of this sort.
documentclass{article}
usepackage{forest}
begin{document}
begin{forest}
for tree={circle, draw, l sep=20pt, s sep=15mm}
[0, green,alias=L1
% [0, green]
[1, red,alias=L2
% [0, green]
[2, red,alias=L3
% [0, green]
[3, red]
]
[3, red,alias=L4
% [0, green]
[2, red]
]
]
[2, red,alias=L5
% [0, green]
[1, red,alias=L6
% [0, green]
[3, red]
]
[3, red,alias=L7
% [0, green]
[1, red]
]
]
[3, red,alias=L8
% [0, green]
[1, red,alias=L9
% [0, green]
[2, red]
]
[2, red,alias=L10
% [0, green]
[1, red]
]
]
]
foreach X in {1,...,10}
{ifnumX=1
draw (LX) -- ++ (-1.5cm,0) node[circle,left,draw,green]{0};
else
draw (LX) -- ++ (-1cm,0) node[circle,left,draw,green]{0};
fi}
end{forest}
end{document}
precisely, thank you!!
– rrrrr
42 mins ago
As a follow-on, how might I annotate the aliased edges to fromnonzero
to0
nodes?
– rrrrr
34 mins ago
add a comment |
Not a tikz-tree
solution: I just try to replicate your graph using normal TikZ
documentclass[tikz,margin=3mm]{standalone}
usetikzlibrary{calc}
begin{document}
begin{tikzpicture}
node [circle,draw] (0c) at (0,0) {0};
node [circle,draw] (1) at ($(0c)+(-120:1.5)$) {1};
node [circle,draw] (2r) at ($(0c)+(-60:1.5)$) {2};
node [circle,draw] (2l) at ($(1)+(-120:1.5)$) {2};
node [circle,draw] (3) at ($(1)+(-60:1.5)$) {3};
node [circle,draw] (0al) at ($(0c)+(-1.5,0)$) {0};
node [circle,draw] (0bl) at ($(1)+(-1.5,0)$) {0};
node [circle,draw] (0r) at ($(2r)+(1.5,0)$) {0};
draw (0c)--(1)
(0c)--(2r)
(1)--(2l)
(1)--(3)
(0c)--(0al)
(1)--(0bl)
(2r)--(0r);
end{tikzpicture}
end{document}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f474621%2fforest-tree-nodes%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
This not really an answer but more to clarify if you want something of this sort.
documentclass{article}
usepackage{forest}
begin{document}
begin{forest}
for tree={circle, draw, l sep=20pt, s sep=15mm}
[0, green,alias=L1
% [0, green]
[1, red,alias=L2
% [0, green]
[2, red,alias=L3
% [0, green]
[3, red]
]
[3, red,alias=L4
% [0, green]
[2, red]
]
]
[2, red,alias=L5
% [0, green]
[1, red,alias=L6
% [0, green]
[3, red]
]
[3, red,alias=L7
% [0, green]
[1, red]
]
]
[3, red,alias=L8
% [0, green]
[1, red,alias=L9
% [0, green]
[2, red]
]
[2, red,alias=L10
% [0, green]
[1, red]
]
]
]
foreach X in {1,...,10}
{ifnumX=1
draw (LX) -- ++ (-1.5cm,0) node[circle,left,draw,green]{0};
else
draw (LX) -- ++ (-1cm,0) node[circle,left,draw,green]{0};
fi}
end{forest}
end{document}
precisely, thank you!!
– rrrrr
42 mins ago
As a follow-on, how might I annotate the aliased edges to fromnonzero
to0
nodes?
– rrrrr
34 mins ago
add a comment |
This not really an answer but more to clarify if you want something of this sort.
documentclass{article}
usepackage{forest}
begin{document}
begin{forest}
for tree={circle, draw, l sep=20pt, s sep=15mm}
[0, green,alias=L1
% [0, green]
[1, red,alias=L2
% [0, green]
[2, red,alias=L3
% [0, green]
[3, red]
]
[3, red,alias=L4
% [0, green]
[2, red]
]
]
[2, red,alias=L5
% [0, green]
[1, red,alias=L6
% [0, green]
[3, red]
]
[3, red,alias=L7
% [0, green]
[1, red]
]
]
[3, red,alias=L8
% [0, green]
[1, red,alias=L9
% [0, green]
[2, red]
]
[2, red,alias=L10
% [0, green]
[1, red]
]
]
]
foreach X in {1,...,10}
{ifnumX=1
draw (LX) -- ++ (-1.5cm,0) node[circle,left,draw,green]{0};
else
draw (LX) -- ++ (-1cm,0) node[circle,left,draw,green]{0};
fi}
end{forest}
end{document}
precisely, thank you!!
– rrrrr
42 mins ago
As a follow-on, how might I annotate the aliased edges to fromnonzero
to0
nodes?
– rrrrr
34 mins ago
add a comment |
This not really an answer but more to clarify if you want something of this sort.
documentclass{article}
usepackage{forest}
begin{document}
begin{forest}
for tree={circle, draw, l sep=20pt, s sep=15mm}
[0, green,alias=L1
% [0, green]
[1, red,alias=L2
% [0, green]
[2, red,alias=L3
% [0, green]
[3, red]
]
[3, red,alias=L4
% [0, green]
[2, red]
]
]
[2, red,alias=L5
% [0, green]
[1, red,alias=L6
% [0, green]
[3, red]
]
[3, red,alias=L7
% [0, green]
[1, red]
]
]
[3, red,alias=L8
% [0, green]
[1, red,alias=L9
% [0, green]
[2, red]
]
[2, red,alias=L10
% [0, green]
[1, red]
]
]
]
foreach X in {1,...,10}
{ifnumX=1
draw (LX) -- ++ (-1.5cm,0) node[circle,left,draw,green]{0};
else
draw (LX) -- ++ (-1cm,0) node[circle,left,draw,green]{0};
fi}
end{forest}
end{document}
This not really an answer but more to clarify if you want something of this sort.
documentclass{article}
usepackage{forest}
begin{document}
begin{forest}
for tree={circle, draw, l sep=20pt, s sep=15mm}
[0, green,alias=L1
% [0, green]
[1, red,alias=L2
% [0, green]
[2, red,alias=L3
% [0, green]
[3, red]
]
[3, red,alias=L4
% [0, green]
[2, red]
]
]
[2, red,alias=L5
% [0, green]
[1, red,alias=L6
% [0, green]
[3, red]
]
[3, red,alias=L7
% [0, green]
[1, red]
]
]
[3, red,alias=L8
% [0, green]
[1, red,alias=L9
% [0, green]
[2, red]
]
[2, red,alias=L10
% [0, green]
[1, red]
]
]
]
foreach X in {1,...,10}
{ifnumX=1
draw (LX) -- ++ (-1.5cm,0) node[circle,left,draw,green]{0};
else
draw (LX) -- ++ (-1cm,0) node[circle,left,draw,green]{0};
fi}
end{forest}
end{document}
answered 43 mins ago
marmotmarmot
99.5k4115220
99.5k4115220
precisely, thank you!!
– rrrrr
42 mins ago
As a follow-on, how might I annotate the aliased edges to fromnonzero
to0
nodes?
– rrrrr
34 mins ago
add a comment |
precisely, thank you!!
– rrrrr
42 mins ago
As a follow-on, how might I annotate the aliased edges to fromnonzero
to0
nodes?
– rrrrr
34 mins ago
precisely, thank you!!
– rrrrr
42 mins ago
precisely, thank you!!
– rrrrr
42 mins ago
As a follow-on, how might I annotate the aliased edges to from
nonzero
to 0
nodes?– rrrrr
34 mins ago
As a follow-on, how might I annotate the aliased edges to from
nonzero
to 0
nodes?– rrrrr
34 mins ago
add a comment |
Not a tikz-tree
solution: I just try to replicate your graph using normal TikZ
documentclass[tikz,margin=3mm]{standalone}
usetikzlibrary{calc}
begin{document}
begin{tikzpicture}
node [circle,draw] (0c) at (0,0) {0};
node [circle,draw] (1) at ($(0c)+(-120:1.5)$) {1};
node [circle,draw] (2r) at ($(0c)+(-60:1.5)$) {2};
node [circle,draw] (2l) at ($(1)+(-120:1.5)$) {2};
node [circle,draw] (3) at ($(1)+(-60:1.5)$) {3};
node [circle,draw] (0al) at ($(0c)+(-1.5,0)$) {0};
node [circle,draw] (0bl) at ($(1)+(-1.5,0)$) {0};
node [circle,draw] (0r) at ($(2r)+(1.5,0)$) {0};
draw (0c)--(1)
(0c)--(2r)
(1)--(2l)
(1)--(3)
(0c)--(0al)
(1)--(0bl)
(2r)--(0r);
end{tikzpicture}
end{document}
add a comment |
Not a tikz-tree
solution: I just try to replicate your graph using normal TikZ
documentclass[tikz,margin=3mm]{standalone}
usetikzlibrary{calc}
begin{document}
begin{tikzpicture}
node [circle,draw] (0c) at (0,0) {0};
node [circle,draw] (1) at ($(0c)+(-120:1.5)$) {1};
node [circle,draw] (2r) at ($(0c)+(-60:1.5)$) {2};
node [circle,draw] (2l) at ($(1)+(-120:1.5)$) {2};
node [circle,draw] (3) at ($(1)+(-60:1.5)$) {3};
node [circle,draw] (0al) at ($(0c)+(-1.5,0)$) {0};
node [circle,draw] (0bl) at ($(1)+(-1.5,0)$) {0};
node [circle,draw] (0r) at ($(2r)+(1.5,0)$) {0};
draw (0c)--(1)
(0c)--(2r)
(1)--(2l)
(1)--(3)
(0c)--(0al)
(1)--(0bl)
(2r)--(0r);
end{tikzpicture}
end{document}
add a comment |
Not a tikz-tree
solution: I just try to replicate your graph using normal TikZ
documentclass[tikz,margin=3mm]{standalone}
usetikzlibrary{calc}
begin{document}
begin{tikzpicture}
node [circle,draw] (0c) at (0,0) {0};
node [circle,draw] (1) at ($(0c)+(-120:1.5)$) {1};
node [circle,draw] (2r) at ($(0c)+(-60:1.5)$) {2};
node [circle,draw] (2l) at ($(1)+(-120:1.5)$) {2};
node [circle,draw] (3) at ($(1)+(-60:1.5)$) {3};
node [circle,draw] (0al) at ($(0c)+(-1.5,0)$) {0};
node [circle,draw] (0bl) at ($(1)+(-1.5,0)$) {0};
node [circle,draw] (0r) at ($(2r)+(1.5,0)$) {0};
draw (0c)--(1)
(0c)--(2r)
(1)--(2l)
(1)--(3)
(0c)--(0al)
(1)--(0bl)
(2r)--(0r);
end{tikzpicture}
end{document}
Not a tikz-tree
solution: I just try to replicate your graph using normal TikZ
documentclass[tikz,margin=3mm]{standalone}
usetikzlibrary{calc}
begin{document}
begin{tikzpicture}
node [circle,draw] (0c) at (0,0) {0};
node [circle,draw] (1) at ($(0c)+(-120:1.5)$) {1};
node [circle,draw] (2r) at ($(0c)+(-60:1.5)$) {2};
node [circle,draw] (2l) at ($(1)+(-120:1.5)$) {2};
node [circle,draw] (3) at ($(1)+(-60:1.5)$) {3};
node [circle,draw] (0al) at ($(0c)+(-1.5,0)$) {0};
node [circle,draw] (0bl) at ($(1)+(-1.5,0)$) {0};
node [circle,draw] (0r) at ($(2r)+(1.5,0)$) {0};
draw (0c)--(1)
(0c)--(2r)
(1)--(2l)
(1)--(3)
(0c)--(0al)
(1)--(0bl)
(2r)--(0r);
end{tikzpicture}
end{document}
answered 35 mins ago
JouleVJouleV
2,798830
2,798830
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f474621%2fforest-tree-nodes%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Normally you can achieve this by adding appropriate
tier
s but in your tree the0
nodes occur at all levels.– marmot
2 hours ago
@marmot: would it be possible to do that just with the first
0
node, for example? As in adding two0
nodes at the top level, one with the remaining full tree, and one which is the final node?– rrrrr
2 hours ago
You could try
documentclass{article} usepackage{forest} begin{document} begin{forest} for tree={circle, draw, l sep=20pt, s sep=5 mm} [0, green [0, green,tier=murmel] [1, red [0, green,tier=murmel] [2, red [0, green] [3, red] ] [3, red [0, green] [2, red] ] ] (rest of your tree start with [2, red) end{forest}end{document}
but this doesn't look convincing to me. This is not because forest cannot do it, but because I do not understand your request.– marmot
1 hour ago
@marmot: thanks, edited question to be more clear
– rrrrr
58 mins ago
To attract more users to your question, please add a preamble:
documentclass{article} usepackage{forest} begin{document}
andend{document}
, show the current output and then the sketch of what you want to achieve.– marmot
53 mins ago