How to shift the edge between two nodes The Next CEO of Stack OverflowAlign edges with anchor other than centerUML StatediagramHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?Tikzpicture: Line break in node label to rightLine up nested tikz enviroments or how to get rid of themProblems with nested TikZpicturestikz: label positioning that is robust with respect to negative scaling?Parallel arrows between nodes of varying size

How to make a variable always equal to the result of some calculations?

What can we do to stop prior company from asking us questions?

Anatomically Correct Strange Women In Ponds Distributing Swords

Why is there a PLL in CPU?

What is the difference between "behavior" and "behaviour"?

How do I get the green key off the shelf in the Dobby level of Lego Harry Potter 2?

Why didn't Khan get resurrected in the Genesis Explosion?

Why here is plural "We went to the movies last night."

Is a stroke of luck acceptable after a series of unfavorable events?

Can a caster that cast Polymorph on themselves stop concentrating at any point even if their Int is low?

Anatomically Correct Mesopelagic Aves

Shade part of a Venn diagram

Inappropriate reference requests from Journal reviewers

Only print output after finding pattern

Horror movie/show or scene where a horse creature opens its mouth really wide and devours a man in a stables

Customer Requests (Sometimes) Drive Me Bonkers!

How to get regions to plot as graphics

How to write papers efficiently when English isn't my first language?

How do I construct this japanese bowl?

Was a professor correct to chastise me for writing "Prof. X" rather than "Professor X"?

Why do remote companies require working in the US?

Failed to fetch jessie backports repository

How should I support this large drywall patch?

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin



How to shift the edge between two nodes



The Next CEO of Stack OverflowAlign edges with anchor other than centerUML StatediagramHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?Tikzpicture: Line break in node label to rightLine up nested tikz enviroments or how to get rid of themProblems with nested TikZpicturestikz: label positioning that is robust with respect to negative scaling?Parallel arrows between nodes of varying size










2















I would like to ask how I could move up the separation line (a4) edge [line width=7pt] (a10) in this picture:



documentclass[border=1mm,tikz]standalone
usetikzlibraryarrows,automata,shapes.multipart,calc,decorations.text
begindocument

begintikzpicture[-,>=stealth',shorten >=1pt,auto,node distance=4cm,semithick,
every text node part/.style=align=center,
%,inner sep=0pt
%,scale=0.5
]
% tikzstyleevery state=[fill=blue!25,text=black,draw=none]

node[](a1) ;
node[state,minimum size=1cm](a2) [right of=a1] Large$3$;
node[](a3) [right of=a2] ;
node[](a4) [above of=a2] ;
node[](a5) [above of=a4] ;
node[](a10) [above of=a5] ;
node[state,minimum size=1cm](a6) [left of=a5] Large$2$;
node[state,minimum size=1cm](a7) [above of=a6] Large$1$;
%
node[state,minimum size=1cm](a8) [right of=a5] Large$4$;
node[state,minimum size=1cm](a9) [above of=a8] Large$5$;


beginscope[every node/.style=scale=1.5]
path (a7) edge [sloped, anchor=center,above] node 31.6 m (a2)
(a6) edge [sloped, anchor=center,above] node 22.36 m (a2)
(a8) edge [sloped, anchor=center,above] node 22.36 m (a2)
(a9) edge [sloped, anchor=center,above] node 31.6 m (a2)
(a6) edge [sloped, anchor=center,above] node 10 m (a7)
(a8) edge [sloped, anchor=center,above] node 10 m (a9)
(a4) edge [line width=7pt] (a10)
;


endscope
endtikzpicture

enddocument


enter image description here



without changing the relative positions of the nodes.
The line (a4) edge [line width=7pt] (a10) represents a wireless signal barrier between the pairs' nodes labeled 1, 2 and 4, 5.



I would like to set the yshift of nodes a4 and a10, not chaging the positions of the rest of nodes.



Regards










