Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132948 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 (2,0) {};
15
\node (c)[vertex] at (2,2) {};
16
\node (d)[vertex] at (0,2) {};
17
\node (d)[vertex] at (1,1) {};
18
19
\foreach \from/\to in {a/b,b/c,c/d,d/a,b/e,e/d}
20
\draw[line width=2pt] (\from) -- (\to);
21
\end{tikzpicture}
22
\end{document}
23
24