Skip to content

Commit 15cffcd

Browse files
committed
new file: archive/24-25-1-离散数学II-期末-题图10.tex
1 parent 6c1305a commit 15cffcd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
\documentclass{standalone}
2+
\usepackage{preset}
3+
\begin{document}
4+
\begin{tikzpicture}[background rectangle/.style={fill=white},show background rectangle,x=20mm,y=16mm]
5+
\tikzset{every node/.style={draw,circle}}
6+
\node(0)at(0,1){\(s_0\)};
7+
\node(1)at(1,2){\(s_1\)};
8+
\node(2)[draw,circle,double]at(2,1){\(s_2\)};
9+
\node(3)at(1,0){\(s_3\)};
10+
\tikzset{every node/.style={},every path/.style={->,-Latex}}
11+
\draw($(0)+(-1,0)$)--node[above]{start}(0);
12+
\draw(0)--node[left]{1}(1);
13+
\draw(1)--node[right]{1}(2);
14+
\draw(2)--node[right]{1}(3);
15+
\draw(0)to[out=120,in=60,distance=25]node[above]{0}(0);
16+
\draw(1)to[out=120,in=60,distance=25]node[above]{0}(1);
17+
\draw(2)to[out=30,in=-30,distance=25]node[right]{0}(2);
18+
\draw(3)to[out=150,in=-150,distance=25]node[left]{0,1}(3);
19+
\end{tikzpicture}
20+
\end{document}

0 commit comments

Comments
 (0)