How to get curved arrow originating and ending at the same nodeTikZ: Get values for predefined dash patterns...
Is there a way to find out the age of climbing ropes?
Why aren't there more gauls like Obelix?
Plagiarism of code by other PhD student
How will Occam's Razor principle work in Machine learning
Split a number into equal parts given the number of parts
How spaceships determine each other mass in space?
What is a term for a function that when called repeatedly, has the same effect as calling once?
Create chunks from an array
Are Wave equations equivalent to Maxwell equations?
Can a Mexican citizen living in US under DACA drive to Canada?
Should we avoid writing fiction about historical events without extensive research?
How do we objectively assess if a dialogue sounds unnatural or cringy?
Can I solder 12/2 Romex to extend wire 5 ft?
PTIJ: What dummy is the Gemara referring to?
Searching for a string that contains the file name
Remove object from array based on array of some property of that object
Why is it "take a leak?"
Did Amazon pay $0 in taxes last year?
How can I handle a player who pre-plans arguments about my rulings on RAW?
What is better: yes / no radio, or simple checkbox?
What kind of inflection is occuring in passive vb + かかった?
Has a sovereign Communist government ever run, and conceded loss, on a fair election?
Number of folds to form a cube, using a square paper?
School performs periodic password audits. Is my password compromised?
How to get curved arrow originating and ending at the same node
TikZ: Get values for predefined dash patterns for grid in the option help linesParts (node) with the same height TikzHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?Curved text within a curved arrowTikZ Spacing Between Arrow and NodeTikZ: Drawing an arc from an intersection to an intersectionProblems with nested TikZpicturesThe TikZ pipeline: A path's 'draw' option has no effect on a 'behind path' nodedraw curved arrowGet bend arrow right (dangling head, not curved)
Hi I'm trying to replicate the graph below. I've done most of it, but can't figure out a way to have an arrow originate and end at
I've managed to get the below figure. And I'm stuck at produce the arrows on the Node E.
I've attached the code below
tikzstyle{state} = [circle, minimum width=2cm, draw=black]
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$};
node [above of=end, yshift=-3.5cm] {E};
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end);
path (reset) edge[] node [] {} (end);
end{tikzpicture}
tikz-pgf nodes
New contributor
add a comment |
Hi I'm trying to replicate the graph below. I've done most of it, but can't figure out a way to have an arrow originate and end at
I've managed to get the below figure. And I'm stuck at produce the arrows on the Node E.
I've attached the code below
tikzstyle{state} = [circle, minimum width=2cm, draw=black]
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$};
node [above of=end, yshift=-3.5cm] {E};
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end);
path (reset) edge[] node [] {} (end);
end{tikzpicture}
tikz-pgf nodes
New contributor
add a comment |
Hi I'm trying to replicate the graph below. I've done most of it, but can't figure out a way to have an arrow originate and end at
I've managed to get the below figure. And I'm stuck at produce the arrows on the Node E.
I've attached the code below
tikzstyle{state} = [circle, minimum width=2cm, draw=black]
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$};
node [above of=end, yshift=-3.5cm] {E};
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end);
path (reset) edge[] node [] {} (end);
end{tikzpicture}
tikz-pgf nodes
New contributor
Hi I'm trying to replicate the graph below. I've done most of it, but can't figure out a way to have an arrow originate and end at
I've managed to get the below figure. And I'm stuck at produce the arrows on the Node E.
I've attached the code below
tikzstyle{state} = [circle, minimum width=2cm, draw=black]
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$};
node [above of=end, yshift=-3.5cm] {E};
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end);
path (reset) edge[] node [] {} (end);
end{tikzpicture}
tikz-pgf nodes
tikz-pgf nodes
New contributor
New contributor
New contributor
asked 16 hours ago
leviathanleviathan
233
233
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Like this ? (see commented line for explanations)
documentclass[tikz,border=5mm]{standalone}
begin{document}
tikzstyle{state} = [circle, minimum width=2cm, draw=black]
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$ };
draw (end) to [in=-40,out=220,looseness=5,min distance=30mm]node[above]{Start $=0$} (end);% <------ loop Start=0
node [above of=end, yshift=-3.5cm] {E };
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end.200);%<--- arrows a little above
path (reset) edge[] node [] {} (end);
%node [circle,draw] at (end){} edge [in=30,out=60,loop] ();
end{tikzpicture}
end{document}
Addendum:
tikzstyle
is deprecated, use tikzset
instead, which give:
documentclass[tikz,border=5mm]{standalone}
begin{document}
%tikzstyle{state} = [circle, minimum width=2cm, draw=black]
tikzset{state/.style={circle, minimum width=2cm, draw=black}}
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$ };
draw (end) to [in=-40,out=220,looseness=5,min distance=30mm]node[above]{Start $=0$} (end);% <------ loop Start=0
node [above of=end, yshift=-3.5cm] {E };
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end.200);%<--- arrows a little above
path (reset) edge[] node [] {} (end);
end{tikzpicture}
end{document}
Thank you, that worked perfectly
– leviathan
14 hours ago
tex.stackexchange.com/questions/476253/…
– marmot
14 hours ago
add a comment |
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
});
}
});
leviathan is a new contributor. Be nice, and check out our Code of Conduct.
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%2f478103%2fhow-to-get-curved-arrow-originating-and-ending-at-the-same-node%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
Like this ? (see commented line for explanations)
documentclass[tikz,border=5mm]{standalone}
begin{document}
tikzstyle{state} = [circle, minimum width=2cm, draw=black]
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$ };
draw (end) to [in=-40,out=220,looseness=5,min distance=30mm]node[above]{Start $=0$} (end);% <------ loop Start=0
node [above of=end, yshift=-3.5cm] {E };
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end.200);%<--- arrows a little above
path (reset) edge[] node [] {} (end);
%node [circle,draw] at (end){} edge [in=30,out=60,loop] ();
end{tikzpicture}
end{document}
Addendum:
tikzstyle
is deprecated, use tikzset
instead, which give:
documentclass[tikz,border=5mm]{standalone}
begin{document}
%tikzstyle{state} = [circle, minimum width=2cm, draw=black]
tikzset{state/.style={circle, minimum width=2cm, draw=black}}
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$ };
draw (end) to [in=-40,out=220,looseness=5,min distance=30mm]node[above]{Start $=0$} (end);% <------ loop Start=0
node [above of=end, yshift=-3.5cm] {E };
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end.200);%<--- arrows a little above
path (reset) edge[] node [] {} (end);
end{tikzpicture}
end{document}
Thank you, that worked perfectly
– leviathan
14 hours ago
tex.stackexchange.com/questions/476253/…
– marmot
14 hours ago
add a comment |
Like this ? (see commented line for explanations)
documentclass[tikz,border=5mm]{standalone}
begin{document}
tikzstyle{state} = [circle, minimum width=2cm, draw=black]
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$ };
draw (end) to [in=-40,out=220,looseness=5,min distance=30mm]node[above]{Start $=0$} (end);% <------ loop Start=0
node [above of=end, yshift=-3.5cm] {E };
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end.200);%<--- arrows a little above
path (reset) edge[] node [] {} (end);
%node [circle,draw] at (end){} edge [in=30,out=60,loop] ();
end{tikzpicture}
end{document}
Addendum:
tikzstyle
is deprecated, use tikzset
instead, which give:
documentclass[tikz,border=5mm]{standalone}
begin{document}
%tikzstyle{state} = [circle, minimum width=2cm, draw=black]
tikzset{state/.style={circle, minimum width=2cm, draw=black}}
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$ };
draw (end) to [in=-40,out=220,looseness=5,min distance=30mm]node[above]{Start $=0$} (end);% <------ loop Start=0
node [above of=end, yshift=-3.5cm] {E };
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end.200);%<--- arrows a little above
path (reset) edge[] node [] {} (end);
end{tikzpicture}
end{document}
Thank you, that worked perfectly
– leviathan
14 hours ago
tex.stackexchange.com/questions/476253/…
– marmot
14 hours ago
add a comment |
Like this ? (see commented line for explanations)
documentclass[tikz,border=5mm]{standalone}
begin{document}
tikzstyle{state} = [circle, minimum width=2cm, draw=black]
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$ };
draw (end) to [in=-40,out=220,looseness=5,min distance=30mm]node[above]{Start $=0$} (end);% <------ loop Start=0
node [above of=end, yshift=-3.5cm] {E };
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end.200);%<--- arrows a little above
path (reset) edge[] node [] {} (end);
%node [circle,draw] at (end){} edge [in=30,out=60,loop] ();
end{tikzpicture}
end{document}
Addendum:
tikzstyle
is deprecated, use tikzset
instead, which give:
documentclass[tikz,border=5mm]{standalone}
begin{document}
%tikzstyle{state} = [circle, minimum width=2cm, draw=black]
tikzset{state/.style={circle, minimum width=2cm, draw=black}}
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$ };
draw (end) to [in=-40,out=220,looseness=5,min distance=30mm]node[above]{Start $=0$} (end);% <------ loop Start=0
node [above of=end, yshift=-3.5cm] {E };
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end.200);%<--- arrows a little above
path (reset) edge[] node [] {} (end);
end{tikzpicture}
end{document}
Like this ? (see commented line for explanations)
documentclass[tikz,border=5mm]{standalone}
begin{document}
tikzstyle{state} = [circle, minimum width=2cm, draw=black]
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$ };
draw (end) to [in=-40,out=220,looseness=5,min distance=30mm]node[above]{Start $=0$} (end);% <------ loop Start=0
node [above of=end, yshift=-3.5cm] {E };
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end.200);%<--- arrows a little above
path (reset) edge[] node [] {} (end);
%node [circle,draw] at (end){} edge [in=30,out=60,loop] ();
end{tikzpicture}
end{document}
Addendum:
tikzstyle
is deprecated, use tikzset
instead, which give:
documentclass[tikz,border=5mm]{standalone}
begin{document}
%tikzstyle{state} = [circle, minimum width=2cm, draw=black]
tikzset{state/.style={circle, minimum width=2cm, draw=black}}
begin{tikzpicture}[very thick, ->, >=stealth,auto, node distance=4cm]
node(shift) [state] {Shift $=1$};
node [above of=shift, yshift=-3.5cm] {S};
node(add) [state, right of=shift] {Add $=1$};
node [above of=add, yshift=-3.5cm] {A};
node(init) [state, right of=add] {Init $=1$};
node [above of=init, yshift=-3.5cm] {I};
node(control) [state, below of=add] {};
node [above of=control, yshift=-3.5cm] {C};
node(others) [state, below of=control] {};
node [above of=others, yshift=-3.5cm] {Others};
node(end) [state, right of=control] {Done $=1$ };
draw (end) to [in=-40,out=220,looseness=5,min distance=30mm]node[above]{Start $=0$} (end);% <------ loop Start=0
node [above of=end, yshift=-3.5cm] {E };
node(reset) [circle, draw=black, fill=black, right of=end, xshift=-1.5cm] {};
node [above of=reset, yshift=-3.5cm] {Reset};
path (add) edge node [above] {$1$} (shift);
path (shift) edge[bend right] node [below left] {LSB/Stop $=00$} (control);
path (control) edge[] node [above right] {$1$} (shift);
path (control) edge[] node [right] {LSB $=1$} (add);
path (init) edge[] node [below right] {$1$} (control);
path (end) edge[] node [right] {Start $=1$} (init);
path (control) edge[] node [above] {$01$} (end);
path (others) edge[] node [above left] {$1$} (end.200);%<--- arrows a little above
path (reset) edge[] node [] {} (end);
end{tikzpicture}
end{document}
edited 7 hours ago
answered 16 hours ago
AndréCAndréC
9,94311547
9,94311547
Thank you, that worked perfectly
– leviathan
14 hours ago
tex.stackexchange.com/questions/476253/…
– marmot
14 hours ago
add a comment |
Thank you, that worked perfectly
– leviathan
14 hours ago
tex.stackexchange.com/questions/476253/…
– marmot
14 hours ago
Thank you, that worked perfectly
– leviathan
14 hours ago
Thank you, that worked perfectly
– leviathan
14 hours ago
tex.stackexchange.com/questions/476253/…
– marmot
14 hours ago
tex.stackexchange.com/questions/476253/…
– marmot
14 hours ago
add a comment |
leviathan is a new contributor. Be nice, and check out our Code of Conduct.
leviathan is a new contributor. Be nice, and check out our Code of Conduct.
leviathan is a new contributor. Be nice, and check out our Code of Conduct.
leviathan is a new contributor. Be nice, and check out our Code of Conduct.
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%2f478103%2fhow-to-get-curved-arrow-originating-and-ending-at-the-same-node%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