forest tree nodes

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












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!



documentclassarticle
usepackageforest
begindocument

beginforest
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]
]
]
]
endforest
enddocument


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
    Feb 13 at 1:22











  • @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
    Feb 13 at 1:28











  • You could try documentclassarticle usepackageforest begindocument beginforest 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) endforestenddocument 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
    Feb 13 at 3:04











  • @marmot: thanks, edited question to be more clear

    – rrrrr
    Feb 13 at 3:10











  • To attract more users to your question, please add a preamble: documentclassarticle usepackageforest begindocument and enddocument, show the current output and then the sketch of what you want to achieve.

    – marmot
    Feb 13 at 3:15















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!



documentclassarticle
usepackageforest
begindocument

beginforest
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]
]
]
]
endforest
enddocument


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
    Feb 13 at 1:22











  • @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
    Feb 13 at 1:28











  • You could try documentclassarticle usepackageforest begindocument beginforest 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) endforestenddocument 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
    Feb 13 at 3:04











  • @marmot: thanks, edited question to be more clear

    – rrrrr
    Feb 13 at 3:10











  • To attract more users to your question, please add a preamble: documentclassarticle usepackageforest begindocument and enddocument, show the current output and then the sketch of what you want to achieve.

    – marmot
    Feb 13 at 3:15













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!



documentclassarticle
usepackageforest
begindocument

beginforest
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]
]
]
]
endforest
enddocument


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!



documentclassarticle
usepackageforest
begindocument

beginforest
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]
]
]
]
endforest
enddocument


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 Feb 13 at 3:16







rrrrr

















asked Feb 13 at 1:11









rrrrrrrrrr

20217




20217












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

    – marmot
    Feb 13 at 1:22











  • @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
    Feb 13 at 1:28











  • You could try documentclassarticle usepackageforest begindocument beginforest 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) endforestenddocument 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
    Feb 13 at 3:04











  • @marmot: thanks, edited question to be more clear

    – rrrrr
    Feb 13 at 3:10











  • To attract more users to your question, please add a preamble: documentclassarticle usepackageforest begindocument and enddocument, show the current output and then the sketch of what you want to achieve.

    – marmot
    Feb 13 at 3:15

















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

    – marmot
    Feb 13 at 1:22











  • @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
    Feb 13 at 1:28











  • You could try documentclassarticle usepackageforest begindocument beginforest 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) endforestenddocument 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
    Feb 13 at 3:04











  • @marmot: thanks, edited question to be more clear

    – rrrrr
    Feb 13 at 3:10











  • To attract more users to your question, please add a preamble: documentclassarticle usepackageforest begindocument and enddocument, show the current output and then the sketch of what you want to achieve.

    – marmot
    Feb 13 at 3:15
















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

– marmot
Feb 13 at 1:22





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

– marmot
Feb 13 at 1:22













@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
Feb 13 at 1:28





@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
Feb 13 at 1:28













You could try documentclassarticle usepackageforest begindocument beginforest 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) endforestenddocument 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
Feb 13 at 3:04





You could try documentclassarticle usepackageforest begindocument beginforest 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) endforestenddocument 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
Feb 13 at 3:04













@marmot: thanks, edited question to be more clear

– rrrrr
Feb 13 at 3:10





@marmot: thanks, edited question to be more clear

– rrrrr
Feb 13 at 3:10













To attract more users to your question, please add a preamble: documentclassarticle usepackageforest begindocument and enddocument, show the current output and then the sketch of what you want to achieve.

– marmot
Feb 13 at 3:15





To attract more users to your question, please add a preamble: documentclassarticle usepackageforest begindocument and enddocument, show the current output and then the sketch of what you want to achieve.

– marmot
Feb 13 at 3:15










2 Answers
2






active

oldest

votes


















3














This not really an answer but more to clarify if you want something of this sort.



documentclassarticle
usepackageforest
begindocument
beginforest
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
endforest
enddocument


enter image description here






share|improve this answer























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

    – rrrrr
    Feb 13 at 3:34






  • 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
    Feb 13 at 4:10


















2














Not a tikz-tree solution: I just try to replicate your graph using normal TikZ



documentclass[tikz,margin=3mm]standalone
usetikzlibrarycalc
begindocument
begintikzpicture
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);
endtikzpicture
enddocument


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.



    documentclassarticle
    usepackageforest
    begindocument
    beginforest
    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
    endforest
    enddocument


    enter image description here






    share|improve this answer























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

      – rrrrr
      Feb 13 at 3:34






    • 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
      Feb 13 at 4:10















    3














    This not really an answer but more to clarify if you want something of this sort.



    documentclassarticle
    usepackageforest
    begindocument
    beginforest
    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
    endforest
    enddocument


    enter image description here






    share|improve this answer























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

      – rrrrr
      Feb 13 at 3:34






    • 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
      Feb 13 at 4:10













    3












    3








    3







    This not really an answer but more to clarify if you want something of this sort.



    documentclassarticle
    usepackageforest
    begindocument
    beginforest
    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
    endforest
    enddocument


    enter image description here






    share|improve this answer













    This not really an answer but more to clarify if you want something of this sort.



    documentclassarticle
    usepackageforest
    begindocument
    beginforest
    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
    endforest
    enddocument


    enter image description here







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 13 at 3:25









    marmotmarmot

    106k5129243




    106k5129243












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

      – rrrrr
      Feb 13 at 3:34






    • 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
      Feb 13 at 4:10

















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

      – rrrrr
      Feb 13 at 3:34






    • 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
      Feb 13 at 4:10
















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

    – rrrrr
    Feb 13 at 3:34





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

    – rrrrr
    Feb 13 at 3:34




    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
    Feb 13 at 4:10





    @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
    Feb 13 at 4:10











    2














    Not a tikz-tree solution: I just try to replicate your graph using normal TikZ



    documentclass[tikz,margin=3mm]standalone
    usetikzlibrarycalc
    begindocument
    begintikzpicture
    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);
    endtikzpicture
    enddocument


    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
      usetikzlibrarycalc
      begindocument
      begintikzpicture
      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);
      endtikzpicture
      enddocument


      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
        usetikzlibrarycalc
        begindocument
        begintikzpicture
        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);
        endtikzpicture
        enddocument


        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
        usetikzlibrarycalc
        begindocument
        begintikzpicture
        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);
        endtikzpicture
        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 13 at 3:33









        JouleVJouleV

        4,98111239




        4,98111239



























            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

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)