JackieLin0123/SciTikZ-Bench huggingface dataset:
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\tikzset{main node/.style={draw,fill=white,circle,very thin,inner sep=1pt}}

\begin{document}
\begin{tikzpicture}[inner sep=1pt, outer sep=0pt]
\node[main node] (v) [label=above:$v$] {};
\node[main node] (v1) [below left = 0.5cm and 0.5cm of v] {};
\node[main node] (v2) [below = 0.5cm of v] {};
\node[main node] (v3) [right = 0.5cm of v2] {};

\path[draw,thick]
(v) edge (v1)
(v) edge (v2)
(v) edge (v3)
(v2) edge (v3);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}

\begin{document}
\begin{tikzpicture}[scale=0.9]
\draw[red] (0,0) -- (0,1);
\filldraw (0,0) circle (0.1);
\filldraw (0,1) circle (0.1);

\node at (0,1.25) {$s$};
\node at (0,-0.35) {$t$};
\node at (0,-1) {$G_{\phi_3}$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}

\begin{document}
\begin{tikzpicture}
\node (v1) at (-4,3.6) {$a$};
\node (v2) at (-2.8,3.6) {$a$};
\draw (v1) edge[double] (v2);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{arrows}

\tikzset{
  cd/.style={
    ->,
    scale=6,
    >=angle 90,
    font=\scriptsize
  }
}

\begin{document}
\begin{tikzpicture}
  \node (1) at (0,0) {\( La \)};
  \node (2) at (2,1) {\( x +_{Lb} y \)};
  \node (3) at (4,0) {\( Lc \)};
  \draw [cd] (1) edge (2);
  \draw [cd] (3) edge (2);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}

\tikzset{
  graph/.style={
    ->,
    scale=2,
    >=Triangle,
    font=\scriptsize
  }
}

\begin{document}
\begin{tikzpicture}
  \node (0) at (0,0) {$ \bullet_a $};
  \node (1) at (2,0) {$ \bullet_b $};
  \node (2) at (4,0) {$ \bullet_c $};
  \draw[graph]
    (0) edge (1)
    (1) edge (2);
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usepackage{amsmath, amsfonts, bm}
\usepackage{pgfplots}
\usepgfplotslibrary{fillbetween}
\usepgfplotslibrary{groupplots}
\usetikzlibrary{intersections}
\pgfplotsset{compat=newest}
\pgfplotsset{every axis/.style={
    width=8.6cm,
    height=8.6cm,
    grid=both,
    scaled ticks=false,
    yticklabel style={/pgf/number format/.cd, fixed,precision=5}
  }
}

\begin{document}

\begin{tikzpicture}
  \begin{axis}[
    title = {Effect of $N_\Delta^\mathrm{thr}$},
    xlabel={$N_\Delta^\mathrm{thr}$}, ylabel={$f$},
    ymin=0.16, ymax=0.24,
    ytick={0.16,0.18,0.20,0.22,0.24},
    yticklabels={0.16,0.18,0.20,0.22,0.24},
    ]
    
    \addplot +[only marks, error bars/.cd, y dir = both, y explicit]
    coordinates{
      (0,0.208712)  +- (0,0.00129594)
      (1,0.199202)  +- (0,0.00336256)
      (2,0.196173)  +- (0,0.00120563)
      (3,0.19466)   +- (0,0.00234393)
    };
    
  \end{axis}
\end{tikzpicture}

\end{document}
\documentclass{standalone}
\usepackage{amsfonts, amssymb}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,decorations.pathreplacing,decorations.markings,shapes,calc}
\usetikzlibrary{matrix,arrows,decorations.pathmorphing,backgrounds,decorations.markings,positioning}
\tikzset{2cell/.style={-implies,double,double equal sign distance,shorten >=2pt, shorten <=3pt}}
\tikzset{2cellshort/.style={-implies,double,double equal sign distance,shorten >=4pt, shorten <=5pt}}
\tikzset{2cellr/.style={implies-,double,double equal sign distance,shorten >=3pt, shorten <=2pt}}
\tikzset{3cell/.style={-implies,double,double distance=2.5pt,shorten >=2pt, shorten <=3pt}}
\tikzset{labelsize/.style={font=\scriptsize}}
\tikzset{string/.style={very thick}}
\tikzset{
  pto/.style={->,postaction={decorate},
    decoration={
        markings,
        mark=at position 0.5 with {\arrow{|}}}
  },
}

