JackieLin0123/SciTikZ-Bench huggingface dataset:
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning, arrows}

\begin{document}
\begin{tikzpicture}[yscale=1, xscale=2]
% Top label
\node[text centered] at (0.5,2) (ref){Comparison};

% First diagram
\node[text centered] at (-1,0) (a1) {$A$};
\node[text centered] at (1,0) (m1) {$M_2$};
\node[text centered] at (0,0) (l1) {$M_1$};
\node[text centered] at (2,0) (y1) {$Y$};
\draw [->, line width=1.25, gray] (l1) -- (m1);
\draw [->, line width=1.25, gray] (l1) to [out=-45, in=-135, looseness=1.2] (y1);
\draw [->, line width=1.25, gray] (m1) -- (y1); 
\draw [->, line width=1.25, dotted] (a1) to [out=-45, in=-135, looseness=1.2] (m1);
\draw [->, line width=1.25] (a1) to [out=45, in=135, looseness=1.2] (y1);
\draw [->, line width=1.25, dotted] (a1) -- (l1);

% Second diagram
\node[text centered] at (-1,-2) (a2) {$A$};
\node[text centered] at (1,-2) (m2) {$M_2$};
\node[text centered] at (0,-2) (l2) {$M_1$};
\node[text centered] at (2,-2) (y2) {$Y$};
\draw [->, line width=1.25, gray] (l2) -- (m2);
\draw [->, line width=1.25, gray] (l2) to [out=-45, in=-135, looseness=1.2] (y2);
\draw [->, line width=1.25, gray] (m2) -- (y2); 
\draw [->, line width=1.25, dotted] (a2) to [out=-45, in=-135, looseness=1.2] (m2);
\draw [->, line width=1.25, dotted] (a2) to [out=45, in=135, looseness=1.2] (y2);
\draw [->, line width=1.25] (a2) -- (l2);

% Third diagram
\node[text centered] at (-1,-4) (a3) {$A$};
\node[text centered] at (1,-4) (m3) {$M_2$};
\node[text centered] at (0,-4) (l3) {$M_1$};
\node[text centered] at (2,-4) (y3) {$Y$};
\draw [->, line width=1.25, gray] (l3) -- (m3);
\draw [->, line width=1.25, gray] (l3) to [out=-45, in=-135, looseness=1.2] (y3);
\draw [->, line width=1.25, gray] (m3) -- (y3); 
\draw [->, line width=1.25] (a3) to [out=-45, in=-135, looseness=1.2] (m3);
\draw [->, line width=1.25] (a3) to [out=45, in=135, looseness=1.2] (y3);
\draw [->, line width=1.25] (a3) -- (l3);

% Fourth diagram
\node[text centered] at (-1,-6) (a4) {$A$};
\node[text centered] at (1,-6) (m4) {$M_2$};
\node[text centered] at (0,-6) (l4) {$M_1$};
\node[text centered] at (2,-6) (y4) {$Y$};
\draw [->, line width=1.25, gray] (l4) -- (m4);
\draw [->, line width=1.25, gray] (l4) to [out=-45, in=-135, looseness=1.2] (y4);
\draw [->, line width=1.25, gray] (m4) -- (y4); 
\draw [->, line width=1.25] (a4) to [out=-45, in=-135, looseness=1.2] (m4);
\draw [->, line width=1.25, dotted] (a4) to [out=45, in=135, looseness=1.2] (y4);
\draw [->, line width=1.25, dotted] (a4) -- (l4);

% Fifth diagram
\node[text centered] at (-1,-8) (a5) {$A$};
\node[text centered] at (1,-8) (m5) {$M_2$};
\node[text centered] at (0,-8) (l5) {$M_1$};
\node[text centered] at (2,-8) (y5) {$Y$};
\draw [->, line width=1.25, gray] (l5) -- (m5);
\draw [->, line width=1.25, gray] (l5) to [out=-45, in=-135, looseness=1.2] (y5);
\draw [->, line width=1.25, gray] (m5) -- (y5); 
\draw [->, line width=1.25] (a5) to [out=-45, in=-135, looseness=1.2] (m5);
\draw [->, line width=1.25] (a5) to [out=45, in=135, looseness=1.2] (y5);
\draw [->, line width=1.25, dotted] (a5) -- (l5);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\tikzset{
  dot/.style={circle,fill=black,inner sep=0pt,minimum size=.1cm}
}

