JackieLin0123/SciTikZ-Bench huggingface dataset:
\documentclass[border=5pt]{standalone}
\usepackage{tikz-feynman}
\tikzfeynmanset{compat=1.1.0}

\begin{document}
\begin{tikzpicture}
\begin{feynman}
\vertex (b);
\vertex[right=2cm of b] (d);
\diagram*{
    (b) -- [photon, edge label=\(t_2\hspace{10mm}t_1\)] (d),
};
\end{feynman}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{amssymb, amsmath, tikz}
\usetikzlibrary{matrix}

\begin{document}

\begin{tikzpicture}[-stealth,
  label/.style = { font=\footnotesize }, baseline=(current bounding box.center)]
  \matrix (m) [
      matrix of math nodes,
      row sep    = 4.9em,
      column sep = 5em
    ]
   {
H^{n}(\Gamma, \underline{\mathbb{C}}_{X}(X)) & H^{n}(\Gamma, p_{*}\underline{\mathbb{C}}_{Y}(X)) & H^{n}(\Gamma, \underline{\mathbb{C}}_{Y}(Y)) & H^{n}(\Gamma, \mathcal{O}_{Y}(Y))\\  
R^{n}(\Lambda_{X_{\Gamma}}\tilde{\pi}^{\Gamma}_{*})(\underline{\mathbb{C}}_{X}) & R^{n}(\Lambda_{X_{\Gamma}}\tilde{\pi}^{\Gamma}_{*})(p_{*}\underline{\mathbb{C}}_{Y}) & R^{n}(\Lambda_{M_{\Gamma}}\pi^{\Gamma}_{*})(\underline{\mathbb{C}}_{Y}) & R^{n}(\Lambda_{M_{\Gamma}}\pi^{\Gamma}_{*})(\mathcal{O}_{Y})\\
H^{n}(X_{\Gamma}, \tilde{\pi}^{\Gamma}_{*}\underline{\mathbb{C}}_{X}) & H^{n}(X_{\Gamma}, \tilde{p}_{*}\underline{\mathbb{C}}_{M_{\Gamma}}) & H^{n}(M_{\Gamma},\underline{\mathbb{C}}_{M_{\Gamma}}) & H^{n}(M_{\Gamma},\mathcal{O}_{M_{\Gamma}})\\   
      };
      \path (m-1-1) edge node[above, label]{$\Lambda_{X}(t)_{*}$} (m-1-2);
      \path (m-1-1) edge node[below, label]{$\cong$} (m-1-2);
      \path (m-1-2) edge node[above, label]{$id$} (m-1-3);
      \path (m-1-2) edge node[below, label]{$\cong$} (m-1-3);
      \path (m-1-3) edge node[above, label]{$\Lambda_{Y}(\iota)_{*}$} (m-1-4);
      \path (m-2-1) edge node[above, label]{$t_{*}$} (m-2-2);
      \path (m-2-2) edge node[above, label]{$\mu$} (m-2-3);
      \path (m-2-3) edge node[above, label]{$\iota_{*}$} (m-2-4);
      \path (m-3-1) edge node[above, label]{$t_{*}$} (m-3-2);
      \path (m-3-2) edge node[above, label]{via $\tilde{p}$} (m-3-3);
      \path (m-3-3) edge node[above, label]{$\iota_{*}$} (m-3-4);
      \path (m-1-1) edge node[right, label]{$\cong$} (m-2-1);
      \path (m-1-1) edge node[left, label]{$u_{1}$} (m-2-1);
      \path (m-1-2) edge node[right, label]{$\cong$} (m-2-2);
      \path (m-1-2) edge node[left, label]{$v_{1}$} (m-2-2);      
      \path (m-1-3) edge node[left, label]{$v_{2}$} (m-2-3);
      \path (m-1-4) edge node[right, label]{$v$} (m-2-4);
      \path (m-3-1) edge node[below, label]{$\cong$} (m-3-2);
      \path (m-2-1) edge node[below, label]{$\cong$} (m-2-2);      
      \path (m-3-1) edge node[left, label]{$s$} (m-2-1);
      \path (m-3-2) edge node[left, label]{$e_{1}$} (m-2-2);
      \path (m-3-3) edge node[right, label]{$\cong$} (m-2-3);
      \path (m-3-3) edge node[left, label]{$e_{2}$} (m-2-3);
      \path (m-3-4) edge node[right, label]{$\cong$} (m-2-4);
      \path (m-3-4) edge node[left, label]{$w$} (m-2-4);
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}

