这是我的代码
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{pst-node}
\usepackage{tikz-cd}
\usepackage{tikz}
\usetikzlibrary{calc,arrows.meta,bending,automata,positioning,quotes}
\begin{document}
\begin{tikzpicture}[shorten >=1pt,node distance=4cm,on grid]
\node[state] (c) {id};
\node[state] (a) [above left of= c] {$a$};
\node[state] (b) [above right of= c] {$b$};
\path[->] (a) edge [bend right=40] node[above right] {$(0,1)$} (c);
\path[->] (a) edge [bend left=40] node[below left] {$(1,2)$} (c);
\path[->] (a) edge [bend right= 55] node[below left] {$(2,3)$} (c);
\path[->] (a) edge [bend left= 55] node[above right] {$(3,0)$} (c);
\path[->] (b) edge [bend right=20] node[above] {$(0,0)$} (a);
\path[->] (b) edge [] node[above left] {$(1,1)$} (c);
\path[->] (b) edge [bend right= 40] node[above] {$(2,2)$} (a);
\path[->] (b) edge [loop right] node[right] {$(3,3)$} ();
\path[->] (c) edge [loop below] node[below] {$(0,0)$} ();
\path[->] (c) edge [in=240,out=290,loop] node[below] {$(1,1)$} ();
\end{tikzpicture}
\end{document}
这产生了
我怎样才能增加第二个循环的大小?
答案1
这有帮助吗?
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc,bending,automata,positioning}
\begin{document}
\begin{tikzpicture}[shorten >=1pt,node distance=4cm,on grid]
\node[state] (c) {id};
\node[state] (a) [above left of= c] {$a$};
\node[state] (b) [above right of= c] {$b$};
\path[->] (a) edge [bend right=40] node[above right] {$(0,1)$} (c);
\path[->] (a) edge [bend left=40] node[below left] {$(1,2)$} (c);
\path[->] (a) edge [bend right= 55] node[below left] {$(2,3)$} (c);
\path[->] (a) edge [bend left= 55] node[above right] {$(3,0)$} (c);
\path[->] (b) edge [bend right=20] node[above] {$(0,0)$} (a);
\path[->] (b) edge [] node[above left] {$(1,1)$} (c);
\path[->] (b) edge [bend right= 40] node[above] {$(2,2)$} (a);
\path[->] (b) edge [loop right] node[right] {$(3,3)$} ();
\path[->] (c) edge [loop below] node[below] {$(0,0)$} ();
\path[->] (c) edge [scale=5,in=240,out=300,loop] node[below] {$(1,1)$} ();
\end{tikzpicture}
\end{document}