\begin{document}
\begin{tikzpicture}[scale=1.50]
  \coordinate[dot,label=left:{$\scriptstyle A$}] (A) at (0,0);
  \coordinate[dot,label=left:{$\scriptstyle B$}] (B) at (0,1/2);
  \coordinate[dot,label=left:{$\scriptstyle C$}] (C) at (0,1);
  \draw[thick] (A) -- (B);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}

\begin{document}
\begin{tikzpicture}
\node[draw,circle] (v1) at (0,0) {$v_1'$};
\node[draw,circle] (v2) at (2,0) {$v_2$};
\node[draw,circle] (v3) at (4,0) {$v_3$};
\draw [-Latex, thick] (v1) -- (v2);
\draw [-Latex, thick] (v3) -- (v2);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usepackage{amsmath} % Added to define \pmb

\begin{document}

\begin{tikzpicture}[scale=0.71]
% Assi
\draw[->, thick] (-1,0) -- (8.4,0) node[below, scale=1]{$\pmb{s}$};
\draw[->, thick] (0,-1.4) -- (0,5) node[left, scale=1]{$\pmb{X(s)}$};
\filldraw[blue] (0,0) circle (3.5pt) node[below left, black, scale=0.9]{\textbf{O}};

% Elementi sugli assi
\draw[lightgray] (7.3,2.6) -- (0,2.6) node[left, black, scale=1]{$\beta$};
\draw[dashed, lightgray] (7.3,2.6) -- (8.4,2.6);

% Traiettoria e punti
\draw (0,0) -- (0.7,1.12) -- (1.8,-0.64) -- (4.3,3.36) -- (5.4,1.6) -- (6.3,3.04) -- (7.4,1.28);

% Punti A, B, C con proiezioni
\draw[dashed, gray] (3.825,2.6) -- (3.825,0) node[below, black, scale=1]{$t_1$};
\filldraw[blue] (3.825,2.6) circle (3pt) node[above left, black, scale=0.9]{\textbf{A}};

\draw[dashed, gray] (4.775,2.6) -- (4.775,0) node[below, black, scale=1]{$t_2$};
\filldraw[blue] (4.775,2.6) circle (3pt) node[above right, black, scale=0.9]{\textbf{B}};

\draw[dashed, gray] (7.4,1.28) -- (7.4,0) node[below, black, scale=1]{$t$};
\draw[dashed, gray] (7.4,1.28) -- (0,1.28) node[left, black, scale=1]{$x$};
\filldraw[blue] (7.4,1.28) circle (3pt) node[right, black, scale=0.9]{\textbf{C}};
\end{tikzpicture}

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

\begin{document}
\begin{tikzpicture}
\node at (0,0) (0){$0$};
\node at (1,0) (1){$1$};
\node at (2,0) (2){$2$};
\node at (3,.5) (3){$3$};
\node at (3,-.5) (4){$4$};
\draw[->, thick] (1) -- (0);
\draw[->, thick] (2) -- (1);
\draw[->, thick] (3) -- (2);
\draw[->, thick] (2) -- (4);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=1]
\draw (2,0) -- (5,0);
\draw (4,1) -- (4,-1);

\foreach \x/\label in {2/A_{6}, 3/A_{5}, 4/A_{1}, 5/A_{3}} {
    \draw (\x,0) node {$\bullet$};
    \draw (\x,0) node [above]{$\label$};
}
\draw (4,1) node {$\bullet$};
\draw (4,1) node [above]{$A_{2}$};
\draw (4,-1) node {$\bullet$};
\draw (4,-1) node [right]{$A_{4}$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}
\begin{tikzpicture}
   \draw [->,thick] (3.5,0) -- node[above] {$q\to1$} (5.5,0);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[x=1.4em,y=1.4em, very thick, color=blue]
