How to draw/optimize this graph with tikz Announcing the arrival of Valued Associate #679:...
An adverb for when you're not exaggerating
How can I reduce the gap between left and right of cdot with a macro?
Why should I vote and accept answers?
Should I use a zero-interest credit card for a large one-time purchase?
Why weren't discrete x86 CPUs ever used in game hardware?
What are the diatonic extended chords of C major?
Monolithic + MicroServices
How often does castling occur in grandmaster games?
Project Euler #1 in C++
Denied boarding although I have proper visa and documentation. To whom should I make a complaint?
A term for a woman complaining about things/begging in a cute/childish way
Why is Nikon 1.4g better when Nikon 1.8g is sharper?
What is the difference between globalisation and imperialism?
Is there a kind of relay that only consumes power when switching?
How do I change colors in Zim (wiki editor) running on Kubuntu 18.10?
What would you call this weird metallic apparatus that allows you to lift people?
How does light 'choose' between wave and particle behaviour?
If Windows 7 doesn't support WSL, then what does Linux subsystem option mean?
What do you call the main part of a joke?
How to compare two different files line by line in unix?
Why is it faster to reheat something than it is to cook it?
Hangman Game with C++
Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?
Take 2! Is this homebrew Lady of Pain warlock patron balanced?
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
I would like to know if is there a way to optimize the code that I use to draw the next graph:
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
add a comment |
I would like to know if is there a way to optimize the code that I use to draw the next graph:
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
add a comment |
I would like to know if is there a way to optimize the code that I use to draw the next graph:
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
I would like to know if is there a way to optimize the code that I use to draw the next graph:
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
graphs tikz-graphs
asked 2 mins ago
J.RodriguezJ.Rodriguez
2326
2326
add a comment |
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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