share|improve this question


























    2















    I would like to ask how I could move up the separation line (a4) edge [line width=7pt] (a10) in this picture:



    documentclass[border=1mm,tikz]standalone
    usetikzlibraryarrows,automata,shapes.multipart,calc,decorations.text
    begindocument

    begintikzpicture[-,>=stealth',shorten >=1pt,auto,node distance=4cm,semithick,
    every text node part/.style=align=center,
    %,inner sep=0pt
    %,scale=0.5
    ]
    % tikzstyleevery state=[fill=blue!25,text=black,draw=none]

    node[](a1) ;
    node[state,minimum size=1cm](a2) [right of=a1] Large$3$;
    node[](a3) [right of=a2] ;
    node[](a4) [above of=a2] ;
    node[](a5) [above of=a4] ;
    node[](a10) [above of=a5] ;
    node[state,minimum size=1cm](a6) [left of=a5] Large$2$;
    node[state,minimum size=1cm](a7) [above of=a6] Large$1$;
    %
    node[state,minimum size=1cm](a8) [right of=a5] Large$4$;
    node[state,minimum size=1cm](a9) [above of=a8] Large$5$;


    beginscope[every node/.style=scale=1.5]
    path (a7) edge [sloped, anchor=center,above] node 31.6 m (a2)
    (a6) edge [sloped, anchor=center,above] node 22.36 m (a2)
    (a8) edge [sloped, anchor=center,above] node 22.36 m (a2)
    (a9) edge [sloped, anchor=center,above] node 31.6 m (a2)
    (a6) edge [sloped, anchor=center,above] node 10 m (a7)
    (a8) edge [sloped, anchor=center,above] node 10 m (a9)
    (a4) edge [line width=7pt] (a10)
    ;


    endscope
    endtikzpicture

    enddocument


    enter image description here



    without changing the relative positions of the nodes.
    The line (a4) edge [line width=7pt] (a10) represents a wireless signal barrier between the pairs' nodes labeled 1, 2 and 4, 5.



    I would like to set the yshift of nodes a4 and a10, not chaging the positions of the rest of nodes.



    Regards










    share|improve this question
























      2












      2








      2


      0






      I would like to ask how I could move up the separation line (a4) edge [line width=7pt] (a10) in this picture:



      documentclass[border=1mm,tikz]standalone
      usetikzlibraryarrows,automata,shapes.multipart,calc,decorations.text
      begindocument

      begintikzpicture[-,>=stealth',shorten >=1pt,auto,node distance=4cm,semithick,
      every text node part/.style=align=center,
      %,inner sep=0pt
      %,scale=0.5
      ]
      % tikzstyleevery state=[fill=blue!25,text=black,draw=none]

      node[](a1) ;
      node[state,minimum size=1cm](a2) [right of=a1] Large$3$;
      node[](a3) [right of=a2] ;
      node[](a4) [above of=a2] ;
      node[](a5) [above of=a4] ;
      node[](a10) [above of=a5] ;
      node[state,minimum size=1cm](a6) [left of=a5] Large$2$;
      node[state,minimum size=1cm](a7) [above of=a6] Large$1$;
      %
      node[state,minimum size=1cm](a8) [right of=a5] Large$4$;
      node[state,minimum size=1cm](a9) [above of=a8] Large$5$;


      beginscope[every node/.style=scale=1.5]
      path (a7) edge [sloped, anchor=center,above] node 31.6 m (a2)
      (a6) edge [sloped, anchor=center,above] node 22.36 m (a2)
      (a8) edge [sloped, anchor=center,above] node 22.36 m (a2)
      (a9) edge [sloped, anchor=center,above] node 31.6 m (a2)
      (a6) edge [sloped, anchor=center,above] node 10 m (a7)
      (a8) edge [sloped, anchor=center,above] node 10 m (a9)
      (a4) edge [line width=7pt] (a10)
      ;


      endscope
      endtikzpicture

      enddocument


      enter image description here



      without changing the relative positions of the nodes.
      The line (a4) edge [line width=7pt] (a10) represents a wireless signal barrier between the pairs' nodes labeled 1, 2 and 4, 5.



      I would like to set the yshift of nodes a4 and a10, not chaging the positions of the rest of nodes.



      Regards










      share|improve this question














      I would like to ask how I could move up the separation line (a4) edge [line width=7pt] (a10) in this picture:



      documentclass[border=1mm,tikz]standalone
      usetikzlibraryarrows,automata,shapes.multipart,calc,decorations.text
      begindocument

      begintikzpicture[-,>=stealth',shorten >=1pt,auto,node distance=4cm,semithick,
      every text node part/.style=align=center,
      %,inner sep=0pt
      %,scale=0.5
      ]
      % tikzstyleevery state=[fill=blue!25,text=black,draw=none]

      node[](a1) ;
      node[state,minimum size=1cm](a2) [right of=a1] Large$3$;
      node[](a3) [right of=a2] ;
      node[](a4) [above of=a2] ;
      node[](a5) [above of=a4] ;
      node[](a10) [above of=a5] ;
      node[state,minimum size=1cm](a6) [left of=a5] Large$2$;
      node[state,minimum size=1cm](a7) [above of=a6] Large$1$;
      %
      node[state,minimum size=1cm](a8) [right of=a5] Large$4$;
      node[state,minimum size=1cm](a9) [above of=a8] Large$5$;


      beginscope[every node/.style=scale=1.5]
      path (a7) edge [sloped, anchor=center,above] node 31.6 m (a2)
      (a6) edge [sloped, anchor=center,above] node 22.36 m (a2)
      (a8) edge [sloped, anchor=center,above] node 22.36 m (a2)
      (a9) edge [sloped, anchor=center,above] node 31.6 m (a2)
      (a6) edge [sloped, anchor=center,above] node 10 m (a7)
      (a8) edge [sloped, anchor=center,above] node 10 m (a9)
      (a4) edge [line width=7pt] (a10)
      ;


      endscope
      endtikzpicture

      enddocument


      enter image description here



      without changing the relative positions of the nodes.
      The line (a4) edge [line width=7pt] (a10) represents a wireless signal barrier between the pairs' nodes labeled 1, 2 and 4, 5.



      I would like to set the yshift of nodes a4 and a10, not chaging the positions of the rest of nodes.



      Regards







      tikz-pgf






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 12 hours ago









      user1993416user1993416

      351110




      351110




















          1 Answer
          1






          active

          oldest

          votes


















          1














          Just from looking at your picture I suspect you want to have something like (a6.south-|a2) edge [line width=7pt] (a7.north-|a2).



          documentclass[border=1mm,tikz]standalone
          usetikzlibraryarrows,automata
          begindocument

          begintikzpicture[-,>=stealth',shorten >=1pt,auto,node distance=4cm,semithick,
          every text node part/.style=align=center,
          ]

          node[](a1) ;
          node[state,minimum size=1cm](a2) [right of=a1] Large$3$;
          node[](a3) [right of=a2] ;
          node[](a4) [above of=a2] ;
          node[](a5) [above of=a4] ;
          node[](a10) [above of=a5] ;
          node[state,minimum size=1cm](a6) [left of=a5] Large$2$;
          node[state,minimum size=1cm](a7) [above of=a6] Large$1$;
          %
          node[state,minimum size=1cm](a8) [right of=a5] Large$4$;
          node[state,minimum size=1cm](a9) [above of=a8] Large$5$;


          beginscope[every node/.style=scale=1.5]
          path (a7) edge [sloped, anchor=center,above] node 31.6 m (a2)
          (a6) edge [sloped, anchor=center,above] node 22.36 m (a2)
          (a8) edge [sloped, anchor=center,above] node 22.36 m (a2)
          (a9) edge [sloped, anchor=center,above] node 31.6 m (a2)
          (a6) edge [sloped, anchor=center,above] node 10 m (a7)
          (a8) edge [sloped, anchor=center,above] node 10 m (a9)
          (a6.south-|a2) edge [line width=7pt] (a7.north-|a2)
          ;


          endscope
          endtikzpicture

          enddocument


          enter image description here



          Of course, you can further adjust it, e.g. ([yshift=-5mm]a6.south-|a2) edge [line width=7pt] (a7.north-|a2) yields



          enter image description here



          Note that not all the nodes you define are necessary here. And I would recommend using positioning and to name the nodes according to their contents, which leads us to:



          documentclass[border=1mm,tikz]standalone
          usetikzlibraryarrows,automata,positioning
          begindocument

          begintikzpicture[-,>=stealth',shorten >=1pt,auto,
          node distance=3.5cm and 3.5cm,semithick,
          every text node part/.style=align=center,
          ]

          node[state,minimum size=1cm](a3)Large$3$;
          node[state,minimum size=1cm](a2) [above left=7cm and 3.5cm of a3] Large$2$;
          node[state,minimum size=1cm](a1) [above=of a2] Large$1$;
          %
          node[state,minimum size=1cm](a4) [above right=7cm and 3.5cm of a3] Large$4$;
          node[state,minimum size=1cm](a5) [above=of a4] Large$15$;


          beginscope[every node/.style=scale=1.5]
          path (a1) edge [sloped, anchor=center,above] node 31.6 m (a3)
          (a2) edge [sloped, anchor=center,above] node 22.36 m (a3)
          (a4) edge [sloped, anchor=center,above] node 22.36 m (a3)
          (a5) edge [sloped, anchor=center,above] node 31.6 m (a3)
          (a2) edge [sloped, anchor=center,above] node 10 m (a1)
          (a4) edge [sloped, anchor=center,above] node 10 m (a5)
          ([yshift=-5mm]a2.south-|a3) edge [line width=7pt] (a1.north-|a3)
          ;


          endscope
          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%2f481950%2fhow-to-shift-the-edge-between-two-nodes%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














            Just from looking at your picture I suspect you want to have something like (a6.south-|a2) edge [line width=7pt] (a7.north-|a2).



            documentclass[border=1mm,tikz]standalone
            usetikzlibraryarrows,automata
            begindocument

            begintikzpicture[-,>=stealth',shorten >=1pt,auto,node distance=4cm,semithick,
            every text node part/.style=align=center,
            ]

            node[](a1) ;
            node[state,minimum size=1cm](a2) [right of=a1] Large$3$;
            node[](a3) [right of=a2] ;
            node[](a4) [above of=a2] ;
            node[](a5) [above of=a4] ;
            node[](a10) [above of=a5] ;
            node[state,minimum size=1cm](a6) [left of=a5] Large$2$;
            node[state,minimum size=1cm](a7) [above of=a6] Large$1$;
            %
            node[state,minimum size=1cm](a8) [right of=a5] Large$4$;
            node[state,minimum size=1cm](a9) [above of=a8] Large$5$;


            beginscope[every node/.style=scale=1.5]
            path (a7) edge [sloped, anchor=center,above] node 31.6 m (a2)
            (a6) edge [sloped, anchor=center,above] node 22.36 m (a2)
            (a8) edge [sloped, anchor=center,above] node 22.36 m (a2)
            (a9) edge [sloped, anchor=center,above] node 31.6 m (a2)
            (a6) edge [sloped, anchor=center,above] node 10 m (a7)
            (a8) edge [sloped, anchor=center,above] node 10 m (a9)
            (a6.south-|a2) edge [line width=7pt] (a7.north-|a2)
            ;


            endscope
            endtikzpicture

            enddocument


            enter image description here



            Of course, you can further adjust it, e.g. ([yshift=-5mm]a6.south-|a2) edge [line width=7pt] (a7.north-|a2) yields



            enter image description here



            Note that not all the nodes you define are necessary here. And I would recommend using positioning and to name the nodes according to their contents, which leads us to:



            documentclass[border=1mm,tikz]standalone
            usetikzlibraryarrows,automata,positioning
            begindocument

            begintikzpicture[-,>=stealth',shorten >=1pt,auto,
            node distance=3.5cm and 3.5cm,semithick,
            every text node part/.style=align=center,
            ]

            node[state,minimum size=1cm](a3)Large$3$;
            node[state,minimum size=1cm](a2) [above left=7cm and 3.5cm of a3] Large$2$;
            node[state,minimum size=1cm](a1) [above=of a2] Large$1$;
            %
            node[state,minimum size=1cm](a4) [above right=7cm and 3.5cm of a3] Large$4$;
            node[state,minimum size=1cm](a5) [above=of a4] Large$15$;


            beginscope[every node/.style=scale=1.5]
            path (a1) edge [sloped, anchor=center,above] node 31.6 m (a3)
            (a2) edge [sloped, anchor=center,above] node 22.36 m (a3)
            (a4) edge [sloped, anchor=center,above] node 22.36 m (a3)
            (a5) edge [sloped, anchor=center,above] node 31.6 m (a3)
            (a2) edge [sloped, anchor=center,above] node 10 m (a1)
            (a4) edge [sloped, anchor=center,above] node 10 m (a5)
            ([yshift=-5mm]a2.south-|a3) edge [line width=7pt] (a1.north-|a3)
            ;


            endscope
            endtikzpicture

            enddocument


            enter image description here






            share|improve this answer





























              1














              Just from looking at your picture I suspect you want to have something like (a6.south-|a2) edge [line width=7pt] (a7.north-|a2).



              documentclass[border=1mm,tikz]standalone
              usetikzlibraryarrows,automata
              begindocument

              begintikzpicture[-,>=stealth',shorten >=1pt,auto,node distance=4cm,semithick,
              every text node part/.style=align=center,
              ]

              node[](a1) ;
              node[state,minimum size=1cm](a2) [right of=a1] Large$3$;
              node[](a3) [right of=a2] ;
              node[](a4) [above of=a2] ;
              node[](a5) [above of=a4] ;
              node[](a10) [above of=a5] ;
              node[state,minimum size=1cm](a6) [left of=a5] Large$2$;
              node[state,minimum size=1cm](a7) [above of=a6] Large$1$;
              %
              node[state,minimum size=1cm](a8) [right of=a5] Large$4$;
              node[state,minimum size=1cm](a9) [above of=a8] Large$5$;


              beginscope[every node/.style=scale=1.5]
              path (a7) edge [sloped, anchor=center,above] node 31.6 m (a2)
              (a6) edge [sloped, anchor=center,above] node 22.36 m (a2)
              (a8) edge [sloped, anchor=center,above] node 22.36 m (a2)
              (a9) edge [sloped, anchor=center,above] node 31.6 m (a2)
              (a6) edge [sloped, anchor=center,above] node 10 m (a7)
              (a8) edge [sloped, anchor=center,above] node 10 m (a9)
              (a6.south-|a2) edge [line width=7pt] (a7.north-|a2)
              ;


              endscope
              endtikzpicture

              enddocument


              enter image description here



              Of course, you can further adjust it, e.g. ([yshift=-5mm]a6.south-|a2) edge [line width=7pt] (a7.north-|a2) yields



              enter image description here



              Note that not all the nodes you define are necessary here. And I would recommend using positioning and to name the nodes according to their contents, which leads us to:



              documentclass[border=1mm,tikz]standalone
              usetikzlibraryarrows,automata,positioning
              begindocument

              begintikzpicture[-,>=stealth',shorten >=1pt,auto,
              node distance=3.5cm and 3.5cm,semithick,
              every text node part/.style=align=center,
              ]

              node[state,minimum size=1cm](a3)Large$3$;
              node[state,minimum size=1cm](a2) [above left=7cm and 3.5cm of a3] Large$2$;
              node[state,minimum size=1cm](a1) [above=of a2] Large$1$;
              %
              node[state,minimum size=1cm](a4) [above right=7cm and 3.5cm of a3] Large$4$;
              node[state,minimum size=1cm](a5) [above=of a4] Large$15$;


              beginscope[every node/.style=scale=1.5]
              path (a1) edge [sloped, anchor=center,above] node 31.6 m (a3)
              (a2) edge [sloped, anchor=center,above] node 22.36 m (a3)
              (a4) edge [sloped, anchor=center,above] node 22.36 m (a3)
              (a5) edge [sloped, anchor=center,above] node 31.6 m (a3)
              (a2) edge [sloped, anchor=center,above] node 10 m (a1)
              (a4) edge [sloped, anchor=center,above] node 10 m (a5)
              ([yshift=-5mm]a2.south-|a3) edge [line width=7pt] (a1.north-|a3)
              ;


              endscope
              endtikzpicture

              enddocument


              enter image description here






              share|improve this answer



























                1












                1








                1







                Just from looking at your picture I suspect you want to have something like (a6.south-|a2) edge [line width=7pt] (a7.north-|a2).



                documentclass[border=1mm,tikz]standalone
                usetikzlibraryarrows,automata
                begindocument

                begintikzpicture[-,>=stealth',shorten >=1pt,auto,node distance=4cm,semithick,
                every text node part/.style=align=center,
                ]

                node[](a1) ;
                node[state,minimum size=1cm](a2) [right of=a1] Large$3$;
                node[](a3) [right of=a2] ;
                node[](a4) [above of=a2] ;
                node[](a5) [above of=a4] ;
                node[](a10) [above of=a5] ;
                node[state,minimum size=1cm](a6) [left of=a5] Large$2$;
                node[state,minimum size=1cm](a7) [above of=a6] Large$1$;
                %
                node[state,minimum size=1cm](a8) [right of=a5] Large$4$;
                node[state,minimum size=1cm](a9) [above of=a8] Large$5$;


                beginscope[every node/.style=scale=1.5]
                path (a7) edge [sloped, anchor=center,above] node 31.6 m (a2)
                (a6) edge [sloped, anchor=center,above] node 22.36 m (a2)
                (a8) edge [sloped, anchor=center,above] node 22.36 m (a2)
                (a9) edge [sloped, anchor=center,above] node 31.6 m (a2)
                (a6) edge [sloped, anchor=center,above] node 10 m (a7)
                (a8) edge [sloped, anchor=center,above] node 10 m (a9)
                (a6.south-|a2) edge [line width=7pt] (a7.north-|a2)
                ;


                endscope
                endtikzpicture

                enddocument


                enter image description here



                Of course, you can further adjust it, e.g. ([yshift=-5mm]a6.south-|a2) edge [line width=7pt] (a7.north-|a2) yields



                enter image description here



                Note that not all the nodes you define are necessary here. And I would recommend using positioning and to name the nodes according to their contents, which leads us to:



                documentclass[border=1mm,tikz]standalone
                usetikzlibraryarrows,automata,positioning
                begindocument

                begintikzpicture[-,>=stealth',shorten >=1pt,auto,
                node distance=3.5cm and 3.5cm,semithick,
                every text node part/.style=align=center,
                ]

                node[state,minimum size=1cm](a3)Large$3$;
                node[state,minimum size=1cm](a2) [above left=7cm and 3.5cm of a3] Large$2$;
                node[state,minimum size=1cm](a1) [above=of a2] Large$1$;
                %
                node[state,minimum size=1cm](a4) [above right=7cm and 3.5cm of a3] Large$4$;
                node[state,minimum size=1cm](a5) [above=of a4] Large$15$;


                beginscope[every node/.style=scale=1.5]
                path (a1) edge [sloped, anchor=center,above] node 31.6 m (a3)
                (a2) edge [sloped, anchor=center,above] node 22.36 m (a3)
                (a4) edge [sloped, anchor=center,above] node 22.36 m (a3)
                (a5) edge [sloped, anchor=center,above] node 31.6 m (a3)
                (a2) edge [sloped, anchor=center,above] node 10 m (a1)
                (a4) edge [sloped, anchor=center,above] node 10 m (a5)
                ([yshift=-5mm]a2.south-|a3) edge [line width=7pt] (a1.north-|a3)
                ;


                endscope
                endtikzpicture

                enddocument


                enter image description here






                share|improve this answer















                Just from looking at your picture I suspect you want to have something like (a6.south-|a2) edge [line width=7pt] (a7.north-|a2).



                documentclass[border=1mm,tikz]standalone
                usetikzlibraryarrows,automata
                begindocument

                begintikzpicture[-,>=stealth',shorten >=1pt,auto,node distance=4cm,semithick,
                every text node part/.style=align=center,
                ]

                node[](a1) ;
                node[state,minimum size=1cm](a2) [right of=a1] Large$3$;
                node[](a3) [right of=a2] ;
                node[](a4) [above of=a2] ;
                node[](a5) [above of=a4] ;
                node[](a10) [above of=a5] ;
                node[state,minimum size=1cm](a6) [left of=a5] Large$2$;
                node[state,minimum size=1cm](a7) [above of=a6] Large$1$;
                %
                node[state,minimum size=1cm](a8) [right of=a5] Large$4$;
                node[state,minimum size=1cm](a9) [above of=a8] Large$5$;


                beginscope[every node/.style=scale=1.5]
                path (a7) edge [sloped, anchor=center,above] node 31.6 m (a2)
                (a6) edge [sloped, anchor=center,above] node 22.36 m (a2)
                (a8) edge [sloped, anchor=center,above] node 22.36 m (a2)
                (a9) edge [sloped, anchor=center,above] node 31.6 m (a2)
                (a6) edge [sloped, anchor=center,above] node 10 m (a7)
                (a8) edge [sloped, anchor=center,above] node 10 m (a9)
                (a6.south-|a2) edge [line width=7pt] (a7.north-|a2)
                ;


                endscope
                endtikzpicture

                enddocument


                enter image description here



                Of course, you can further adjust it, e.g. ([yshift=-5mm]a6.south-|a2) edge [line width=7pt] (a7.north-|a2) yields



                enter image description here



                Note that not all the nodes you define are necessary here. And I would recommend using positioning and to name the nodes according to their contents, which leads us to:



                documentclass[border=1mm,tikz]standalone
                usetikzlibraryarrows,automata,positioning
                begindocument

                begintikzpicture[-,>=stealth',shorten >=1pt,auto,
                node distance=3.5cm and 3.5cm,semithick,
                every text node part/.style=align=center,
                ]

                node[state,minimum size=1cm](a3)Large$3$;
                node[state,minimum size=1cm](a2) [above left=7cm and 3.5cm of a3] Large$2$;
                node[state,minimum size=1cm](a1) [above=of a2] Large$1$;
                %
                node[state,minimum size=1cm](a4) [above right=7cm and 3.5cm of a3] Large$4$;
                node[state,minimum size=1cm](a5) [above=of a4] Large$15$;


                beginscope[every node/.style=scale=1.5]
                path (a1) edge [sloped, anchor=center,above] node 31.6 m (a3)
                (a2) edge [sloped, anchor=center,above] node 22.36 m (a3)
                (a4) edge [sloped, anchor=center,above] node 22.36 m (a3)
                (a5) edge [sloped, anchor=center,above] node 31.6 m (a3)
                (a2) edge [sloped, anchor=center,above] node 10 m (a1)
                (a4) edge [sloped, anchor=center,above] node 10 m (a5)
                ([yshift=-5mm]a2.south-|a3) edge [line width=7pt] (a1.north-|a3)
                ;


                endscope
                endtikzpicture

                enddocument


                enter image description here







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 12 hours ago

























                answered 12 hours ago









                marmotmarmot

                112k5144271




                112k5144271



























                    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%2f481950%2fhow-to-shift-the-edge-between-two-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

                    Wikipedia:Contact us Navigation menu Navigation menuLeave a Reply Cancel reply Post navigationRecent PostsRecent CommentsArchivesCategoriesMeta

                    Farafra Inhaltsverzeichnis Geschichte | Badr-Museum Farafra | Nationalpark Weiße Wüste (as-Sahra al-baida) | Literatur | Weblinks | Navigationsmenü27° 3′ N, 27° 58′ OCommons: Farafra

                    Tórshavn Kliima | Partnerstääden | Luke uk diar | Nawigatsjuun62° 1′ N, 6° 46′ W62° 1′ 0″ N, 6° 46′ 0″ WWMOTórshavn