\draw[step=1,black,thin] (0,0) grid (6,6);
\filldraw [black] (1,4) circle (2pt);
\filldraw [black] (5,2) circle (2pt);
\filldraw [black] (6,5) circle (2pt);
\filldraw [red] (5,4) circle (2pt);
\draw (1,7) -- (1,4) -- (5,4) -- (5,2) -- (7,2);
\draw (6,7) -- (6,5) -- (7,5);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=0.9, auto=left]
  \draw (2.75,0) circle (1.5cm);
  \draw (2.75,0) circle (0.15cm);
  \node[below] at (2.75,-0.15) {$u$};
  \node[left] at (1.5,1.2) {$(G,\psi)$};

  \draw[->, very thick] (4.5,0.25) -- (7.5,0.25);
  \node[above] at (6,0.25) {\textit{Extension}};
  \draw[->, very thick] (7.5,-0.25) -- (4.5,-0.25);
  \node[below] at (6,-0.25) {\textit{Reduction}};

  \draw (9.25,0) circle (0.15cm);
  \draw (9.25,0) circle (1.5cm);
  \draw[fill=black] (9.25,2) circle (0.15cm);
  \node[below] at (9.25,-0.15) {$u$};
  \node[right] at (9.4,2) {$v$};
  \draw[->] (9.25,2) -- (9.25,0.15);
  \node[left] at (9.25,0.85) {$\alpha$};
  \node[right] at (12.3,1.2) {$(G',\psi')$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=.4, auto=left, very thick, -]
  \node [circle, fill=green!60!blue!50!white] (nA) at (-4,0) {$A$};
  \node [circle, fill=green!60!blue!50!white] (nB) at (0,0) {$B$};
  \draw (nA) -- (nB) [green!40!black] node [midway, left, black] {};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{snakes}