\begin{document}
\begin{tikzpicture}[x=45pt,y=45pt,thick,label distance=-0.25em,baseline=(O.base), scale=0.7]
\coordinate (O) at (0,0);
\coordinate (T) at (0,1.5);
\coordinate (u) at (0,0.5);
\coordinate [inner sep=0em] (v0) at ($ ({-cos(1*pi/12 r)*1.2},{-sin(1*pi/12 r)*0.48}) $);
\coordinate [inner sep=0em] (v1) at ($ ({-cos(7*pi/12 r)*1.2},{-sin(7*pi/12 r)*0.48}) $);
\coordinate [inner sep=0em] (v2) at ($ ({-cos(13*pi/12 r)*1.2},{-sin(13*pi/12 r)*0.48}) $);
\coordinate [inner sep=0em] (v3) at ($ ({-cos(19*pi/12 r)*1.2},{-sin(19*pi/12 r)*0.48}) $);
\coordinate [inner sep=0em] (v0-0) at ($ (v0) + (T) $);
\coordinate [inner sep=0em] (v0-1) at ($ (v0-0) + (u) $);
\coordinate [inner sep=0em] (v1-0) at ($ (v1) + (T) $);
\coordinate [inner sep=0em] (v1-1) at ($ (v1-0) + (u) $);
\coordinate [inner sep=0em] (v2-0) at ($ (v2) + (T) $);
\coordinate [inner sep=0em] (v2-1) at ($ (v2-0) + (u) $);
\coordinate [inner sep=0em] (v3-0) at ($ (v3) + (T) $);
\coordinate [inner sep=0em] (v3-1) at ($ (v3-0) + (u) $);
\draw (v0) -- (v1) -- (v2) -- (v3) -- (v0);
\draw [dotted] (v0-1) -- (v0);
\draw [dotted] (v1-1) -- (v1);
\draw [dotted] (v2-1) -- (v2);
\draw [dotted] (v3-1) -- (v3);
\node [inner sep=0.1em] (v0') at (v0) {$\bullet$};
\node [anchor=east,inner sep=0em] at (v0'.west) {$a_1$};
\node [inner sep=0.1em,label={[label distance=-0.625em]330:{$b_1$}}] at (v1) {$\bullet$};
\node [inner sep=0.1em] (v2') at (v2) {$\bullet$};
\node [anchor=west,inner sep=0em] at (v2'.east) {$a_2$};
\node [inner sep=0.1em,label={[label distance=-0.5em]175:{$b_2$}}] at (v3) {$\bullet$};

\draw [line width=3.2pt,white] (v3-0) -- (v0-0);
\draw [line width=3.2pt,white] (v3-1) -- (v0-1);
\draw (v3-0) -- (v0-0);
\draw (v3-1) -- (v0-1);

\draw [line width=3.2pt,white] (v2-0) -- (v3-1);
\draw [line width=3.2pt,white] (v2-1) -- (v3-0);
\draw (v2-0) -- (v3-1);
\draw (v2-1) -- (v3-0);

\draw [line width=3.2pt,white] (v0-0) -- (v1-0);
\draw [line width=3.2pt,white] (v0-1) -- (v1-1);
\draw (v0-0) -- (v1-0);
\draw (v0-1) -- (v1-1);

\draw [line width=3.2pt,white] (v1-0) -- (v2-0);
\draw [line width=3.2pt,white] (v1-1) -- (v2-1);
\draw (v1-0) -- (v2-0);
\draw (v1-1) -- (v2-1);

\node [inner sep=0.1em,label=left:{$0$}] at (v0-0) {$\bullet$};
\node [inner sep=0.1em,label=left:{$1$}] at (v0-1) {$\bullet$};
\node [inner sep=0.1em,label={[label distance=-0.5em]330:{$0$}}] at (v1-0) {$\bullet$};
\node [inner sep=0.1em] at (v1-1) {$\bullet$};
\node [inner sep=0.1em,label=right:{$0$}] at (v2-0) {$\bullet$};
\node [inner sep=0.1em,label=right:{$1$}] at (v2-1) {$\bullet$};
\node [inner sep=0.1em] at (v3-0) {$\bullet$};
\node [inner sep=0.1em,label={[label distance=-0.5em]150:{$1$}}] at (v3-1) {$\bullet$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows, positioning, shapes, calc}

\begin{document}

\begin{tikzpicture}[x=1.25cm, y=1.25cm]
\draw[->] (0,0) -- (3,0);
\draw[->] (0,0) -- (0,3);
\node[anchor=south] at (3,0) {$x_1$};
\node[anchor=east] at (0,3) {$x_2$};

\path[draw=black, fill=gray!20!white] (1.25,1.25) -- (0,1.25) -- (0,2.5) -- (2.5,2.5) -- (2.5,0) -- (1.25,0) -- cycle;

\node[anchor=north east, blue] at (1.25,1.25) {$\Gamma_D$};
\node[anchor=west, red] at (2.5,1.25) {$\Gamma_N$};
\node[anchor=south, red] at (1.25,2.5) {$\Gamma_N$};
\node[anchor=east, red] at (0,1.875) {$\Gamma_N$};
\node[anchor=south, red] at (1.875,0) {$\Gamma_N$};

\node[anchor=east] at (0,1.25) {$(-1,0)$};
\node[anchor=north] at (2.5,0) {$(1,-1)$};
\node[anchor=north] at (1.25,0) {$(0,-1)$};
\node[anchor=east] at (0,2.5) {$(-1,1)$};
\node[anchor=west] at (2.5,2.5) {$(1,1)$};
\node[anchor=north] at (0.75,2.25) {$\sigma=1$};

\draw[fill=green!30] (1.25,1.25) -- ++(1cm,0) arc(0:45:1cm) node[midway,left] {$\theta$} -- cycle;
\draw[thick, ->] (1.25,1.25) -- node[above] {$r$} (2.1,2.1);
\draw[thin, dashed] (2.1,1.25) -- (2.5,1.25);

\path[draw=blue, very thick] (0,1.25) -- (1.25,1.25) -- (1.25,0);
\path[draw=red, very thick] (0,1.25) -- (0,2.5) -- (2.5,2.5) -- (2.5,0) -- (1.25,0);
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[compat=1.1.0]{tikz-feynman}

\begin{document}
\begin{tikzpicture}[baseline=($0.5*(ini1)+0.5*(ini2)$)]
	\begin{feynman}[inline=($0.5*(ini1)+0.5*(ini2)$), medium]
		\vertex (ini1) { \( \phi_1 (q) \) };
		\vertex [below = of ini1] (ini2) { \( \phi_2 (p) \) };
		\vertex [right = of ini1] (int1);
		\vertex [right = of ini2] (int2);
		\vertex [right = of int1] (f1) { \( \phi_1 (q') \) };
		\vertex [right = of int2] (f2) { \( \phi_2 (p') \) };

		\diagram*{
			(ini1) -- [charged scalar] (int1) -- [scalar] (f2),
			(ini2) -- [scalar] (int2) -- [charged scalar] (f1),
			(int1) -- [charged scalar, edge label = \( \phi_1 \)] (int2),
		};
	\end{feynman}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}

\begin{document}
\begin{tikzpicture}
	\begin{axis}[
		title={$\sigma_2(M)=0$},
		xlabel={$\sigma_1(M)$}, xmin=0, xmax=10,
		ylabel={\% improvement in MSE}, ymin=0, ymax=8,
		width=0.45\linewidth
		]
		\addplot[thick, color=black,
		filter discard warning=false, unbounded coords=discard
		] table {
			0    7.2459
			1.0000    6.4284
			2.0000    5.1372
			3.0000    4.4037
			4.0000    4.1602
			5.0000    4.0852
			6.0000    4.0699
			7.0000    4.0722
			8.0000    4.0939
			9.0000    4.1504
			10.0000    4.1281
		};
	\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,quotes,positioning}

\begin{document}

\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3cm,
  thick,main node/.style={circle,fill,scale=.5,draw,font=\sffamily\Large\bfseries}]

  \node[main node] (X0) [label=above:{$X_0$}] at (2,2){};
  \node[main node] (X1)  [label=right:{$X_1$}] at (4,2){};
	\node[main node] (X2)  [label=left:{$X_2$}] at (0,2) {};
	\node[main node] (X3)  [label=left:{$X_3$}] at (1,0) {};
			
  \path[every node/.style={font=\sffamily\small}]
    (X0) edge node [above] {$\sqrt{3}Z_1$}  (X1)
		(X0) edge node [above] {$\sqrt{2}Z_2$}  (X2)
		  (X0)   edge node  [left] {$Z_3$}  (X3);

\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}

\begin{document}

\begin{tikzpicture}[scale=1.3]
\draw[-] (-0.5,0)--(-0.2,0);
\draw[-] (0.2,0)--(0.5,0);
\draw[-] (-0.2,-0.2)--(-0.2,0.2)--(0.2,0.2)--(0.2,-0.2)--(-0.2,-0.2);
\node at (0,0) {$\dot{+}$};

\draw[-] (0,0.2)--(0,1);

\draw[-] (-0.5,0)--(-0.5,-1);
\draw[-] (0.5,0)--(0.5,-0.3);
\draw[-] (0.5,-0.3)--(0.9,-0.3);
\node at (0.9,0.7) {$\bullet$};
\draw[-] (0.7,-0.3)--(0.7,-1);

\draw[-] (0.9,0.7)--(0.9,0.55);
\draw[-] (0.9,-0.05)--(0.9,-0.3);
\node[draw,circle] at (0.9,0.25) {${\scriptstyle -1}$};

\draw[-] (0,1)--(1.5,1);
\draw[-] (1.5,1)--(1.5,-1);
\end{tikzpicture}

\end{document}
\documentclass[tikz]{standalone}
\usepackage{amsmath, amssymb}
\usetikzlibrary{matrix}

\begin{document}
\begin{tikzpicture}
  \matrix (m)[
    matrix of math nodes,
    nodes in empty cells,
    minimum width=width("998888"),
  ] {
    u_{0,0} & 0         & u_{0,2} & 0           \\
    u_{1,0} & 0         & u_{1,2} & 0           \\
    0         & u_{2,0} & 0         & u_{2,2}   \\
    0         & u_{3,0} & 0         & u_{3,2}   \\
  } ;

  \draw (m-2-1.south west) rectangle (m-1-1.north east);
  \draw (m-4-2.south west) rectangle (m-3-2.north east);
  \draw (m-2-3.south west) rectangle (m-1-3.north east);
  \draw (m-4-4.south west) rectangle (m-3-4.north east);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}
\begin{tikzpicture}[roundnode/.style={draw,shape=circle,fill=black,minimum size=4mm}]
    \node[roundnode,label={$x_3$}] (x3) {};
    \node[roundnode,label={below:$y_3$}] (y3)[below=of x3] {};
    \draw (x3) -- (y3);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
\draw[-stealth] (-1,0)--(3.5,0);
\draw[-stealth] (0,-0.7)--(0,3.5);
\draw[draw=black!30,dashed] (3,3)--(-0.7,-0.7);
\draw[draw=red!25,very thick] (0,2)--(1.125,0);
\draw[draw=red!25,very thick] (-0.435,-0.773)--(1.125,0);
\draw[draw=red!25,very thick] (0,2)--(-0.435,-0.773);
\draw[draw=red!25,very thick] (0,1.125)--(2,0);
\draw[draw=red!25,very thick] (-0.773,-0.435)--(2,0);
\draw[draw=red!25,very thick] (0,1.125)--(-0.773,-0.435);
\draw[draw=red,very thick] (0,1.5)--(1.5,0);
\draw[draw=red,very thick] (-0.58,-0.58)--(1.5,0);
\draw[draw=red,very thick] (0,1.5)--(-0.58,-0.58);
\node at (2.5,1.8) {$y=x$};
\node at (3.25,-0.3) {$x$};
\node at (-0.3,3.25) {$y$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
    \foreach \x in {0.1,-0.3,1.1} {
        \draw[thick] (\x,1) -- (0.6,0);
        \draw[fill] (\x,1) circle (0.1);
    }
    \draw[thick] (0.6,0) -- (1.6,0) -- (1.6,-1) -- (0.6,-1) -- cycle;
    \draw[thick] (0.6,0) -- (1.6,-1);
    \draw[thick] (1.6,0) -- (0.6,-1);
    \draw[dotted] (-0.3,1) -- (1,1);
    \foreach \x in {0.6,1.6} {
        \draw[fill] (\x,0) circle (0.1);
        \draw[fill] (\x,-1) circle (0.1);
    }
    \node at (0.4,1.3) {\large\textbf{$n-4$}};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
  \draw (-1,0) -- (-1-.4, .4);
  \draw (-1,0) -- (-1-.4, -.4);
  \node at (-1-.5, -.5) {$1$};
  \draw (-1,0) -- (-1, .55);
  \node at (-1, .7) {$n$};
  \draw (-1,0) -- (-1-.6, 0);
  \node at (-1, 0) {$\bullet$};
  \node at (-1, -.3) {$g$};
  \node at (1, 0) {$\bullet$};
  \draw (-1, 0) -- (1, 0);
  \node at (1, -.3) {$0$};
  \draw (1, 0) -- (1.4, .4);
  \node at (1.55, .55) {$n+1$};
  \draw (1, 0) -- (1.45, -.45); 
  \node at (1.55, -.55) {$i$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=0.4]
  \draw[->] (0,0) -- (5,0) node[right] {$g$};
  \draw[->] (0,0) -- (0,14) node[above] {$n$};

  % Axis labels
  \foreach \x in {1,...,4} {
    \node[scale=0.5] at (\x, -0.7) {$\x$};
    \draw (\x, -0.1) -- (\x, 0.1);
  }
  \foreach \y in {1,...,13} {
    \node[scale=0.5] at (-0.7, \y) {$\y$};
    \draw (-0.1, \y) -- (0.1, \y);
  }

  % Points
  \foreach \y in {3,...,13} {
    \filldraw (0, \y) circle (4pt);
  }
  \foreach \y in {1,...,10} {
    \filldraw (1, \y) circle (4pt);
  }
  \node[scale=0.6, color=red] at (1,11) {$\times$};
  \node[scale=0.6, color=red] at (1,12) {$\times$};
  \node[scale=0.6, color=red] at (1,13) {$\times$};

  \foreach \y in {0,...,9} {
    \filldraw (2, \y) circle (4pt);
  }
  \draw (2,10) circle (4pt);

  \foreach \y in {0,...,8} {
    \filldraw (3, \y) circle (4pt);
  }
  \draw (3,9) circle (4pt);
  \draw (3,10) circle (4pt);
  \draw (3,11) circle (4pt);

  \filldraw[color=blue] (4,0) circle (4pt);
  \filldraw[color=blue] (4,1) circle (4pt);
  \filldraw[color=blue] (4,2) circle (4pt);
  \filldraw[color=blue] (4,3) circle (4pt);
  \filldraw[color=blue] (4,4) circle (4pt);
  \filldraw[color=blue] (4,5) circle (4pt);
  \filldraw[color=blue] (4,6) circle (4pt);
  \filldraw[color=blue] (4,7) circle (4pt);
  \filldraw[color=white] (4,7) circle (1.6pt);
  \draw (4,8) circle (4pt);
  \draw (4,9) circle (4pt);
  \draw (4,10) circle (4pt);
  \draw (4,11) circle (4pt);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,positioning,calc}

\begin{document}
\begin{tikzpicture}[node distance={3cm}, main/.style = {draw, circle}, scale=0.9, transform shape]
	\node[main] (0) {$r$}; 
	\node[main] (1) [below left of=0] {1};
	\node[main] (2) [below right of=0] {2};
	\node[main] (3) [below right of=1] {3};

	\path[->,>=stealth, line width=0.6] (0) edge [bend right, auto=right] node {1} (1);
	\path[->,>=stealth, line width=0.6] (0) edge [bend left, auto=left] node {3} (2);
	\path[->,>=stealth, line width=0.6] (0) edge [bend left, auto=left, pos=0.8] node {1} (3);

	\path[->,>=stealth, line width=0.6] (1) edge [out=0,in=180, auto=left] node {1} (2);
	\path[->,>=stealth, line width=0.6] (1) edge [out=-25,in=120, auto=left] node {4} (3);

	\path[->,>=stealth, line width=0.6] (2) edge [bend right, auto=right] node {2} (1);
	\path[->,>=stealth, color=red, line width=0.6] (2) edge [bend left, auto=left] node {3} (3);

	\path[->,>=stealth, line width=0.6] (3) edge [bend left, auto=left] node {2} (1);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=0.4, auto=left, every node/.style={scale=0.7}]
    \tikzset{Bullet/.style={circle, draw, fill=black, scale=0.5}}
    \node[Bullet] (n1) at (0,0) {};
    \draw[black] (n1) -- (0,1);
    \draw[black] (n1) node[left] {$(3)$};
    \draw (0,-0.5) node[below] {I};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=0.5, every node/.style={scale=0.8}]
  \tikzset{Bullet/.style={circle,draw,fill=black,scale=0.5}}
  \node[Bullet] (n1) at (1,-1) {};
  \node[Bullet] (n2) at (1,-2) {};

  \draw[black] (n1) -- (1,0);
  \draw[black] (n1) -- (n2);
  \node[right] at (n1) {$~1$};
  \node[left] at (n1) {$(0)$};
  \node[right] at (n2) {$~n-1$};
  \node[left] at (n2) {$(1)$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=0.4, auto=left, every node/.style={scale=0.7}]
  \tikzset{Bullet/.style={circle, draw, fill=black, scale=0.5}}
  \node[Bullet] (T1) at (-5,-1) {};
  \node[Bullet] (T2) at (-3,-1) {};
  \node[Bullet] (n1) at (0.5,-0.5) {};
  \node[Bullet] (n2) at (0.5,-1.5) {};

  \draw[black] (T1) -- (-5,0);
  \draw[black] (T2) -- (-3,0);
  \draw[black] (T1) node[below] {$(0)$};
  \draw[black] (T2) node[below] {$(2)$};
  \draw[black] (-2.5,-1) node[right] {$\longmapsto$};
  \draw[black] (n1) -- (0.5,0.5);
  \draw[black] (n1) -- (n2);
  \draw[black] (n1) node[left] {$(1)$};
  \draw[black] (n2) node[left] {$(2)$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta, positioning}

\begin{document}
\begin{tikzpicture}[xscale=1.5, yscale=1.5]
    \node[draw, circle] (X) at (-1, 0) {$X$};
    \node[draw, circle, dashed] (Z) at (0, 1) {$\mathbf{Z}$};
    \node[draw, circle] (Y) at (1, 0) {$Y$};

    \path [-{Latex[length=2mm]}] (X) edge (Y);
    \path [-{Latex[length=2mm]}, dashed] (Z) edge (X);
    \path [-{Latex[length=2mm]}, dashed] (Z) edge (Y);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}[
    roundnode/.style={circle, draw=black, minimum size=6mm, inner sep=0}
]
    % NODES
    \node[roundnode] (x) at (-.5, 0) {$X$};
    \node[roundnode, fill=blue!15] (x_tilde) at (0, -1) {$\widetilde{X}$};
    \node[roundnode] (y) at (1,-2) {$Y$};
    \node[roundnode] (w) at (-1, -2) {$W$};
    \node[roundnode, fill=blue!15] (z) at (.5, 0) {$Z$};

    % ARROWS
    \draw[-latex, color=gray] (x) -- (x_tilde);
    \draw[-latex, color=gray] (x) -- (z); 
    \draw[-latex, color=gray] (z) -- (x_tilde);

    \draw[-latex] (z) to [looseness=.9, out=315, in=90] (y);
    \draw[-latex] (x) to [looseness=.9, out=225, in=90] (w);
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz-feynman}
\tikzfeynmanset{compat=1.1.0}

\begin{document}
\begin{tikzpicture}
\begin{feynman}
\vertex (a) {\(\gamma\delta\)};
\vertex[below=1.5cm of a] (b);
\vertex[below=1.5cm of b] (c) {\(\alpha\beta\)};
\vertex[right=1.5cm of b] (d) {\(\mu\nu\)};
\diagram* {
  (c) -- [gluon, momentum=\(k+q\)] (b) -- [gluon, momentum=\(k\)] (a),
  (b) -- [gluon, momentum=\(q\)] (d),
};
\end{feynman}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{automata, positioning, arrows.meta}

\begin{document}
\begin{tikzpicture}[> = stealth, thick]
	\node[state,initial above] (1) {$p_1$};
	\node[state] (2)[left = 2cm of 1] {$p_2$};
	\node[state] (4)[above left = 0.05cm and 2cm of 2] {$p_4$};
	\node[state] (5)[below left = 0.05cm and 2cm of 2] {$p_5$};
	\node[state] (3)[right = 2cm of 1] {$p_3$};
	\node[state] (6)[above right = 0.05cm and 2cm of 3] {$p_6$};
	\node[state] (7)[below right = 0.05cm and 2cm of 3] {$p_7$};

	\path[->] (1) edge node[above] {$a \mid \beta_1$} (2);
	\path[->] (1) edge node[above] {$a \mid \beta_2$} (3);
	\path[->] (2) edge node[sloped,above] {$a \mid \beta_3$} (4);
	\path[->] (2) edge node[sloped,below] {$a \mid \beta_4$} (5);
	\path[->] (3) edge node[sloped,above] {$a \mid \beta_5$} (6);
	\path[->] (3) edge node[sloped,below] {$a \mid \beta_6$} (7);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}

