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
\tikzstyle{vertex}=[draw,fill=black,circle,minimum size=10pt,inner sep=0pt]
11
\begin{document}
12
\begin{tikzpicture}
13
\node (a)[vertex] at (0,3) {};
14
\node (b)[vertex] at (0,1) {};
15
\node (c)[vertex] at (1,0) {};
16
\node (d)[vertex] at (2,0) {};
17
\node (e)[vertex] at (3,0) {};
18
\node (f)[vertex] at (4,1) {};
19
\node (g)[vertex] at (4,3) {};
20
21
\foreach \from/\to in {b/c,c/d,d/e,e/f}
22
\draw[line width=2pt] (\from) -- (\to);
23
24
\path[line width=2pt] (d) edge[ out=140, in=50
25
, looseness=0.8, loop
26
, distance=2cm]
27
node[above=3pt] {$k$} (d);
28
\end{tikzpicture}
29
\end{document}
30
31