\begin{document}
\begin{tikzpicture}[line width=0.5 pt, scale=0.9]
    \draw[solid] (-3.5,1.0)--(-2.0,1.0);
    \draw[solid] (-3.5,-0.5)--(-2.0,-0.5);
    \draw[solid](-2.0,1.0)--(-2.0,-0.5);
    \draw[snake] (-2.0,1.0)--(0.0,1.0);
    \draw[snake] (-2.0,-0.5)--(0.0,-0.5);
    \node at (-3.8,1.0) {$N_1^0$};
    \node at (-3.8,-0.5) {$\overline{N_1^0}$};
    \node [right] at (-2.05,0.25) {$N_k^0$};
    \node at (0.21,1.0) {$Z'$};
    \node at (0.21,-0.5) {$Z$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc, shapes, fit, arrows.meta}

\begin{document}
\begin{tikzpicture}
    \node(a)[circle, fill, inner sep=1.5pt] at (0,0) {};
    \node(b)[circle, fill, inner sep=1.5pt] at (1,0) {};
    \node(c)[circle, fill, inner sep=1.5pt] at (0,1) {};
    \node(d)[circle, fill, inner sep=1.5pt] at (1,1) {};

    \draw (a) -- (b) -- (d) -- (c) -- (a);

    \node[fit=(a)(b), dashed, draw, rectangle, rounded corners=10, inner sep=10pt] {};
    \node[fit=(c)(d), dashed, draw, rectangle, rounded corners=10, inner sep=10pt] {};
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usepackage{amssymb}
\usepackage{amsmath}
\usetikzlibrary{shapes}

\begin{document}

\begin{tikzpicture}[node distance=4cm]
\node (S) [diamond, draw, minimum size=0.8cm, fill=blue!30] {S}; 
\node (I) [diamond, draw, minimum size=0.8cm, fill=red!40, right of=S] {I};

\draw[->] (-1.4,0) -- (S) node[midway,above]{$\mu N$};
\draw[->] (S.south) -| (0,-1.2) node[near end,left]{$\eta S$};
\draw[->] (S) -- (I) node[midway,above]{$\beta SI$};
\draw[->] (I.south) -| (4,-1.2) node[near end,left]{$\eta I$};
\draw[->] (S.north) -| (0,1) -- (4,1) node[midway,above]{$u S$} -| (I.north);
\end{tikzpicture}

\end{document}
\documentclass[tikz]{standalone}
\usepackage{amsmath, amssymb, amsfonts}
\usepackage{xcolor}
\usepackage{pgfplots}
\pgfplotsset{width=8cm,compat=1.9}

\begin{document}

\begin{tikzpicture}
\begin{axis}[
    xlabel={Attack Strength $(\epsilon)$},
    ylabel={Efficacy (\%)},
    xmin=0, xmax=0.4,
    ymin=0, ymax=100,
    xtick={0,0.05,0.1,0.15,0.2,0.25,0.3,0.35,0.4},
    ytick={0,20,40,60,80,100},
    legend pos=north west,
    ymajorgrids=true,
    grid style=dashed,
]
\addplot[
    color=blue,
    mark=square,
    ]
    coordinates {
    (0.01,0.25)(0.03,4.2)(0.08,16.3)(0.1,24.6)(0.2,58.56)(0.3,67.6)(0.31,67.39)(0.35,67.6)(0.4,67.5)
    };
\end{axis}
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\tikzset{>={Latex[width=1.2mm,length=1.7mm]}}

\begin{document}
\begin{tikzpicture}[scale=.50,baseline=0]
\draw[fill] (0,.5) circle (1.2mm); \node at (0,1) {$\scriptstyle{4}$};
\draw[fill] (0,-.5) circle (1.2mm); \node at (0,-1) {$\scriptstyle{1}$};
\draw[fill] (.6,0) circle (1.2mm); \node at (0.6,.5) {$\scriptstyle{2}$};
\draw[fill] (1.2,0) circle (1.2mm); \node at (1.2,.5) {$\scriptstyle{3}$};
\draw[-] (0,.5) -- (0,-.5);
\end{tikzpicture}
\end{document}
\documentclass[border=1pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\tikzset{>={Latex[width=1.2mm,length=1.7mm]}}

\begin{document}
\begin{tikzpicture}[scale=.5,baseline=0]
  \node at (0,2.5) {$(3)$};
  \node at (0,1.5) {$(2)$};
  \node at (0,0.5) {$(1)$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
    \node (1) at (-1,-2) {$0_A$};
    \node (2) at (1,-2) {$0_B$};
    \draw[blue!50!black] (1) -- (2) node[midway,above] {$\pi_2$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{xcolor}

\newcommand{\mc}{\mathcal}
\newcommand{\ol}{\overline}

\begin{document}

\begin{tikzpicture}[scale=1.75]
\draw (0,3) -- (3,0);
\draw (3,0) -- (6,3);
\draw[dashed] (0,3) .. controls (2.5,2.5) and (3.5,2.5) .. (6,3);
\filldraw  (3,0) circle (0.035cm);
\filldraw[fill=white] (0,3) circle (0.035cm);
\filldraw[fill=white] (6,3) circle (0.035cm);
\draw (1.3,1.5) node[below]{$\mc{C}^+$};
\draw (4.7,1.5) node[below]{$\ol{\mc{C}}^+$};
\draw (3,2.7) node[above]{$\Sigma^+$};
\draw (3,0.5) node[above]{$\mc{R}^+$};
\filldraw[fill=gray!20] (2,1.65) -- (1,2.65) .. controls (2.75,2.4) and (3.25,2.4) .. (5,2.65) -- (4,1.65) .. controls (3.25,1.25) and (2.75,1.25) .. (2,1.65);
\filldraw  (2,1.65) circle (0.035cm);
\filldraw  (1,2.65) circle (0.035cm);
\filldraw  (4,1.65) circle (0.035cm);
\filldraw  (5,2.65) circle (0.035cm);
\draw (3,2.5) node[below]{$\Sigma_{r_2}^c$};
\draw (3,1.4) node[below]{$\Sigma_{r_1}^c$};
\draw (3,2) node[below]{$\mc{D}_{r_1,r_2}^{(\ol{u},\ol{v})}$};
\draw (1.5,2.3) node[below left]{$\mc{F}_{\ol{v}}^c$};
\draw (4.5,2.3) node[below right]{$\mc{G}_{\ol{u}}^c$};
\end{tikzpicture}

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

\begin{document}
\begin{tikzpicture}
  % Left diagram: I(R)
  \draw(0,0)--(0,1); \draw(-1,0)--(-1,1); \draw(1,0)--(1,1);
  \foreach \x/\y in {0/0, 0/1, -1/1, -1/0, 1/0, 1/1} {
    \draw[fill=black](\x,\y)circle(.03);
  }
  \node[below] at(-1,0){$e_4$};
  \node[above] at(-1,1){$e_5$};
  \node[below] at(0,0){$e_1$};
  \node[above] at(0,1){$e_2$};
  \node[below] at(1,0){$e_3$};
  \node[above] at(1,1){$e_6$};
  \node at(0,-1){$I(R)$};

  % Right diagram: G_{Id}(R)
  \draw(6,0)--(6,1); \draw(6,0)--(5,0)--(5,1)--(6,1); \draw(6,0)--(7,0)--(7,1)--(6,1);
  \draw (7,1) arc [start angle=0, end angle=180, x radius=1cm, y radius=0.5cm];
  \draw (7,0) arc [start angle=0, end angle=-180, x radius=1cm, y radius=0.5cm];
  \foreach \x/\y in {6/0, 6/1, 5/1, 5/0, 7/0, 7/1} {
    \draw[fill=black](\x,\y)circle(.03);
  }
  \node[left] at(5,0){$e_4$};
  \node[left] at(5,1){$e_5$};
  \node[below] at(6,0){$e_1$};
  \node[above] at(6,1){$e_2$};
  \node[right] at(7,0){$e_3$};
  \node[right] at(7,1){$e_6$};
  \node at(6,-1){$G_{Id}(R)$};
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}[baseline={(0, -0.1)}]
\draw (0.05, 0.25) rectangle (2.35, -0.25);
\draw (0.0, 0.3) rectangle (2.4, -0.3);
\draw (0.4, 0) circle (.2);
\draw (1.2, 0) circle (.2);
\draw (2.0, 0) circle (.2);
\fill (1.2, 0) circle (2pt);
\draw (0.6, 0) -- (1.0, 0);
\draw (1.4, 0) -- (1.8, 0);
\node at (0, 0) {$\cdots$};
\node at (2.5, 0) {$\cdots$};
\node at (1.2, 0.45) {\small $1$};
\node at (1.2, -0.45) {\small $m$};
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}

\begin{document}
\begin{tikzpicture}
	\begin{axis}[
		height=9cm,
		ybar,
		enlargelimits=0.15,
		enlarge y limits={lower,value=0},
		ymin = 0,
		ymax=22,
		legend style={at={(0.5,-0.15)}, anchor=north, legend columns=-1},
		ylabel={Distribution},
		symbolic x coords={Agile, Waterfall, V-Model},
		xtick=data,
		nodes near coords,
		nodes near coords align={vertical},
		legend style={align=center},
		]
		\addplot coordinates {(Agile, 20) (Waterfall, 3) (V-Model, 1)};
		\addlegendentry{Agile, Waterfall, V-Model}
	\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.markings,calc,shapes,decorations.pathmorphing,patterns,decorations.pathreplacing,arrows.meta,positioning}

\begin{document}

\begin{tikzpicture}[scale=0.65]
\draw[-,very thick,black!40] (-4,0) to (0,0);
\draw[-,very thick,black!40] (0,0) to (4,0);
\draw[-,very thick,red!60] (0,0) to (-1.56,-1.25);
\draw[fill=gray, draw=none, fill opacity = 0.1] (0,0) to (-4,-3.2) to (-4,0) to (0,0);
\draw[-] (-0.75,0) arc (180:217.5:0.8);
\node at (-0.3,0.4) {\textcolor{red}{$a$}};
\node at (-1.2,-0.35) {$\theta$};
\node at (0,0.7) {$\bullet$};
\node at (0,1.1) {$0$};
\node at (0,0) {\textcolor{red}{$\bullet$}};
\draw[->,thick,color=black] (-4,0.7) to (4,0.7);
\node at (4,1.1) {\textcolor{black}{$x$}};
\draw[->,thick,color=black] (-4.2,0) to (-4.2,-2);
\node at (-4.4,-0.5) {\textcolor{black}{$z$}};
\draw[-,thick,black] (0,0) to (0,0.5);
\draw[-,thick,black] (2,0) to (2,0.5);
\draw[<->,dashed, black] (0,0.3) to (2,0.3);
\node at (1,0.3) {\textcolor{black}{\textbf{$\ell$}}};
\draw[-,very thick,red] (2,0) to (4,0);
\node at (3,-0.4) {\textcolor{red}{$R$}};
\draw[-,dashed,blue] (2,0) arc (0:-141.3:2); 
\draw[-,very thick,purple!100] (-1.56,-1.25) to (-4,-3.2);
\node at (-3,-3) {\textcolor{purple}{$\mathcal{I}$}};
\end{tikzpicture}

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

\begin{document}
\begin{tikzpicture}
\tikzset{
    b1/.style = {circle, draw=black, fill=black, minimum size=1mm, inner sep=1pt},
    b2/.style = {circle, draw=red, fill=red, minimum size=1mm, inner sep=1pt},
    b3/.style = {circle, draw=blue, fill=blue, minimum size=1mm, inner sep=1pt}
}
\draw[->] (-0.5,-5.5) -- (-0.5,5.5);
\draw[->] (-0.5,0) -- (10.5,0);
\draw[dashed] (0,0) -- (5,-5);
\draw[dashed] (5,-5) -- (10,0);
\draw[dashed] (0,0) -- (5,5);
\draw[dashed] (5,5) -- (10,0);
\node[b1] at (0,0) {};
\node[b1] at (1,-1) {};
\node[b1] at (2,0) {};
\node[b1] at (3,-1) {};
\node[b1] at (4,-2) {};
\node[b1] at (5,-1) {};
\node[b1] at (6,0) {};
\node[b1] at (7,1) {};
\node[b1] at (8,2) {};
\node[b1] at (9,1) {};
\node[b1] at (10,0) {};
\draw[thick] (0,0) -- (1,-1);
\draw[thick] (1,-1) -- (2,0);
\draw[thick] (2,0) -- (3,-1);
\draw[thick] (3,-1) -- (4,-2);
\draw[thick] (4,-2) -- (5,-1);
\draw[thick] (5,-1) -- (6,0);
\draw[thick] (6,0) -- (7,1);
\draw[thick] (7,1) -- (8,2);
\draw[thick] (8,2) -- (9,1);
\draw[thick] (9,1) -- (10,0);
\foreach \i in {0,...,10} {
    \node at (\i,-0.3) {$\i$};
}
\node[left] at (-0.5,0) {$0.0$};
\node[left] at (-0.5,1) {$0.5$};
\node[left] at (-0.5,2) {$1.0$};
\node[left] at (-0.5,3) {$1.5$};
\node[left] at (-0.5,4) {$2.0$};
\node[left] at (-0.5,5) {$2.5$};
\node[left] at (-0.5,-1) {$-0.5$};
\node[left] at (-0.5,-2) {$-1.0$};
\node[left] at (-0.5,-3) {$-1.5$};
\node[left] at (-0.5,-4) {$-2.0$};
\node[left] at (-0.5,-5) {$-2.5$};
\node[b3] at (4,0) {};
\draw[dashed,blue] (3,-1) -- (4,0);
\draw[dashed,blue] (4,0) -- (5,-1);
\draw[->,blue] (4,-2) -- (4,-1);
\node[above] at (4,-1) {$q$};
\node[b2] at (8,0) {};
\draw[dashed,red] (7,1) -- (8,0);
\draw[dashed,red] (8,0) -- (9,1);
\draw[->,red] (8,2) -- (8,1);
\node[below] at (8,1) {$p$};
\node at (6.5,1) {$\eta^{\zeta}$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}
\begin{tikzpicture}
    % x-axis
    \draw[->] (0, 0) -- (5, 0) node[right] {$\theta$};
    % y-axis
    \draw[->] (0, 0) -- (0, 5) node[above] {$g(s, \theta, p)$};
    % 1-c mark
    \draw (2.5, 0.1) -- (2.5, -0.1) node[below] {$1-c$};
    \draw[black, thick, domain=0:2.5, samples=100] plot (\x, 3);
    \draw[black, thick, domain=2.5:4, samples=100] plot (\x, 1);
    % Dotted lines 
    \draw (4, 0.1) -- (4, -0.1) node[below] {$1$};
    \draw[dotted] (2.5, 3) -- (2.5, 1);
    \draw[dotted] (4, 1) -- (4, 0);
    \node[black, above right] at (-0.6, 2.6) {$H$};
    \node[black, above right] at (-0.6, 0.8) {$L$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}
\begin{tikzpicture}[
    main_node/.style={circle, fill=white, draw, minimum size=.2em, inner sep=1.5pt},
    cp/.style={fill=white, draw, rounded corners=.09cm, minimum size=1.4em, inner sep=1.4pt},
    scale=0.9
]
\node[main_node] (1) at (0,0) {1};
\node[cp] (2) at (1.5,0) {$k$};
\draw (1) -- (2);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}[baseline=(q)]
  \coordinate (g) at (-3/2,3/4);
  \coordinate (i) at (0,0);
  \coordinate (j) at (-1,0);
  \coordinate (k) at (-2,0);
  \coordinate (d) at (-1,3/2);
  \coordinate (l) at (-1,2);
  \draw[-] (i) node[below=1mm] {$k$} -- (d) -- (l) node[above=1mm] {$l$};
  \draw[-] (j) node[below=1mm] {$j$} -- (g)  -- node[midway,below right=-1mm] (q) {$p$} (d);
  \draw[-] (k) node[below=1mm] {$i$}-- (g);
  \draw[fill] (d) circle (2pt) node[left=1mm] {$\alpha$};
  \draw[fill] (g) circle (2pt) node[left=1mm] {$\beta$};    
