forest tree nodes












3















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









share|improve this question

























  • Normally you can achieve this by adding appropriate tiers but in your tree the 0 nodes occur at all levels.

    – marmot
    3 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
    3 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
    1 hour 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
    1 hour ago
















3















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









share|improve this question

























  • Normally you can achieve this by adding appropriate tiers but in your tree the 0 nodes occur at all levels.

    – marmot
    3 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
    3 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
    1 hour 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
    1 hour ago














3












3








3








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









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago







rrrrr

















asked 3 hours ago









rrrrrrrrrr

20217




20217













  • Normally you can achieve this by adding appropriate tiers but in your tree the 0 nodes occur at all levels.

    – marmot
    3 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
    3 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
    1 hour 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
    1 hour ago



















  • Normally you can achieve this by adding appropriate tiers but in your tree the 0 nodes occur at all levels.

    – marmot
    3 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
    3 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
    1 hour 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
    1 hour ago

















Normally you can achieve this by adding appropriate tiers but in your tree the 0 nodes occur at all levels.

– marmot
3 hours ago





Normally you can achieve this by adding appropriate tiers but in your tree the 0 nodes occur at all levels.

– marmot
3 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
3 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
3 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
1 hour ago





@marmot: thanks, edited question to be more clear

– rrrrr
1 hour 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
1 hour 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
1 hour ago










2 Answers
2






active

oldest

votes


















3














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}


enter image description here






share|improve this answer
























  • precisely, thank you!!

    – rrrrr
    1 hour ago











  • As a follow-on, how might I annotate the aliased edges to from nonzero to 0 nodes?

    – rrrrr
    1 hour ago






  • 1





    @rrrrr What do you mean by "annotate"? Like putting labels on the edges? If so, always the same? (One can put labels on the path with draw (LX) -- ++ (-1.5cm,0) node[circle,left,draw,green]{0} node[midway,above]{text};.)

    – marmot
    42 mins ago



















2














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}


enter image description here






share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    3














    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}


    enter image description here






    share|improve this answer
























    • precisely, thank you!!

      – rrrrr
      1 hour ago











    • As a follow-on, how might I annotate the aliased edges to from nonzero to 0 nodes?

      – rrrrr
      1 hour ago






    • 1





      @rrrrr What do you mean by "annotate"? Like putting labels on the edges? If so, always the same? (One can put labels on the path with draw (LX) -- ++ (-1.5cm,0) node[circle,left,draw,green]{0} node[midway,above]{text};.)

      – marmot
      42 mins ago
















    3














    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}


    enter image description here






    share|improve this answer
























    • precisely, thank you!!

      – rrrrr
      1 hour ago











    • As a follow-on, how might I annotate the aliased edges to from nonzero to 0 nodes?

      – rrrrr
      1 hour ago






    • 1





      @rrrrr What do you mean by "annotate"? Like putting labels on the edges? If so, always the same? (One can put labels on the path with draw (LX) -- ++ (-1.5cm,0) node[circle,left,draw,green]{0} node[midway,above]{text};.)

      – marmot
      42 mins ago














    3












    3








    3







    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}


    enter image description here






    share|improve this answer













    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}


    enter image description here







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 1 hour ago









    marmotmarmot

    99.5k4115220




    99.5k4115220













    • precisely, thank you!!

      – rrrrr
      1 hour ago











    • As a follow-on, how might I annotate the aliased edges to from nonzero to 0 nodes?

      – rrrrr
      1 hour ago






    • 1





      @rrrrr What do you mean by "annotate"? Like putting labels on the edges? If so, always the same? (One can put labels on the path with draw (LX) -- ++ (-1.5cm,0) node[circle,left,draw,green]{0} node[midway,above]{text};.)

      – marmot
      42 mins ago



















    • precisely, thank you!!

      – rrrrr
      1 hour ago











    • As a follow-on, how might I annotate the aliased edges to from nonzero to 0 nodes?

      – rrrrr
      1 hour ago






    • 1





      @rrrrr What do you mean by "annotate"? Like putting labels on the edges? If so, always the same? (One can put labels on the path with draw (LX) -- ++ (-1.5cm,0) node[circle,left,draw,green]{0} node[midway,above]{text};.)

      – marmot
      42 mins ago

















    precisely, thank you!!

    – rrrrr
    1 hour ago





    precisely, thank you!!

    – rrrrr
    1 hour ago













    As a follow-on, how might I annotate the aliased edges to from nonzero to 0 nodes?

    – rrrrr
    1 hour ago





    As a follow-on, how might I annotate the aliased edges to from nonzero to 0 nodes?

    – rrrrr
    1 hour ago




    1




    1





    @rrrrr What do you mean by "annotate"? Like putting labels on the edges? If so, always the same? (One can put labels on the path with draw (LX) -- ++ (-1.5cm,0) node[circle,left,draw,green]{0} node[midway,above]{text};.)

    – marmot
    42 mins ago





    @rrrrr What do you mean by "annotate"? Like putting labels on the edges? If so, always the same? (One can put labels on the path with draw (LX) -- ++ (-1.5cm,0) node[circle,left,draw,green]{0} node[midway,above]{text};.)

    – marmot
    42 mins ago











    2














    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}


    enter image description here






    share|improve this answer




























      2














      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}


      enter image description here






      share|improve this answer


























        2












        2








        2







        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}


        enter image description here






        share|improve this answer













        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}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 1 hour ago









        JouleVJouleV

        2,808830




        2,808830






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Knooppunt Holsloot

            Altaar (religie)

            Gregoriusmis