\begin{tikzpicture}[auto,node distance=9mm, thick,main node/.style={circle,opacity=.5,fill=gray!20,draw,minimum size=.7cm,inner sep=1pt}]
\foreach \x in {0,...,4}
    \foreach \y in {0,...,4} 
    {\pgfmathtruncatemacro{\label}{\x - 5 *  \y +21}
    \node [main node]  (\x\y) at (1*\x,1*\y) {\label};} 

\node [main node, opacity=1, ultra thick,fill=white]  (01) at (1*0,1*1) {16};
\node [main node, opacity=1, ultra thick,fill=green!20]  (11) at (1*1,1*1) {17};\draw[line width=.7mm] (11)--(21);
\node [main node, opacity=1, ultra thick,fill=green!20]  (21) at (1*2,1*1) {18};\draw[line width=.7mm] (21)--(31);
\node [main node, opacity=1, ultra thick,fill=green!20]  (31) at (1*3,1*1) {19};\draw[line width=.7mm] (31)--(30);
\node [main node, opacity=1, ultra thick,fill=green!20]  (30) at (1*3,1*0) {24};

\node [main node, opacity=1, ultra thick,fill=blue!20]  (22) at (1*2,1*2) {13};\draw[line width=.7mm] (22)--(32);
\node [main node, opacity=1, ultra thick,fill=blue!20]  (32) at (1*3,1*2) {14};\draw[line width=.7mm] (32)--(33);
\node [main node, opacity=1, ultra thick,fill=blue!20]  (33) at (1*3,1*3) {9};\draw[line width=.7mm] (33)--(23);
\node [minimum size=.67cm, draw, opacity=1, ultra thick,fill=blue!20] (23) at (1*2,1*3) {8};