\end{tikzpicture}

\end{document}
\documentclass[standalone]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}

\begin{document}
\begin{tikzpicture}
\draw [-stealth] (-1.5,-1) to node[midway, above] {Decreasing $S(A)$} (1.5,-1);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=0.45]
	\draw[red] [line width=1pt] (3,21)-- (5,21);
	\fill (3,21) circle (0.1cm);
	\fill (5,21) circle (0.1cm);
	\draw (4,21) circle (1.35cm);
	\draw[red] [line width=1pt] (3,17)-- (5,17);
	\fill (3,17) circle (0.1cm);
	\fill (5,17) circle (0.1cm);
	\draw (4,17) circle (1.35cm);
	\draw[black] [line width=1pt] (4,19.65)-- (4,18.35);
	\draw (2,21) node[anchor=center] {$B_1$};
	\draw (2,17) node[anchor=center] {$B_2$};
	\draw (4,14.5) node[anchor=center] {$R[B_1\cup B_2]$};
	\draw[-latex] (6,19) -- (8,19); 
	\draw[black] [line width=1pt] (9,18)-- (11,18);
	\draw[black] [line width=1pt] (9,18)-- (10,20);
	\draw[black] [line width=1pt] (10,20)-- (11,18);
	\fill (9,18) circle (0.1cm);
	\fill (10,20) circle (0.1cm);
	\fill (11,18) circle (0.1cm);
	\draw (10,20.7) node[anchor=center] {$c_1$};
	\draw (9,17.3) node[anchor=center] {$c_2$};
	\draw (11,17.3) node[anchor=center] {$c_3$};
	\draw (10,14.5) node[anchor=center] {$R_3[C]$};
	\draw (7,12) node[anchor=center] {The case $|B_1|=|B_2|=2$};
