How to draw/optimize this graph with tikz Announcing the arrival of Valued Associate #679:...

Morning, Afternoon, Night Kanji

Converted a Scalar function to a TVF function for parallel execution-Still running in Serial mode

Most bit efficient text communication method?

Why is Nikon 1.4g better when Nikon 1.8g is sharper?

I am having problem understanding the behavior of below code in JavaScript

If Windows 7 doesn't support WSL, then what does Linux subsystem option mean?

How to react to hostile behavior from a senior developer?

How does the secondary effect of the Heat Metal spell interact with a creature resistant/immune to fire damage?

Significance of Cersei's obsession with elephants?

Why do we bend a book to keep it straight?

What is the difference between globalisation and imperialism?

What is "gratricide"?

Why do we need to use the builder design pattern when we can do the same thing with setters?

Can a new player join a group only when a new campaign starts?

How much damage would a cupful of neutron star matter do to the Earth?

Why weren't discrete x86 CPUs ever used in game hardware?

Maximum summed subsequences with non-adjacent items

Sum letters are not two different

Why does the remaining Rebel fleet at the end of Rogue One seem dramatically larger than the one in A New Hope?

Trademark violation for app?

Did Deadpool rescue all of the X-Force?

How do I use the new nonlinear finite element in Mathematica 12 for this equation?

Take 2! Is this homebrew Lady of Pain warlock patron balanced?

Disembodied hand growing fangs



How to draw/optimize this graph with tikz



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Label on edges with tikz-graphHow can I draw this graph with TikZ or forest?Draw an algorithm graph with TikzHow do I draw this cyclic graph in tikzgraph with tikz, math environment in nodesWhat's the code for this graph?How to draw this directed graph with tikzHow to draw this cyclic graph with tikzHow to eliminate the arrows on this Cayley GraphHow to optimize this codes of graphs with tikz












1















I would like to know if is there a way to optimize the code that I use to draw the next graph: enter image description here



I do it using this:



documentclass[11pt]{article}
usepackage{tikz}
begin{document}
begin{figure}[h]
begin{tikzpicture}[y=.5cm, x=.5cm,font=small]
draw [-latex](-1,0) -- (10,0);
draw [-latex](10,0) -- (4.5,9);
draw [-latex](4.5,9) -- (-1,0);
draw [-latex](2,2) -- (4.5,6);
draw [-latex](4.5,6) -- (7,2);
draw [-latex](7,2) -- (2,2);
draw [latex-latex,dashed](4.5,6) -- (4.5,9);
draw [latex-latex,dashed](-1,0) -- (2,2);
draw [latex-latex,dashed](10,0) -- (7,2);
filldraw[fill=black!40,draw=black!80] (-1,0) circle (2pt) node[anchor=east]{(23)} ;
filldraw[fill=black!40,draw=black!80] (10,0) circle (2pt) node[anchor=west]{(13)} ;
filldraw[fill=black!40,draw=black!80] (4.5,9) circle (2pt) node[anchor=south]{(12)} ;
filldraw[fill=black!40,draw=black!80] (2,2) circle (2pt) node[anchor=east]{(132)} ;
filldraw[fill=black!40,draw=black!80] (7,2) circle (2pt) node[anchor=west]{(123)} ;
filldraw[fill=black!40,draw=black!80] (4.5,6) circle (2pt) node[anchor=west]{e} ;
end{tikzpicture}
end{figure}
end{document}


I've also tried using "foreach" cycles, but it's a bit difficult with that, any ideas? Thank you.









