|
| 1 | +\documentclass[tikz, border=1mm]{standalone} |
| 2 | +\usepackage{tikz} |
| 3 | +\usepackage{tikz-cd} |
| 4 | +\usetikzlibrary{positioning} |
| 5 | +\usetikzlibrary{arrows} |
| 6 | +\usetikzlibrary{calc} |
| 7 | +\usetikzlibrary{intersections} |
| 8 | +\usetikzlibrary{matrix} |
| 9 | +\usetikzlibrary{decorations} |
| 10 | +\usepackage{pgf} |
| 11 | +\usepackage{pgfplots} |
| 12 | +\pgfplotsset{compat=1.16} % Tom %'d out May 8, 2020 because it was causing hickups |
| 13 | +\usetikzlibrary{shapes, fit} |
| 14 | +\usetikzlibrary{arrows.meta} % from fazeleh |
| 15 | +\usetikzlibrary{decorations.pathreplacing} %for brac |
| 16 | + |
| 17 | + |
| 18 | +\begin{document} |
| 19 | + |
| 20 | +\begin{tikzpicture} |
| 21 | + \node[circle, draw, scale=1.3856, red] (1) at (1, 1) {$q_1$}; |
| 22 | + \node[circle, draw, scale=1.6, red] (2) at (3, 3) {$q_2$}; |
| 23 | + \node[circle, draw, scale=1.3856, red] (3) at (5, 0) {$q_3$}; |
| 24 | + \node[circle, draw, scale=1.6, red] (4) at (7, 2) {$q_4$}; |
| 25 | + \node[circle, draw, scale=1.1312, blue] (01) at (1.5, 2.5) {${p}_1$}; |
| 26 | + \node[circle, draw, scale=0.8, blue] (02) at (0, 0) {${p}_2$}; |
| 27 | + \node[circle, draw, scale=1.3856, blue] (03) at (3, 1) {${p}_3$}; |
| 28 | + \node[circle, draw, scale=1.1312, blue] (04) at (6.5, 0.5) {${p}_4$}; |
| 29 | + \node[circle, draw, scale=0.8, blue] (05) at (8, 3) {${p}_5$}; |
| 30 | + \node[circle, draw, scale=1.1312, blue] (06) at (5, 3) {${p}_6$}; |
| 31 | + \node[circle, draw, scale=1.3856, blue] (07) at (4.5, 1.5) {${p}_7$}; |
| 32 | + |
| 33 | + |
| 34 | + \draw[->, thick, blue] |
| 35 | + (01) edge [bend left=0, left, -{Stealth[scale=1]}, line width=1pt] node {}(1) |
| 36 | + (01) edge [bend left=0, below, -{Stealth[scale=1]}, line width=1pt] node {} (2) |
| 37 | + (02) edge [bend left=0, below, -{Stealth[scale=1]}, line width=1pt] node {} (1) |
| 38 | + (03) edge [bend left=0, below, -{Stealth[scale=1]}, line width=1pt] node {} (1) |
| 39 | + (03) edge [bend left=0, below, -{Stealth[scale=1]}, line width=1pt] node {} (2) |
| 40 | + (03) edge [bend left=0, below, -{Stealth[scale=1]}, line width=1pt] node {} (3) |
| 41 | + (04) edge [bend left=0, below, -{Stealth[scale=1]}, line width=1pt] node {} (3) |
| 42 | + (04) edge [bend left=0, below, -{Stealth[scale=1]}, line width=1pt] node {} (4) |
| 43 | + (05) edge [bend left=0, below, -{Stealth[scale=1]}, line width=1pt] node {} (4) |
| 44 | + (06) edge [bend left=0, below, -{Stealth[scale=1]}, line width=1pt] node {} (2) |
| 45 | + (06) edge [bend left=0, below, -{Stealth[scale=1]}, line width=1pt] node {} (4) |
| 46 | + (07) edge [bend left=0, below, -{Stealth[scale=1]}, line width=1pt] node {} (2) |
| 47 | + (07) edge [bend left=0, below, -{Stealth[scale=1]}, line width=1pt] node {} (3) |
| 48 | + (07) edge [bend left=0, below, -{Stealth[scale=1]}, line width=1pt] node {} (4); |
| 49 | +\end{tikzpicture} |
| 50 | + |
| 51 | +\end{document} |
0 commit comments