\end{tikzpicture}
\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\tikzset{
    bus/.style={circle, draw=blue!60, fill=blue!5, very thick, minimum size=7mm},
}

\begin{document}
\begin{tikzpicture}
    \node[bus](u){$u$};
    \node[bus](v)[right=of u]{$v$};
    \draw[-] (u) -- (v);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=1]
\draw[step=1cm,gray,very thin] (-3,-3) grid (3,3);

\draw[blue] (-2,1) -- (1,1);
\draw[blue] (-2,1) -- (-2,-2);
\draw[blue] (-2,-2) -- (1,-2);
\draw[blue] (1,-2) -- (1,1);
\draw[blue] (-2,-2) -- (0,2);
\draw[blue] (-2,-2) -- (2,0);
\draw[blue] (-2,1) -- (1,-2);
\draw[blue] (-2,1) -- (0,2);
\draw[blue] (1,-2) -- (2,0);

\draw[red] (2,0) -- (0,2);
\draw[red] (2,0) to [bend right=15] (0,2);

\filldraw [black] (2,0) circle (1.5pt);
\filldraw [black] (0,2) circle (1.5pt);
\filldraw [black] (1,-2) circle (1.5pt);
\filldraw [black] (-2,1) circle (1.5pt);
\filldraw [black] (1,1) circle (1.5pt);
\filldraw [black] (-2,-2) circle (1.5pt);

\node [below left] at (-2,-2) {$p_0$};
\node [below right] at (1,-2) {$p_1$};
\node [above left] at (-2,1) {$p_2$};
\node [above right] at (2,0) {$p_2'$};
\node [above right] at (1.1,1.1) {$p_3$};
\node [above right] at (0,2) {$p_4$};
\end{tikzpicture}
\end{document}