share



























    1















    I would like to know if is there a way to optimize the code that I use to draw the next graph: enter image description here



    I do it using this:



    documentclass[11pt]{article}
    usepackage{tikz}
    begin{document}
    begin{figure}[h]
    begin{tikzpicture}[y=.5cm, x=.5cm,font=small]
    draw [-latex](-1,0) -- (10,0);
    draw [-latex](10,0) -- (4.5,9);
    draw [-latex](4.5,9) -- (-1,0);
    draw [-latex](2,2) -- (4.5,6);
    draw [-latex](4.5,6) -- (7,2);
    draw [-latex](7,2) -- (2,2);
    draw [latex-latex,dashed](4.5,6) -- (4.5,9);
    draw [latex-latex,dashed](-1,0) -- (2,2);
    draw [latex-latex,dashed](10,0) -- (7,2);
    filldraw[fill=black!40,draw=black!80] (-1,0) circle (2pt) node[anchor=east]{(23)} ;
    filldraw[fill=black!40,draw=black!80] (10,0) circle (2pt) node[anchor=west]{(13)} ;
    filldraw[fill=black!40,draw=black!80] (4.5,9) circle (2pt) node[anchor=south]{(12)} ;
    filldraw[fill=black!40,draw=black!80] (2,2) circle (2pt) node[anchor=east]{(132)} ;
    filldraw[fill=black!40,draw=black!80] (7,2) circle (2pt) node[anchor=west]{(123)} ;
    filldraw[fill=black!40,draw=black!80] (4.5,6) circle (2pt) node[anchor=west]{e} ;
    end{tikzpicture}
    end{figure}
    end{document}


    I've also tried using "foreach" cycles, but it's a bit difficult with that, any ideas? Thank you.









    share

























      1












      1








      1


      1






      I would like to know if is there a way to optimize the code that I use to draw the next graph: enter image description here



      I do it using this:



      documentclass[11pt]{article}
      usepackage{tikz}
      begin{document}
      begin{figure}[h]
      begin{tikzpicture}[y=.5cm, x=.5cm,font=small]
      draw [-latex](-1,0) -- (10,0);
      draw [-latex](10,0) -- (4.5,9);
      draw [-latex](4.5,9) -- (-1,0);
      draw [-latex](2,2) -- (4.5,6);
      draw [-latex](4.5,6) -- (7,2);
      draw [-latex](7,2) -- (2,2);
      draw [latex-latex,dashed](4.5,6) -- (4.5,9);
      draw [latex-latex,dashed](-1,0) -- (2,2);
      draw [latex-latex,dashed](10,0) -- (7,2);
      filldraw[fill=black!40,draw=black!80] (-1,0) circle (2pt) node[anchor=east]{(23)} ;
      filldraw[fill=black!40,draw=black!80] (10,0) circle (2pt) node[anchor=west]{(13)} ;
      filldraw[fill=black!40,draw=black!80] (4.5,9) circle (2pt) node[anchor=south]{(12)} ;
      filldraw[fill=black!40,draw=black!80] (2,2) circle (2pt) node[anchor=east]{(132)} ;
      filldraw[fill=black!40,draw=black!80] (7,2) circle (2pt) node[anchor=west]{(123)} ;
      filldraw[fill=black!40,draw=black!80] (4.5,6) circle (2pt) node[anchor=west]{e} ;
      end{tikzpicture}
      end{figure}
      end{document}


      I've also tried using "foreach" cycles, but it's a bit difficult with that, any ideas? Thank you.









      share














      I would like to know if is there a way to optimize the code that I use to draw the next graph: enter image description here



      I do it using this:



      documentclass[11pt]{article}
      usepackage{tikz}
      begin{document}
      begin{figure}[h]
      begin{tikzpicture}[y=.5cm, x=.5cm,font=small]
      draw [-latex](-1,0) -- (10,0);
      draw [-latex](10,0) -- (4.5,9);
      draw [-latex](4.5,9) -- (-1,0);
      draw [-latex](2,2) -- (4.5,6);
      draw [-latex](4.5,6) -- (7,2);
      draw [-latex](7,2) -- (2,2);
      draw [latex-latex,dashed](4.5,6) -- (4.5,9);
      draw [latex-latex,dashed](-1,0) -- (2,2);
      draw [latex-latex,dashed](10,0) -- (7,2);
      filldraw[fill=black!40,draw=black!80] (-1,0) circle (2pt) node[anchor=east]{(23)} ;
      filldraw[fill=black!40,draw=black!80] (10,0) circle (2pt) node[anchor=west]{(13)} ;
      filldraw[fill=black!40,draw=black!80] (4.5,9) circle (2pt) node[anchor=south]{(12)} ;
      filldraw[fill=black!40,draw=black!80] (2,2) circle (2pt) node[anchor=east]{(132)} ;
      filldraw[fill=black!40,draw=black!80] (7,2) circle (2pt) node[anchor=west]{(123)} ;
      filldraw[fill=black!40,draw=black!80] (4.5,6) circle (2pt) node[anchor=west]{e} ;
      end{tikzpicture}
      end{figure}
      end{document}


      I've also tried using "foreach" cycles, but it's a bit difficult with that, any ideas? Thank you.







      graphs tikz-graphs





      share












      share










      share



      share










      asked 4 mins ago









      J.RodriguezJ.Rodriguez

      2376




      2376






















          0






          active

          oldest

          votes












          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%2f485556%2fhow-to-draw-optimize-this-graph-with-tikz%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f485556%2fhow-to-draw-optimize-this-graph-with-tikz%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

          Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

          Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

          How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...