\newcommand{\cat}[1]{\mathcal{#1}}

\newcommand{\tzsquare}[3]{
\draw[2cell] (#1,#2)++(0,0.25) to node[auto,labelsize]{#3} ++(0,-0.5);}

\begin{document}

\begin{tikzpicture}[baseline=-\the\dimexpr\fontdimen22\textfont2\relax ]
      \node (TL) at (0,0.75)  {$\cat{A}$};
      \node (TR) at (2,0.75)  {$\cat{A'}$};
      \node (BL) at (0,-0.75) {$\cat{C}$};
      \node (BR) at (2,-0.75) {$\cat{C}$};
      %
      \draw[pto] (TL) to node[auto,labelsize](T) {$H$} (TR);
      \draw[->]  (TR) to node[auto,labelsize] {$V'$} (BR);
      \draw[->]  (TL) to node[auto,swap,labelsize] {$V$} (BL);
      \draw[pto] (BL) to node[auto,swap,labelsize](B) {$\cat{C}(-,-)$} (BR);
      %
      \tzsquare{1}{0}{$\theta$}
\end{tikzpicture}

\end{document}
\documentclass[tikz]{standalone}
\usepackage{amssymb}
\usepackage{pgfplots}

\begin{document}

\begin{tikzpicture}
\begin{axis}[
    label style={font=\footnotesize},
    every axis/.append style={font=\footnotesize},
    height=2.6in,
    width=0.8\linewidth,
    xtick={2011,2012,2013,2014,2015,2016,2017,2018},
    xticklabels={2011,2012,2013,2014,2015,2016,2017,2018},
    ytick={0,1,2,3,4,5,6,7,8,9,10,11,12},
    xlabel=Year,
    ylabel=Number of Papers,
    bar width=15,
    ybar
]
\addplot coordinates {(2011,3) (2012,3) (2013,1) (2015,5) (2016,10) (2017,12) (2018,3)};
\end{axis}
\end{tikzpicture}

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

\begin{document}
\begin{tikzpicture}[scale=1]
    \tikzstyle{rn}=[circle,fill=white,draw, inner sep=0pt, minimum size=5pt]
    \tikzstyle{every node}=[font=\footnotesize]

    \node (1)[rn, label={[label distance=1pt]180:$v_{8}$}] at (-4 cm, 2 cm){};
    \node (4)[rn, label={[label distance=1pt]0:$u_{6}$}] at (-2 cm, 2 cm){};
    \draw (1) -- (4);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning, arrows.meta, shapes.geometric}

\tikzset{%
  dot/.style n args = {4}{name=#3, circle, draw, inner sep=1pt, minimum size=5pt, fill=black, label={[shift={(#1,#2)}]#4:$#3$}},
  >={Latex[width=1.5mm,length=2mm]},
  every picture/.style={semithick}
}

\begin{document}
\begin{tikzpicture}[scale=1.0]
\node [dot = {0}{0}{X}{below left}] at (0,0) {};
\node [dot = {0}{0}{Y}{below right}] at (2,0) {};
\node [dot = {0}{0}{R_X}{above left}] at (0,2) {};
\node [dot = {0}{0}{R_Y}{above right}] at (2,2) {};

\draw [->] (R_X) -- (R_Y);
\draw [->] (X) -- (R_X);
\draw [->] (X) -- (Y);
\draw [<->,dashed] (X) to [bend right=30] (Y);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}

\begin{document}
\begin{tikzpicture}
    \draw (0,0) -- (0,4) -- (4,4) -- (4,0) -- cycle;
    \draw (0,2) -- (2,2);
    \draw (2,0) -- (2,4);
    \draw [->] (4,0) -- (5,0) node[below right] {Product 1};
    \draw [->] (0,4) -- (0,5) node[left] {Product 2};
    \node [below left] at (0,0) {0};
    \node [below] at (4,0) {1};
    \node [left] at (0,4) {1};
    \node at (1,1) {$\mathcal S_0$};
    \node at (3,2) {$\mathcal S_1$};
    \node at (1,3) {$\mathcal S_2$};
\end{tikzpicture}
\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usepackage{pgf-pie}

\begin{document}
\begin{tikzpicture}[scale=0.4]
\pie[/tikz/every pin/.style={align=center},text=pin,explode=0.4,rotate=180,color={black!10,black!20,black!30,black!40}]{8/None, 13/UQ, 23/Optimization\\under Uncertainty, 56/Optimization}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usepackage{amsmath,amssymb}

\begin{document}
\begin{tikzpicture}
\node (A) at (0, 0) {$\underline{Hom}_{\mathcal{M}}(M,~N) \otimes \underline{Hom}_{\mathcal{M}}(M,~M) \otimes \underline{Hom}_{\mathcal{M}}(M,~M)$};
\node (B) at (-4, -2.5) {$\underline{Hom}_{\mathcal{M}}(M,~N) \otimes \underline{Hom}_{\mathcal{M}}(M,~M)$};
\node (C) at (4, -2.5) {$\underline{Hom}_{\mathcal{M}}( M,~N) \otimes \underline{Hom}_{\mathcal{M}}(M,~M)$};
\node (D) at (0, -5) {$\underline{Hom}_{\mathcal{M}}(M,~N)$}; 
\path[->] (A) edge node [left, midway] {$id\otimes m$} (B); 
\path[->] (A) edge node [right, midway] {$a\otimes id$} (C); 
\path[->] (B) edge node [left, midway] {$a$} (D); 
\path[->] (C) edge node [right, midway] {$a$} (D); 
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}[scale=0.7]

\draw[fill=lightgray, very thick, rotate around={60:(3.464,-2)}] (3.464,-2) ellipse (2 and 0.9);
\node[align=center, rotate=60] at (3.464,-2){\textbf{Control}};

\draw[fill=lightgray,very thick, rotate around={-60:(-3.464,-2)}] (-3.464,-2) ellipse (2 and 0.9);
\node[align=center, rotate=-60] at (-3.464,-2){\textbf{Communication}};

\draw[fill=lightgray,very thick] (0,4) ellipse (2 and 0.9);
\node[align=center] at (0,4){\textbf{Computation}};

\draw[ultra thick] (0,2.8)--(-2.425,-1.4)--(2.425,-1.4)--(0,2.8);

\node[align=center,rotate=60] at (-1.732,1){\textbf{Cyber}};
\node[align=center,rotate=-60] at (1.732,1){\textbf{Physical}};
\node[align=center] at (0,-2){\textbf{System}};
\node[align=center] at (0,0){\textbf{Information}};

\end{tikzpicture}

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

\begin{document}

\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2.8cm,semithick]
\tikzstyle{every state}=[fill=white,draw=black,text=black]
\node[state] (B) {$\{a,b,c\}$};
\node[state] (D) [below of=B] {$\{a,b\}$};
\node[state] (A) [left of=D] {$\{a,c\}$};
\node[state] (C) [right of=D] {$\{b,c\}$};

\path
(A) edge node[pos=0.3] {0} (B)
    edge node {0} (D)
(B) edge [loop above] node {3} (B)
(D) edge [bend left=5] node {2,3} (C)
    edge [loop below] node {2} (D)
    edge node {2} (B)
(A) edge [loop left] node {0,3} (A)
(C) edge [bend left=5] node {3} (D);
\end{tikzpicture}

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

\begin{document}
\begin{tikzpicture}
\node[circle,draw=black,very thick,outer sep=2pt] (a) at (0,0) {$0$};
\node[circle,draw=black,very thick,outer sep=2pt] (b) at (2,0) {$1$};
\node[circle,draw=black,very thick,outer sep=2pt] (c) at (1,1) {$2$};
\draw[-stealth,very thick] (a) -- (c);
\draw[-stealth,very thick] (b) -- (c);
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}

\begin{document}
\begin{tikzpicture}
\begin{axis}[
    ybar=2pt,
    x=1.4cm,
    enlarge x limits={abs=0.7cm},
    ymin=0,
    legend style={at={(0.5,-0.28)}, anchor=north, legend columns=2, font=\footnotesize},
    ylabel={tpmC [100K]},
    xlabel={Users},
    symbolic x coords={8, 16, 32, 64, 128},
    xtick=data,
    ytick={0, 200, 400, 600, 800, 1000, 1200},
    legend entries={SSD-both, SSD-data-PMEM-wal, PMEM-data-SSD-wal, PMEM-both},
    bar width=0.1cm,
    legend cell align={left},
    nodes near coords align={vertical},
    x tick label style={font=\footnotesize, text width=1cm, align=center},
    y tick label style={font=\footnotesize, xshift=0.1cm},
    tick align = outside,
    tick pos = left,
    ylabel near ticks,
    xlabel near ticks,
    ylabel style={font=\footnotesize},
    xlabel style={font=\footnotesize},
    every node near coord/.append style={font=\small},
    height=5cm,
    width=12cm
]
    \addplot[color=blue, fill=blue!90!white] coordinates {
        (8, 170.8) (16, 239.8) (32, 332.7) (64, 387) (128, 474.4)
    };
    \addplot[color=purple, fill=purple!90!white] coordinates {
        (8, 210.3) (16, 313.3) (32, 373.5) (64, 502.6) (128, 495.9)
    };
    \addplot[color=gray, fill=gray!90!white] coordinates {
        (8, 324.4) (16, 520.1) (32, 541.6) (64, 598.7) (128, 645.7)
    };
    \addplot[color=green!30!black, fill=green!30!black] coordinates {
        (8, 350.6) (16, 577.4) (32, 854.2) (64, 1001.7) (128, 1088.4)
    };
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}

\begin{document}
\begin{tikzpicture}[scale=2]
    \draw (0,0) circle (1);
    \draw [line width=0.30mm] (240:1) -- (300:1);
    \draw [line width=0.30mm] (300:1) -- (10:1);
    \draw [line width=0.30mm] (240:1) -- (10:1);
    \draw [line width=0.10mm, dashed] (300:1) -- (90:1);
    \draw [line width=0.10mm, dashed] (240:1) -- (90:1);
    \draw [fill=black] (0,0) circle (0.025);
    \draw [line width=0.10mm, dashed] (300:1) -- (0:0);
    \draw [line width=0.10mm, dashed] (240:1) -- (0:0);
    \draw [line width=0.10mm, dashed] (270:0.866025) -- (0:0);

    \draw  (90:1) ++(255:0.2) arc (255:285:0.2);
    \draw  (10:1) ++(213:0.2) arc (213:243:0.2);
    \draw  (0:0) ++(270:0.2) arc (270:300:0.2);

    \node [above] at (0,0) {o};
    \node [below left] at (240:1) {a};
    \node [below right] at (300:1) {b};
    \node [below] at (270:0.82){m};
    \node [above right] at (10:1) {c};
    \node [above] at (90:1) {$c^{'}$};
    \node [below] at (90:0.8) {$\theta$};
    \node at ($(10:1)+(228:0.3)$) {$\theta$};
    \node at (285:0.3) {$\theta$};
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,arrows.meta,decorations.pathreplacing,decorations.markings,shapes,calc}

\begin{document}
\begin{tikzpicture}[baseline=-\the\dimexpr\fontdimen22\textfont2\relax]
    \node(21) at (0,0) {$\bullet$};
    \node(l1) at (0,-0.5) {$[\,]\in 1^\ast$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
  \draw[thick] (0,0) to (3,0);
  \draw[thick] (1.5,1.5) to (1.5,-1.5);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}

\begin{document}

\begin{tikzpicture}[rounded corners,scale=0.8]
\begin{scope}[every path/.style={draw=white,double=black,ultra thick, double distance=0.4pt}]
\draw (6,0.5) -- (6,2);
\draw (5,0.5) -- (2,2);
\draw (4,0.5) -- (1,2);
\draw (3,0.5) -- (5,2);
\draw (2,0.5) -- (4,2);
\draw (1,0.5) -- (3,2);
\draw (6,0) -- (6,-1.5);
\draw (3,0) -- (5,-1.5);
\draw (2,0) -- (4,-1.5);
\draw (1,0) -- (3,-1.5);
\draw (5,0) -- (2,-1.5);
\draw (4,0) -- (1,-1.5);
\end{scope}
\node[draw=black,fill=white,rectangle,minimum height=0.4cm,minimum width=2.1cm,inner sep=0pt,rounded corners] at (2,0.25) (a) {$a$};
\node[draw=black,fill=white,rectangle,minimum height=0.4cm,minimum width=2.1cm,inner sep=0pt,rounded corners] at (5,0.25) {$b$};
\end{tikzpicture}

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

\begin{document}
\begin{tikzpicture}[baseline=(current bounding box.center),yscale=0.9,xscale=0.9]
	\draw (0,0.5) -- (0,1);
	\draw (0,1) -- (-0.5,1.5);
	\draw (-0.5,1.5) -- (-1,2);
	\draw (0.5,1.5) -- (0,2);
	\draw (0,1) -- (0.5,1.5);
	\draw (0.5,1.5) -- (1,2);
	\node at (0,0.25) {\small $u$};
	\node at (-1,2.25) {\small $a$};
	\node at (0,2.25) {\small $b$};
	\node at (1,2.25) {\small $c$};
	\node at (0.5,1.1) {\footnotesize $q$};
	\node at (0.75,1.4) {\footnotesize $\gamma$};
	\node at (0.25,0.8) {\footnotesize $\delta$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning,shapes.geometric,decorations.markings,arrows,knots,calc,decorations.pathmorphing,decorations.pathreplacing,shapes}

\begin{document}

\begin{tikzpicture}[scale=0.9]
	\draw[dotted] (0,0) circle(1.cm);
	\draw (90:1cm) to [bend left=60] (150:1cm);
	\draw (210:1cm) to [bend left=60] (270:1cm);
	\draw (330:1cm) to [bend left=60] (30:1cm);
	\draw (0,0) to (120:0.61cm);
	\draw (0,0) to (240:0.61cm);
	\draw (0,0) to (0:0.61cm);
\end{tikzpicture}

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

\begin{document}
\begin{tikzpicture}
	\draw (0,0) to node[right] {$a'$} (0,0.5);
	\draw (-0.5,-0.5) -- (0,0);
	\draw (0.5,-0.5) -- (0,0);
	\draw (0,0.5) -- (-0.5,1);
	\draw[dashed] (0,0.5) -- (0.5,1);
	\node at (-0.5,1.25) {$a$};
	\node at (0.5,1.25) {$\mathbf{1}$};
	\node at (-0.5,-0.75) {$c$};
	\node at (0.5,-0.75) {$b^*$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=1]
\draw[<->] (-1, 1.2) -- node[above] {2} (1, 1.2);
\draw[<->] (-1.2, -1) -- node[left] {2} (-1.2, 1);
\draw[<->] (1.2, 0.5) -- node[right] {$\frac 12$} (1.2, 1);
\draw[<->] (-1, -1.2) -- node[below] {1} (0, -1.2);
\draw[thick] (-1,-1) -- (-1,1) --(0,1)--(0,-1) -- cycle;
\draw[thick] (0,0.5) -- (0,1) --(1,1)--(1,0.5) -- cycle;
\draw (-0.5,0) node {$A$};
\draw (0.5,0.75) node {$B$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[baseline={(0, -0.1cm)}]
\draw[thick,dashed] (-0.5,0.5) -- (0.5,-0.5);
\draw[thick] (-0.5,-0.5) -- (0.5,0.5);
\node at (-0.5*1.25,-0.55*1.25) {$\psi^\alpha$};
\node at (-0.5*1.25,0.55*1.25) {$\phi$};
\node at (0.5*1.25,0.55*1.25) {$\bar{\psi}_\beta$};
\node at (0.5*1.25,-0.55*1.25) {$\bar{\phi}$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}

\begin{document}
\begin{tikzpicture}
\draw [thick,->] (0,-1) -- (0,1);
\fill[black] (0,0) circle (.1);
\draw (0,0) node[left]{$l$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}

\begin{document}
\begin{tikzpicture}
\draw (1,.75) node[draw,circle,fill=black,minimum size=5pt,inner sep=0pt] (1+) {};
\draw (2,.75) node[draw,circle,fill=black,minimum size=5pt,inner sep=0pt] (2+) {};
\draw (3,.75) node[draw,circle,fill=black,minimum size=5pt,inner sep=0pt] (3+) {};
\draw (4,.75) node[draw,circle,fill=black,minimum size=5pt,inner sep=0pt] (4+) {};
\draw (5,.75) node[draw,circle,fill=white,minimum size=5pt,inner sep=0pt] (5+) {};
\node at (5.5,.75) {\dots};

\draw (1,0) node[draw,circle,fill=gray,minimum size=5pt,inner sep=0pt] (1-) {};
\draw (2,0) node[draw,circle,fill=gray,minimum size=5pt,inner sep=0pt] (2-) {};
\draw (3,0) node[draw,circle,fill=gray,minimum size=5pt,inner sep=0pt] (3-) {};
\draw (4,0) node[draw,circle,fill=gray,minimum size=5pt,inner sep=0pt] (4-) {};
\draw (5,0) node[draw,circle,fill=gray,minimum size=5pt,inner sep=0pt] (5-) {};
\node at (5.5,0) {\dots};

\draw (1+) to (2+);
\draw (2+) to (3+);
\draw (3+) to (4+);

\node at (1,1) {$c_1$};
\node at (2,1) {$c_2$};
\node at (3,1) {$c_3$};
\node at (4,1) {$c_4$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc,shapes}

\begin{document}
\begin{tikzpicture}[round/.style={circle,fill=white,inner sep=1}]
\fill[fill=gray!25!white] (4,0) -- (4,2) -- (5.71,1) -- cycle;
\fill[fill=gray!25!white] (0.29,1) -- (2,0) -- (2,2) -- cycle;
\node[round] (b1) at (.29,1) {$1_c$};
\node[round] (b0r) at (5.71,1) {$1_c$};
\node[round] (c1) at (2,2) {$1_b$};
\node[round] (c1r) at (4,2) {$1_a$};
\node[round] (a0) at (2,0) {$1_a$};
\node[round] (a0r) at (4,0) {$1_b$};
\draw[-] (b1) -- (a0);
\draw[-] (b1) -- (c1);
\draw[-] (a0r) -- (b0r);
\draw[-] (b0r) -- (c1r);
\draw[-] (a0) -- (c1);
\draw[-] (a0r) -- (c1r);
\draw[-] (a0) -- (a0r);
\draw[-] (c1) -- (c1r);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes}

\begin{document}
\begin{tikzpicture}[scale=0.7, baseline=-3pt, thick,
    virtnode/.style={circle,draw,scale=0.5}, 
    nonvirt node/.style={circle,draw,fill=black,scale=0.5} ]
    \node at (0,0) [nonvirt node] (A) {};
    \node at (2,0) [nonvirt node] (B) {};
    \draw [-] (A) to (B);
    \node at (0.5,0.4) {$h_1$};
    \node at (1.5,0.4) {$h_2$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}

\begin{document}
\begin{tikzpicture}
\foreach \P in {(-1,0), (0,0), (1,1)}{
    \node at \P [circle,fill,inner sep=1.5pt]{} ;
}
\node[below left] at (0,0) {$A$};
\node[below left] at (-1,0) {$B$};
\node[above right] at (1,1) {$C$};

\draw [-{Latex[length=2mm,width=2mm]}, blue] (0,0) -- (1,1);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning, fit, arrows}

\begin{document}
\begin{tikzpicture}
    \node[draw, minimum height=2em, minimum width=1.25em] (0) {2};
    \node[above=.15cm of 0] (_0) {0};
    \node[draw, minimum height=2em, minimum width=1.25em, right=.5cm of 0] (1) {};
    \node[above=.15cm of 1] (_1) {1};
    \node[draw, minimum height=2em, minimum width=1.25em, right=.5cm of 1] (2) {2};
    \node[above=.15cm of 2] (_2) {2};
    \node[draw, minimum height=2em, minimum width=1.25em, right=.5cm of 2] (3) {};
    \node[above=.15cm of 3] (_3) {3};
    \node[draw, minimum height=2em, minimum width=1.25em, right=.5cm of 3] (4) {};
    \node[above=.15cm of 4] (_4) {4};
    \node[draw, minimum height=2em, minimum width=1.25em, right=.5cm of 4] (5) {1};
    \node[above=.15cm of 5] (_5) {5};
    
    \node[below=0.5cm of 3, align=center] (ptr) {Pointer};
    \node[below=0.1cm of ptr, align=center] (act) {$\leftarrow$ flip $\rightarrow$};
    \draw[->, line width=1pt] (ptr) -- (3);
    \node[draw, dashed, label=below:$A$, fit=(act)] (act_agg) {};
    
    \node[below=0.5cm of 5, align=center] (obs) {$p: \left[\emptyset, 3\right]$\\$f:\left[1,5\right]$\\$a_{t-1}:\leftarrow$};
    \node[draw, dashed, label=below:$o_t$, fit=(obs)] (obs_agg) {};
    
    \draw[->, dashed] (3) -- (obs_agg);
    \draw[->, dashed] (5) -- (obs_agg);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}

\begin{document}
\begin{tikzpicture}
\node[draw=none,minimum size=2cm,regular polygon,regular polygon sides=5] (a) {};
\node[draw=none, minimum size=1.3cm,regular polygon,regular polygon sides=5] (b) {};

\foreach \x in {1,2,...,5}
  \fill (a.corner \x) circle[radius=0.7pt];
  
\foreach \y in {1,2,...,5}
  \fill (b.corner \y) circle[radius=0.7pt];
  
\path (a.corner 1) edge (a.corner 2);
\path (a.corner 2) edge (a.corner 3);
\path (a.corner 3) edge (a.corner 4);
\path (a.corner 4) edge (a.corner 5);
\path (a.corner 5) edge (a.corner 1);

\path (a.corner 1) edge (b.corner 1);
\path (a.corner 2) edge (b.corner 2);
\path (a.corner 3) edge (b.corner 3);
\path (a.corner 4) edge (b.corner 4);
\path (a.corner 5) edge (b.corner 5);

\path (b.corner 1) edge (b.corner 3);
\path (b.corner 1) edge (b.corner 4);
\path (b.corner 2) edge (b.corner 4);
\path (b.corner 2) edge (b.corner 5);
\path (b.corner 3) edge (b.corner 5);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}

\begin{document}
\begin{tikzpicture}[very thick, scale=1]
\tikzstyle{every node}=[circle, draw=black, fill=white, inner sep=0pt, minimum width=4pt];

\path (0,-0.5) node (p1) {};
\path (0,0.5) node (p2) {};
\draw (p1) -- (p2);
\draw [->,>=stealth,red] (p2) -- (0,1);
\draw [->,>=stealth,red] (p1) -- (0,-1);
\draw[dashed, thin] (0,-1.3) -- (0,1.3);

\node [draw=white, fill=white] at (0,-1.5) {(b)};
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}

\newcommand{\sepattr}{\mathrel{|}}

\begin{document}
\begin{tikzpicture}
  \node[draw,rounded corners] at (0,0) {$x_1\sepattr a,v$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
    \node[draw, rounded corners] at (0,0) {$x_1$};
\end{tikzpicture}
\end{document}