-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathgraph-isomorphism.tex
42 lines (37 loc) · 1.22 KB
/
graph-isomorphism.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}[
vertex/.style = {circle, draw, inner sep=1pt, fill=white},
vertex1/.style = {vertex, fill=red!30!white},
vertex2/.style = {vertex, fill=orange!30!white},
vertex3/.style = {vertex, fill=blue!30!white},
vertex4/.style = {vertex, fill=teal!30!white},
]
\draw[thick]
(0,0) node[vertex1] (n1^1) {$n_1$}
-- (0,2) node[vertex2] (n2^1) {$n_2$}
-- (2,2) node[vertex3] (n3^1) {$n_3$}
-- (2,0) node[vertex4] (n4^1) {$n_4$} -- cycle;
\begin{scope}[xshift=4cm]
\draw[thick]
(0,0) node[vertex1] (n1^2) {$n_1$}
-- (2,2) node[vertex2] (n2^2) {$n_2$}
-- (0,2) node[vertex3] (n3^2) {$n_3$}
-- (2,0) node[vertex4] (n4^2) {$n_4$} -- cycle;
\end{scope}
\begin{scope}[xshift=8cm]
\draw[thick]
(0,0) node[vertex1] (n1^3) {$n_1$}
-- (2,2) node[vertex2] (n2^3) {$n_2$}
-- (2,0) node[vertex4] (n3^3) {$n_3$}
-- (0,2) node[vertex3] (n4^3) {$n_4$} -- cycle;
\end{scope}
\begin{scope}[xshift=12.5cm]
\draw[thick]
(-0.5,0) node[vertex1] (n1^4) {$n_1$}
-- (0.25,2.2) node[vertex2] (n2^4) {$n_2$}
-- (2,1.6) node[vertex3] (n3^4) {$n_3$}
-- (-0.7,1.4) node[vertex4] (n4^4) {$n_4$} -- cycle;
\end{scope}
\end{tikzpicture}
\end{document}