Compiling problem, connecting nodes thru edges is not workingTikZ: placing a line (transformed into a...

Equivalent to "source" in OpenBSD?

Did Amazon pay $0 in taxes last year?

Using std::set container for range items

How to mitigate "bandwagon attacking" from players?

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Is the set of paths between any two points moving only in units on the plane countable or uncountable?

What are these green text/line displays shown during the livestream of Crew Dragon's approach to dock with the ISS?

How to speed up a process

Tcolorbox as an item in list environment

If nine coins are tossed, what is the probability that the number of heads is even?

"Murder!", said the knight

Are small insurances worth it

What if I store 10TB on azure servers and then keep the vm powered off?

The need of reserving one's ability in job interviews

Test pad's ESD protection

Use comma instead of & in table

Skis versus snow shoes - when to choose which for travelling the backcountry?

Get length of the longest sequence of numbers with the same sign

How to reorder street address on checkout page in magento 2?

How would we write a misogynistic character without offending people?

What is knowledge and vision?

What to do when being responsible for data protection in your lab, yet advice is ignored?

Is divide-by-zero a security vulnerability?

Manipulate scientific format without the "e"



Compiling problem, connecting nodes thru edges is not working


TikZ: placing a line (transformed into a sinusoidal shape) parallel to an edge connecting nodesHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeHow to draw an arc between edges connecting child nodes?Relating tree nodes in forest to content in a tableTikz connecting nodes with draw to problemTikz graphs, how to get radial edges connecting the centers of my nodesTikZ tree - Connecting the first edgesan edge connecting multiple nodesMake graph where nodes and connecting edges are circles













1















I am having an issue when trying to connect the edges of some nodes (I am doing this on overleaf). If I only choose one of the nodes at the top and connect the edges with the nodes I intend to use on the bottom, it will have no issue compiling. I try to do this with the other node on the top as written in my code but it does not compile. I believe there is a more efficient way to do this, but I am don't see any mistake in what I have. I hope someone can please help me with this. Any help, much appreciated.



documentclass[a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{amssymb}
usepackage{tikz}
usetikzlibrary{calc,shapes}
letoldemptysetemptyset
letemptysetvarnothing
begin{document}
begin{tikzpicture}[every node/.style={circle,draw=black},scale=0.75,every
node/.append style={transform shape}]
node(tre1)[circle,draw,scale=0.5]{
begin{tikzpicture}
node(one){1}
child{node{2}}
child{node{3}};
end{tikzpicture}
};
node(tre2)[circle,draw,scale=0.5] [right of=tre1,xshift=6.2cm]{
begin{tikzpicture}
node(tree2){1}
child{node{2}
child{node{3}}};
end{tikzpicture}
};
node at ($(tre1) + (-3.5,-4.5)$)[circle,draw,scale=0.65](tr1){
begin{tikzpicture}
node(one){1}
child{node{2}};
node[xshift=1cm]{3};
end{tikzpicture}
};
node(tr2)[circle,draw,scale=0.65][right of=tr1,xshift=2.8cm]{
begin{tikzpicture}
node(one){1}
child{node{3}};
node[right of=one]{2};
end{tikzpicture}
};
node(tr3)[circle,draw,scale=0.75][right of=tr2,xshift=2.25cm]{
begin{tikzpicture}
node(two){2}
child{node{3}};
node[right of=one]{1};
end{tikzpicture}
};
node at ($(tre1) + (2,-13.5)$)(root)[circle,draw,scale=0.9]{
begin{tikzpicture}
node(one){1};
node[below of=one](two){2};
node[right of=one]{3};
node[right of=two]{4};
end{tikzpicture}
};
path[thick](tre1.south)edge node[sloped,yshift=0.5em,draw=none,fill=none]{}
(tr1.north)
edge node[sloped,yshift=0.5em,draw=none,fill=none]{}(tr2.north)
path[thick](tre2.south)edge node[sloped,yshift=0.5em,draw=none,fill=none]{}
(tr3.north)

end{tikzpicture};
end{document}


enter image description hereend{document}










share|improve this question


















  • 1





    There are missing ;.

    – marmot
    21 hours ago






  • 1





    And your approach nests tikzpictures. Don't! You can use constructions of the type begin{scope}[local bounding box=fone,scale=0.5] node(one){1} child{node{2}} child{node{3}}; end{scope} node(tre1)[circle,draw,fit=(fone)]{}; which requires the fit library and you may also want to load positioning.

    – marmot
    20 hours ago
















1















I am having an issue when trying to connect the edges of some nodes (I am doing this on overleaf). If I only choose one of the nodes at the top and connect the edges with the nodes I intend to use on the bottom, it will have no issue compiling. I try to do this with the other node on the top as written in my code but it does not compile. I believe there is a more efficient way to do this, but I am don't see any mistake in what I have. I hope someone can please help me with this. Any help, much appreciated.



documentclass[a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{amssymb}
usepackage{tikz}
usetikzlibrary{calc,shapes}
letoldemptysetemptyset
letemptysetvarnothing
begin{document}
begin{tikzpicture}[every node/.style={circle,draw=black},scale=0.75,every
node/.append style={transform shape}]
node(tre1)[circle,draw,scale=0.5]{
begin{tikzpicture}
node(one){1}
child{node{2}}
child{node{3}};
end{tikzpicture}
};
node(tre2)[circle,draw,scale=0.5] [right of=tre1,xshift=6.2cm]{
begin{tikzpicture}
node(tree2){1}
child{node{2}
child{node{3}}};
end{tikzpicture}
};
node at ($(tre1) + (-3.5,-4.5)$)[circle,draw,scale=0.65](tr1){
begin{tikzpicture}
node(one){1}
child{node{2}};
node[xshift=1cm]{3};
end{tikzpicture}
};
node(tr2)[circle,draw,scale=0.65][right of=tr1,xshift=2.8cm]{
begin{tikzpicture}
node(one){1}
child{node{3}};
node[right of=one]{2};
end{tikzpicture}
};
node(tr3)[circle,draw,scale=0.75][right of=tr2,xshift=2.25cm]{
begin{tikzpicture}
node(two){2}
child{node{3}};
node[right of=one]{1};
end{tikzpicture}
};
node at ($(tre1) + (2,-13.5)$)(root)[circle,draw,scale=0.9]{
begin{tikzpicture}
node(one){1};
node[below of=one](two){2};
node[right of=one]{3};
node[right of=two]{4};
end{tikzpicture}
};
path[thick](tre1.south)edge node[sloped,yshift=0.5em,draw=none,fill=none]{}
(tr1.north)
edge node[sloped,yshift=0.5em,draw=none,fill=none]{}(tr2.north)
path[thick](tre2.south)edge node[sloped,yshift=0.5em,draw=none,fill=none]{}
(tr3.north)

end{tikzpicture};
end{document}


enter image description hereend{document}










share|improve this question


















  • 1





    There are missing ;.

    – marmot
    21 hours ago






  • 1





    And your approach nests tikzpictures. Don't! You can use constructions of the type begin{scope}[local bounding box=fone,scale=0.5] node(one){1} child{node{2}} child{node{3}}; end{scope} node(tre1)[circle,draw,fit=(fone)]{}; which requires the fit library and you may also want to load positioning.

    – marmot
    20 hours ago














1












1








1








I am having an issue when trying to connect the edges of some nodes (I am doing this on overleaf). If I only choose one of the nodes at the top and connect the edges with the nodes I intend to use on the bottom, it will have no issue compiling. I try to do this with the other node on the top as written in my code but it does not compile. I believe there is a more efficient way to do this, but I am don't see any mistake in what I have. I hope someone can please help me with this. Any help, much appreciated.



documentclass[a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{amssymb}
usepackage{tikz}
usetikzlibrary{calc,shapes}
letoldemptysetemptyset
letemptysetvarnothing
begin{document}
begin{tikzpicture}[every node/.style={circle,draw=black},scale=0.75,every
node/.append style={transform shape}]
node(tre1)[circle,draw,scale=0.5]{
begin{tikzpicture}
node(one){1}
child{node{2}}
child{node{3}};
end{tikzpicture}
};
node(tre2)[circle,draw,scale=0.5] [right of=tre1,xshift=6.2cm]{
begin{tikzpicture}
node(tree2){1}
child{node{2}
child{node{3}}};
end{tikzpicture}
};
node at ($(tre1) + (-3.5,-4.5)$)[circle,draw,scale=0.65](tr1){
begin{tikzpicture}
node(one){1}
child{node{2}};
node[xshift=1cm]{3};
end{tikzpicture}
};
node(tr2)[circle,draw,scale=0.65][right of=tr1,xshift=2.8cm]{
begin{tikzpicture}
node(one){1}
child{node{3}};
node[right of=one]{2};
end{tikzpicture}
};
node(tr3)[circle,draw,scale=0.75][right of=tr2,xshift=2.25cm]{
begin{tikzpicture}
node(two){2}
child{node{3}};
node[right of=one]{1};
end{tikzpicture}
};
node at ($(tre1) + (2,-13.5)$)(root)[circle,draw,scale=0.9]{
begin{tikzpicture}
node(one){1};
node[below of=one](two){2};
node[right of=one]{3};
node[right of=two]{4};
end{tikzpicture}
};
path[thick](tre1.south)edge node[sloped,yshift=0.5em,draw=none,fill=none]{}
(tr1.north)
edge node[sloped,yshift=0.5em,draw=none,fill=none]{}(tr2.north)
path[thick](tre2.south)edge node[sloped,yshift=0.5em,draw=none,fill=none]{}
(tr3.north)

end{tikzpicture};
end{document}


enter image description hereend{document}










share|improve this question














I am having an issue when trying to connect the edges of some nodes (I am doing this on overleaf). If I only choose one of the nodes at the top and connect the edges with the nodes I intend to use on the bottom, it will have no issue compiling. I try to do this with the other node on the top as written in my code but it does not compile. I believe there is a more efficient way to do this, but I am don't see any mistake in what I have. I hope someone can please help me with this. Any help, much appreciated.



documentclass[a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{amssymb}
usepackage{tikz}
usetikzlibrary{calc,shapes}
letoldemptysetemptyset
letemptysetvarnothing
begin{document}
begin{tikzpicture}[every node/.style={circle,draw=black},scale=0.75,every
node/.append style={transform shape}]
node(tre1)[circle,draw,scale=0.5]{
begin{tikzpicture}
node(one){1}
child{node{2}}
child{node{3}};
end{tikzpicture}
};
node(tre2)[circle,draw,scale=0.5] [right of=tre1,xshift=6.2cm]{
begin{tikzpicture}
node(tree2){1}
child{node{2}
child{node{3}}};
end{tikzpicture}
};
node at ($(tre1) + (-3.5,-4.5)$)[circle,draw,scale=0.65](tr1){
begin{tikzpicture}
node(one){1}
child{node{2}};
node[xshift=1cm]{3};
end{tikzpicture}
};
node(tr2)[circle,draw,scale=0.65][right of=tr1,xshift=2.8cm]{
begin{tikzpicture}
node(one){1}
child{node{3}};
node[right of=one]{2};
end{tikzpicture}
};
node(tr3)[circle,draw,scale=0.75][right of=tr2,xshift=2.25cm]{
begin{tikzpicture}
node(two){2}
child{node{3}};
node[right of=one]{1};
end{tikzpicture}
};
node at ($(tre1) + (2,-13.5)$)(root)[circle,draw,scale=0.9]{
begin{tikzpicture}
node(one){1};
node[below of=one](two){2};
node[right of=one]{3};
node[right of=two]{4};
end{tikzpicture}
};
path[thick](tre1.south)edge node[sloped,yshift=0.5em,draw=none,fill=none]{}
(tr1.north)
edge node[sloped,yshift=0.5em,draw=none,fill=none]{}(tr2.north)
path[thick](tre2.south)edge node[sloped,yshift=0.5em,draw=none,fill=none]{}
(tr3.north)

end{tikzpicture};
end{document}


enter image description hereend{document}







nodes tikz-trees tikz-node node-connections edge






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 21 hours ago









Stiven GStiven G

693




693








  • 1





    There are missing ;.

    – marmot
    21 hours ago






  • 1





    And your approach nests tikzpictures. Don't! You can use constructions of the type begin{scope}[local bounding box=fone,scale=0.5] node(one){1} child{node{2}} child{node{3}}; end{scope} node(tre1)[circle,draw,fit=(fone)]{}; which requires the fit library and you may also want to load positioning.

    – marmot
    20 hours ago














  • 1





    There are missing ;.

    – marmot
    21 hours ago






  • 1





    And your approach nests tikzpictures. Don't! You can use constructions of the type begin{scope}[local bounding box=fone,scale=0.5] node(one){1} child{node{2}} child{node{3}}; end{scope} node(tre1)[circle,draw,fit=(fone)]{}; which requires the fit library and you may also want to load positioning.

    – marmot
    20 hours ago








1




1





There are missing ;.

– marmot
21 hours ago





There are missing ;.

– marmot
21 hours ago




1




1





And your approach nests tikzpictures. Don't! You can use constructions of the type begin{scope}[local bounding box=fone,scale=0.5] node(one){1} child{node{2}} child{node{3}}; end{scope} node(tre1)[circle,draw,fit=(fone)]{}; which requires the fit library and you may also want to load positioning.

– marmot
20 hours ago





And your approach nests tikzpictures. Don't! You can use constructions of the type begin{scope}[local bounding box=fone,scale=0.5] node(one){1} child{node{2}} child{node{3}}; end{scope} node(tre1)[circle,draw,fit=(fone)]{}; which requires the fit library and you may also want to load positioning.

– marmot
20 hours ago










1 Answer
1






active

oldest

votes


















1














This is likely not yet quite what you want but it avoids nesting tikzpictures and can then be a basis for getting what you want.



documentclass[a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{amssymb}
usepackage{tikz}
usetikzlibrary{calc,shapes,fit,positioning}
letoldemptysetemptyset
letemptysetvarnothing
begin{document}
begin{tikzpicture}[every node/.style={circle,draw=black},scale=0.75,every
node/.append style={transform shape}]
begin{scope}[local bounding box=f1,scale=0.5]
node(one1){1}
child{node{2}}
child{node{3}};
end{scope}
node[circle,draw,fit=(f1)](tre1){};
%
begin{scope}[local bounding box=f2,scale=0.5]
node[above right=0.1cm and 10cm of one1](tree2){1}
child{node{2}
child{node{3}}};
end{scope}
node(tre2)[circle,draw,fit=(f2)] {};
%
begin{scope}[local bounding box=f3,scale=0.65]
node at ($(one1) + (-3.5,-4.5)$) (one2){1}
child{node{2}};
node[right=of one2]{3};
end{scope}
node [circle,draw,fit=(f3)](tr1){};
%
begin{scope}[local bounding box=f4,scale=0.65]
node[right=4cm of one2] (one3){1}
child{node{3}};
node[right of=one3]{2};
end{scope}
node(tr2)[circle,draw,fit=(f4)]{};
%
begin{scope}[local bounding box=f5,scale=0.75]
node[right=3cm of one3] (two1){2}
child{node{3}};
node[right=of two1]{1};
end{scope}
node(tr3)[circle,draw,fit=(f5)]{};
%
begin{scope}[local bounding box=f6,scale=0.9]
node at ($(one1) + (2,-13.5)$) (one4){1};
node[below of=one4](two2){2};
node[right of=one4]{3};
node[right of=two2]{4};
end{scope}
node[circle,draw,fit=(f6)] (root){};
%
path[thick](tre1.south)edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
(tr1.north) (tre1.south)
edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
(tr2.north);
path[thick](tre2.south)edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
(tr3.north);
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%2f477729%2fcompiling-problem-connecting-nodes-thru-edges-is-not-working%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    This is likely not yet quite what you want but it avoids nesting tikzpictures and can then be a basis for getting what you want.



    documentclass[a4paper]{article}
    usepackage[utf8]{inputenc}
    usepackage[T1]{fontenc}
    usepackage{amssymb}
    usepackage{tikz}
    usetikzlibrary{calc,shapes,fit,positioning}
    letoldemptysetemptyset
    letemptysetvarnothing
    begin{document}
    begin{tikzpicture}[every node/.style={circle,draw=black},scale=0.75,every
    node/.append style={transform shape}]
    begin{scope}[local bounding box=f1,scale=0.5]
    node(one1){1}
    child{node{2}}
    child{node{3}};
    end{scope}
    node[circle,draw,fit=(f1)](tre1){};
    %
    begin{scope}[local bounding box=f2,scale=0.5]
    node[above right=0.1cm and 10cm of one1](tree2){1}
    child{node{2}
    child{node{3}}};
    end{scope}
    node(tre2)[circle,draw,fit=(f2)] {};
    %
    begin{scope}[local bounding box=f3,scale=0.65]
    node at ($(one1) + (-3.5,-4.5)$) (one2){1}
    child{node{2}};
    node[right=of one2]{3};
    end{scope}
    node [circle,draw,fit=(f3)](tr1){};
    %
    begin{scope}[local bounding box=f4,scale=0.65]
    node[right=4cm of one2] (one3){1}
    child{node{3}};
    node[right of=one3]{2};
    end{scope}
    node(tr2)[circle,draw,fit=(f4)]{};
    %
    begin{scope}[local bounding box=f5,scale=0.75]
    node[right=3cm of one3] (two1){2}
    child{node{3}};
    node[right=of two1]{1};
    end{scope}
    node(tr3)[circle,draw,fit=(f5)]{};
    %
    begin{scope}[local bounding box=f6,scale=0.9]
    node at ($(one1) + (2,-13.5)$) (one4){1};
    node[below of=one4](two2){2};
    node[right of=one4]{3};
    node[right of=two2]{4};
    end{scope}
    node[circle,draw,fit=(f6)] (root){};
    %
    path[thick](tre1.south)edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
    (tr1.north) (tre1.south)
    edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
    (tr2.north);
    path[thick](tre2.south)edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
    (tr3.north);
    end{tikzpicture}
    end{document}


    enter image description here






    share|improve this answer




























      1














      This is likely not yet quite what you want but it avoids nesting tikzpictures and can then be a basis for getting what you want.



      documentclass[a4paper]{article}
      usepackage[utf8]{inputenc}
      usepackage[T1]{fontenc}
      usepackage{amssymb}
      usepackage{tikz}
      usetikzlibrary{calc,shapes,fit,positioning}
      letoldemptysetemptyset
      letemptysetvarnothing
      begin{document}
      begin{tikzpicture}[every node/.style={circle,draw=black},scale=0.75,every
      node/.append style={transform shape}]
      begin{scope}[local bounding box=f1,scale=0.5]
      node(one1){1}
      child{node{2}}
      child{node{3}};
      end{scope}
      node[circle,draw,fit=(f1)](tre1){};
      %
      begin{scope}[local bounding box=f2,scale=0.5]
      node[above right=0.1cm and 10cm of one1](tree2){1}
      child{node{2}
      child{node{3}}};
      end{scope}
      node(tre2)[circle,draw,fit=(f2)] {};
      %
      begin{scope}[local bounding box=f3,scale=0.65]
      node at ($(one1) + (-3.5,-4.5)$) (one2){1}
      child{node{2}};
      node[right=of one2]{3};
      end{scope}
      node [circle,draw,fit=(f3)](tr1){};
      %
      begin{scope}[local bounding box=f4,scale=0.65]
      node[right=4cm of one2] (one3){1}
      child{node{3}};
      node[right of=one3]{2};
      end{scope}
      node(tr2)[circle,draw,fit=(f4)]{};
      %
      begin{scope}[local bounding box=f5,scale=0.75]
      node[right=3cm of one3] (two1){2}
      child{node{3}};
      node[right=of two1]{1};
      end{scope}
      node(tr3)[circle,draw,fit=(f5)]{};
      %
      begin{scope}[local bounding box=f6,scale=0.9]
      node at ($(one1) + (2,-13.5)$) (one4){1};
      node[below of=one4](two2){2};
      node[right of=one4]{3};
      node[right of=two2]{4};
      end{scope}
      node[circle,draw,fit=(f6)] (root){};
      %
      path[thick](tre1.south)edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
      (tr1.north) (tre1.south)
      edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
      (tr2.north);
      path[thick](tre2.south)edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
      (tr3.north);
      end{tikzpicture}
      end{document}


      enter image description here






      share|improve this answer


























        1












        1








        1







        This is likely not yet quite what you want but it avoids nesting tikzpictures and can then be a basis for getting what you want.



        documentclass[a4paper]{article}
        usepackage[utf8]{inputenc}
        usepackage[T1]{fontenc}
        usepackage{amssymb}
        usepackage{tikz}
        usetikzlibrary{calc,shapes,fit,positioning}
        letoldemptysetemptyset
        letemptysetvarnothing
        begin{document}
        begin{tikzpicture}[every node/.style={circle,draw=black},scale=0.75,every
        node/.append style={transform shape}]
        begin{scope}[local bounding box=f1,scale=0.5]
        node(one1){1}
        child{node{2}}
        child{node{3}};
        end{scope}
        node[circle,draw,fit=(f1)](tre1){};
        %
        begin{scope}[local bounding box=f2,scale=0.5]
        node[above right=0.1cm and 10cm of one1](tree2){1}
        child{node{2}
        child{node{3}}};
        end{scope}
        node(tre2)[circle,draw,fit=(f2)] {};
        %
        begin{scope}[local bounding box=f3,scale=0.65]
        node at ($(one1) + (-3.5,-4.5)$) (one2){1}
        child{node{2}};
        node[right=of one2]{3};
        end{scope}
        node [circle,draw,fit=(f3)](tr1){};
        %
        begin{scope}[local bounding box=f4,scale=0.65]
        node[right=4cm of one2] (one3){1}
        child{node{3}};
        node[right of=one3]{2};
        end{scope}
        node(tr2)[circle,draw,fit=(f4)]{};
        %
        begin{scope}[local bounding box=f5,scale=0.75]
        node[right=3cm of one3] (two1){2}
        child{node{3}};
        node[right=of two1]{1};
        end{scope}
        node(tr3)[circle,draw,fit=(f5)]{};
        %
        begin{scope}[local bounding box=f6,scale=0.9]
        node at ($(one1) + (2,-13.5)$) (one4){1};
        node[below of=one4](two2){2};
        node[right of=one4]{3};
        node[right of=two2]{4};
        end{scope}
        node[circle,draw,fit=(f6)] (root){};
        %
        path[thick](tre1.south)edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
        (tr1.north) (tre1.south)
        edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
        (tr2.north);
        path[thick](tre2.south)edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
        (tr3.north);
        end{tikzpicture}
        end{document}


        enter image description here






        share|improve this answer













        This is likely not yet quite what you want but it avoids nesting tikzpictures and can then be a basis for getting what you want.



        documentclass[a4paper]{article}
        usepackage[utf8]{inputenc}
        usepackage[T1]{fontenc}
        usepackage{amssymb}
        usepackage{tikz}
        usetikzlibrary{calc,shapes,fit,positioning}
        letoldemptysetemptyset
        letemptysetvarnothing
        begin{document}
        begin{tikzpicture}[every node/.style={circle,draw=black},scale=0.75,every
        node/.append style={transform shape}]
        begin{scope}[local bounding box=f1,scale=0.5]
        node(one1){1}
        child{node{2}}
        child{node{3}};
        end{scope}
        node[circle,draw,fit=(f1)](tre1){};
        %
        begin{scope}[local bounding box=f2,scale=0.5]
        node[above right=0.1cm and 10cm of one1](tree2){1}
        child{node{2}
        child{node{3}}};
        end{scope}
        node(tre2)[circle,draw,fit=(f2)] {};
        %
        begin{scope}[local bounding box=f3,scale=0.65]
        node at ($(one1) + (-3.5,-4.5)$) (one2){1}
        child{node{2}};
        node[right=of one2]{3};
        end{scope}
        node [circle,draw,fit=(f3)](tr1){};
        %
        begin{scope}[local bounding box=f4,scale=0.65]
        node[right=4cm of one2] (one3){1}
        child{node{3}};
        node[right of=one3]{2};
        end{scope}
        node(tr2)[circle,draw,fit=(f4)]{};
        %
        begin{scope}[local bounding box=f5,scale=0.75]
        node[right=3cm of one3] (two1){2}
        child{node{3}};
        node[right=of two1]{1};
        end{scope}
        node(tr3)[circle,draw,fit=(f5)]{};
        %
        begin{scope}[local bounding box=f6,scale=0.9]
        node at ($(one1) + (2,-13.5)$) (one4){1};
        node[below of=one4](two2){2};
        node[right of=one4]{3};
        node[right of=two2]{4};
        end{scope}
        node[circle,draw,fit=(f6)] (root){};
        %
        path[thick](tre1.south)edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
        (tr1.north) (tre1.south)
        edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
        (tr2.north);
        path[thick](tre2.south)edge %node[sloped,yshift=0.5em,draw=none,fill=none]{}
        (tr3.north);
        end{tikzpicture}
        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 20 hours ago









        marmotmarmot

        106k4127241




        106k4127241






























            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%2f477729%2fcompiling-problem-connecting-nodes-thru-edges-is-not-working%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

            Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

            How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

            Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...