File: slices.tex

package info (click to toggle)
python-leidenalg 0.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 920 kB
  • sloc: cpp: 1,727; python: 1,269; ansic: 237; sh: 98; makefile: 7
file content (102 lines) | stat: -rw-r--r-- 3,191 bytes parent folder | download | duplicates (3)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
\documentclass[tikz]{standalone}

\renewcommand{\familydefault}{\sfdefault}
\usepackage{sansmath} 
\sansmath

\usepackage{tikz}   %TikZ is required for this to work.  Make sure this exists before the next line

\usepackage{tikz-3dplot} %requires 3dplot.sty to be in same directory, or in your LaTeX installation

\begin{document}

\tdplotsetmaincoords{70}{110} 

\definecolor{c0}{RGB}{228,26,28}
\definecolor{c1}{RGB}{55,126,184}

\begin{tikzpicture}[tdplot_main_coords,
  n/.style={circle,draw=black,shading=ball,outer sep=0pt,inner sep=0pt, minimum size=6pt},
  nc0/.style={n,ball color=c0},
  nc1/.style={n,ball color=c1},
  e/.style={}] 

%Network t=1
\draw[fill=lightgray,opacity=0.9] (-1,0,-1) -- (3,0,-1) node[below]
  {$\scriptstyle t=1$} -- (3,0,3) -- (-1,0,3) -- (-1,0,-1);
\node[nc0] (a0) at (0,0,0) {};
\node[nc0] (b0) at (1,0,0) {};
\node[nc0] (c0) at (0,0,1) {};
\node[nc0] (d0) at (1,0,1) {};
\node[nc1] (e0) at (2,0,1) {};
\node[nc1] (f0) at (1,0,2) {};
\node[nc1] (g0) at (2,0,2) {};
\draw[-] (d0) -- (b0) -- (a0) -- (c0) -- (d0) -- (e0) -- (g0) -- (f0) -- (d0);

%ghost nodes for interslice links
\node[e] (a1) at (0,2,0) {};
\node[e] (b1) at (1,2,0) {};
\node[e] (c1) at (0,2,1) {};
\node[e] (d1) at (1,2,1) {};
\node[e] (e1) at (2,2,1) {};
\node[e] (f1) at (1,2,2) {};
\node[e] (g1) at (2,2,2) {};

%interslice edge 0 - 1
\draw[-,gray] (a0) -- (a1)
                    (b0) -- (b1)
                    (c0) -- (c1)
                    (d0) -- (d1)
                    (e0) -- (e1)
                    (f0) -- node[] (f01) {} (f1)
                    (g0) -- (g1);

%Network t=2
\draw[fill=lightgray,opacity=0.9] (-1,2,-1) -- (3,2,-1)  node[below]
  {$\scriptstyle t=2$} -- (3,2,3) -- (-1,2,3) -- (-1,2,-1);
\node[nc0] (a1) at (0,2,0) {};
\node[nc0] (b1) at (1,2,0) {};
\node[nc0] (c1) at (0,2,1) {};
\node[nc0] (d1) at (1,2,1) {};
\node[nc0] (e1) at (2,2,1) {};
\node[nc1] (f1) at (1,2,2) {};
\node[nc1] (g1) at (2,2,2) {};
\draw[-] (d1) -- (b1) -- (a1) -- (c1) -- (d1) -- (e1) -- (g1) -- (f1) -- node (fd1) {}(d1)
         (b1) -- (e1);

%ghost nodes for interslice links
\node[e] (a2) at (0,4,0) {};
\node[e] (b2) at (1,4,0) {};
\node[e] (c2) at (0,4,1) {};
\node[e] (d2) at (1,4,1) {};
\node[e] (e2) at (2,4,1) {};
\node[e] (f2) at (1,4,2) {};

%interslice edge 1 - 2
\draw[-,gray] (a1) -- (a2)
                    (b1) -- (b2)
                    (c1) -- (c2)
                    (d1) -- (d2)
                    (e1) -- (e2)
                    (f1) -- (f2);
%Network t=3
\draw[fill=lightgray,opacity=0.9] (-1,4,-1) -- (3,4,-1) node[below]
  {$\scriptstyle t=3$} -- (3,4,3) -- (-1,4,3) -- (-1,4,-1);
\node[nc0] (a2) at (0,4,0) {};
\node[nc0] (b2) at (1,4,0) {};
\node[nc0] (c2) at (0,4,1) {};
\node[nc1] (d2) at (1,4,1) {};
\node[nc1] (e2) at (2,4,1) {};
\node[nc1] (f2) at (1,4,2) {};
\draw[-] (d2) -- (b2) -- (a2) -- (c2) -- (d2) -- (e2)
         (f2) -- (d2);

%Create equations
\node[anchor=base,align=left] (S_irs) at (0,1.2,3) {Interslice\\ coupling};
\draw[->] (S_irs) .. controls (1,1,2.5) .. (f01);
\node[anchor=base,align=left] (A_ijs) at (0,3.2,3) {Intraslice\\ link};
\draw[->] (A_ijs) .. controls (1.5,3,2) .. (fd1);

\end{tikzpicture} 

\end{document}