\foreach \x in {0,...,4}
    \foreach \y [count=\yi] in {0,...,3}  
        \draw[opacity=.5] (\x\y)--(\x\yi) (\y\x)--(\yi\x) ;
\draw[white, line width=.7mm] (01)--(11);
\draw[line width=.7mm, dash pattern=on 1.8pt off .9pt] (01)--(11);
\draw[white, line width=.7mm] (21)--(22);
\draw[line width=.7mm, dash pattern=on 1.8pt off .9pt]  (21)--(22);
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows, positioning, shapes.geometric}

\begin{document}

\begin{tikzpicture}[auto, node distance=20mm, thick, main node/.style={circle, draw, minimum size=.6cm, inner sep=0pt}]
    \node[main node] (1) {$1$};
    \node[main node] (2) [right of=1] {$2$};
    \node[main node] (3) [right of=2] {$3$};
    \node[main node] (4) [right of=3] {$4$};
    \node[minimum height = .6cm, minimum width = 1.3cm] (5) [right of=4] {$\cdots$};
    \node[ellipse, draw, inner sep = 0pt, minimum height = .6cm] (6) [right of=5] {$n-k$};
    
    \path
    % self loops (red)
    (1) edge[->, loop, out=195, in=178, color=red, min distance=5mm, looseness=15] node{} (1)
    (2) edge[->, loop, out=195, in=178, color=red, min distance=5mm, looseness=15] node{} (2)
    (3) edge[->, loop, out=195, in=178, color=red, min distance=5mm, looseness=15] node{} (3)
    (4) edge[->, loop, out=195, in=178, color=red, min distance=5mm, looseness=15] node{} (4)
    (6) edge[->, loop, out=190, in=178, color=red, min distance=5mm, looseness=15] node{} (6)
    
    % forward edges (black)
    (1) edge[->, bend left] node{$\frac{n-k-1}{n}$} (2)
    (2) edge[->, bend left] node{$\frac{n-k-2}{n}$} (3)
    (3) edge[->, bend left] node{$\frac{n-k-3}{n}$} (4)
    (4) edge[->, bend left, in=160] node[anchor=center, midway, above]{$\frac{n-k-4}{n}$} (5)
    (5) edge[->, bend left] node[anchor=center, midway, above]{$\frac{1}{n}$} (6)
    
    % backward red edges
    (6) edge[->, bend left, color=red, out=15, looseness=.9] node{} (4)
    (6) edge[->, bend left, color=red, out=20, looseness=.9] node{} (3)
    (6) edge[->, bend left, color=red, out=25, looseness=.9] node{} (2)
    (6) edge[->, bend left, color=red, out=30, looseness=.9] node{} (1)
    
    (4) edge[->, bend left, color=red, looseness=.9] node{} (3)
    (4) edge[->, bend left, out=45, color=red, looseness=.9] node{} (2)
    (4) edge[->, bend left, out=60, color=red, looseness=.9] node{} (1)
    
    (3) edge[->, bend left, color=red, looseness=.9] node{} (2)
    (3) edge[->, bend left, out=45, color=red, looseness=.9] node{} (1)
    
    (2) edge[->, bend left, color=red, looseness=.9] node{} (1)
    
    % blue edges
    (1) edge[->, loop left, in=211, out=228, looseness=15, color=blue, min distance=5mm] node{} (1)
    (2) edge[->, bend left, in=130, out=45, color=blue] node{} (1)
    (3) edge[->, bend left, in=130, out=60, color=blue] node{} (1)
    (4) edge[->, bend left, in=130, out=75, color=blue] node{} (1)
    (6) edge[->, bend left, in=130, out=35, color=blue] node{} (1);
\end{tikzpicture}

\end{document}