Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132940 views
License: OTHER
1
\documentclass[varwidth=true, border=2pt]{standalone}
2
\usepackage{tikz}
3
\usetikzlibrary{arrows,positioning}
4
\tikzset{
5
%Define standard arrow tip
6
>=stealth',
7
% Define arrow style
8
pil/.style={->,thick}
9
}
10
11
\begin{document}
12
\begin{tikzpicture}
13
\node (a)[vertex] at (0,0) {};
14
\node (b)[vertex] at (1,1) {};
15
\node (c)[vertex] at (2,1) {};
16
\node (d)[vertex] at (3,0) {};
17
\node (e)[vertex] at (4,1) {};
18
\node (f)[vertex] at (5,1) {};
19
\node (g)[vertex] at (6,0) {};
20
\node (h)[vertex] at (5,-1) {};
21
\node (i)[vertex] at (4,-1) {};
22
%\node (j)[vertex] at (3,0) {};
23
\node (k)[vertex] at (2,-1) {};
24
\node (l)[vertex] at (1,-1) {};
25
\node (m)[vertex] at (2,2) {};
26
\node (n)[vertex] at (3,2) {};
27
28
\foreach \from/\to in {a/b,b/c,c/d,d/k,k/l,l/a}
29
\draw[selected edge] (\from) -- (\to);
30
31
\foreach \from/\to in {a/b,b/c,c/d,d/e,e/f,f/g,g/h,h/i,i/d,d/k,k/l,l/a}
32
\draw[line width=2pt] (\from) -- (\to);
33
\draw[line width=2pt] (b) -- (m);
34
\draw[line width=2pt] (m) -- (n);
35
\end{tikzpicture}
36
\end{document}
37
38