pres1.tex (7850B)
1 \documentclass[fleqn]{beamer} 2 \beamertemplatenavigationsymbolsempty 3 4 \usepackage[T1]{fontenc} 5 \usepackage[utf8]{inputenc} 6 7 \usepackage{amsmath,amssymb} 8 \usepackage{graphicx} 9 \usepackage{mathptmx} 10 \usepackage{subcaption} 11 \usepackage{amsthm} 12 \usepackage{tikz} 13 %\usepackage[colorlinks=true,naturalnames=true,plainpages=false,pdfpagelabels=true]{hyperref} 14 \usetikzlibrary{patterns,decorations.pathmorphing,positioning, arrows, chains} 15 16 \usepackage[backend=biber, sorting=none]{biblatex} 17 \addbibresource{uni.bib} 18 19 \setbeamertemplate{endpage}{% 20 \begin{frame} 21 \centering 22 \Large \emph{To be continued\ldots} 23 24 \vspace{1cm} 25 26 \centering 27 \Large \emph{Thank You!} 28 \end{frame} 29 } 30 31 \AtEndDocument{\usebeamertemplate{endpage}} 32 33 % vertical separator macro 34 \newcommand{\vsep}{ 35 \column{0.0\textwidth} 36 \begin{tikzpicture} 37 \draw[very thick,black!10] (0,0) -- (0,7.3); 38 \end{tikzpicture} 39 } 40 \setlength{\mathindent}{0pt} 41 42 % Beamer theme 43 \usetheme{UniVienna} 44 \usefonttheme[onlysmall]{structurebold} 45 \mode<presentation> 46 \setbeamercovered{transparent=10} 47 48 \title 49 {Complex Network Analysis} 50 \subtitle{Seminar, Project} 51 \author[Popović Milutin] 52 {Popović Milutin} 53 \date{17. March 2021} 54 55 \begin{document} 56 \begin{frame} 57 \titlepage 58 \end{frame} 59 60 \begin{frame} 61 \begin{figure}[H] 62 \centering 63 \includegraphics[width=1.1\textwidth, 64 clip, 65 trim=0cm 10cm 0cm 7cm] 66 {./pics/code_example.pdf} 67 \end{figure} 68 \end{frame} 69 70 \begin{frame} 71 \centering 72 \texttt{\$ pip install networkx} 73 \vspace{1cm} 74 \end{frame} 75 76 \begin{frame} 77 \centering 78 \texttt{\$ pip install networkx} 79 \vspace{1cm} 80 \begin{itemize} 81 \item[$\to$] Go to PyPi (Python Package Index) and download \& 82 install \texttt{networkx} 83 \end{itemize} 84 \end{frame} 85 86 \begin{frame} 87 \begin{figure}[H] 88 \centering 89 \includegraphics[width=1.1\textwidth, 90 clip, 91 trim=0cm 10cm 0cm 7cm] 92 {./pics/code_example.pdf} 93 \end{figure} 94 \end{frame} 95 96 \begin{frame} 97 \begin{figure}[H] 98 \centering 99 \includegraphics[width=0.8\textwidth] 100 {./pics/pypi.png} 101 \end{figure} 102 \end{frame} 103 104 \begin{frame} 105 \begin{columns}[T] 106 \column{0.4\textwidth} 107 \begin{align*} 108 \text{Nodes}\ &\to\ \text{Repositories}\\ 109 \text{Edges}\ &\to\ \text{Requirements}(Imoprts) 110 \end{align*} 111 \end{columns} 112 \end{frame} 113 114 \begin{frame} 115 \begin{columns}[T] 116 \centering 117 \column{0.4\textwidth} 118 \begin{block}{\centering Directed Graph} 119 \centering \texttt{scipy $\to$ numpy}\\ 120 \end{block} 121 \end{columns} 122 \end{frame} 123 124 \begin{frame} 125 \begin{columns}[T] 126 \centering 127 \column{0.4\textwidth} 128 \begin{block}{\centering Directed Graph} 129 \centering \texttt{scipy $\to$ numpy}\\ 130 \centering \texttt{scipy $\not\gets$ numpy} 131 \end{block} 132 \end{columns} 133 \end{frame} 134 135 \begin{frame} 136 \centering 137 \texttt{DiGraph with 361,742 nodes and 719,797 edges}\\ 138 \vspace{1cm} 139 \end{frame} 140 141 \begin{frame} 142 \centering 143 \texttt{DiGraph with 361,742 nodes and 719,797 edges}\\ 144 \vspace{1cm} 145 \begin{itemize} 146 \item[$\to$]\centering $\sim$362,000 out of $\sim$363,000 (Not what I expected)! 147 \end{itemize} 148 \end{frame} 149 150 \begin{frame} 151 \centering 152 \texttt{DiGraph with 361,742 nodes and 719,797 edges}\\ 153 \vspace{1cm} 154 \begin{itemize} 155 \item[$\to$]\centering $\sim$362,000 out of $\sim$363,000 (Not what I expected)! 156 \item[$\to$]\centering Significant data has $k_i > 0$ $\to$ 157 $\sim$164,000 nodes and $\sim$720,000 edges 158 \end{itemize} 159 \end{frame} 160 161 \begin{frame} 162 \frametitle{Plotting Dependencies} 163 \begin{figure}[htpb] 164 \centering 165 \includegraphics[width=1\textwidth, ]{./pics/req_3d.png} 166 \caption{Plot of the Python Dependencies Network $k_{\text{in}}\ge 167 10$, $N=4826$, $L=20847$ 168 (red nodes indicate high degree)} 169 \end{figure} 170 \end{frame} 171 172 \begin{frame} 173 \frametitle{Network Information} 174 \begin{columns}[T] 175 \column{0.4\textwidth} 176 \begin{block}{\centering Basic Properties} 177 \begin{align*} 178 \quad\qquad \langle k_{\text{in}}\rangle &= 1.99\\ 179 \quad\qquad \langle k_{\text{out}}\rangle &= 1.99\\ 180 \quad\qquad \langle k\rangle &= 8.75\\ 181 \quad\qquad \langle k^2\rangle &=\ - 182 \end{align*} 183 \end{block} 184 185 \column{0.54\textwidth} 186 \begin{block}{\centering Specific Properties} 187 \begin{align*} 188 S &\simeq 1 \hspace{1.7cm} Connected\\ 189 \langle d_\text{min}\rangle &= 7.63 \qquad 190 \text{Small-World}\\ 191 d_{\text{max}} &= 18.09\\ 192 r &= -0.125 \qquad \text{Assortative}\\ 193 \end{align*} 194 \end{block} 195 \end{columns} 196 \end{frame} 197 198 \begin{frame} 199 \frametitle{Undirected Degree Distribution} 200 \begin{figure}[htpb] 201 \centering 202 \includegraphics[width=1\textwidth]{./pics/dist_u.png} 203 \caption{Undirected (left) distribution $p_k$ (right) cumulative 204 degree distribution with fit for $k > 0$} 205 \end{figure} 206 \end{frame} 207 208 \begin{frame} 209 \frametitle{Directed Degree Distribution} 210 \begin{figure}[htpb] 211 \centering 212 \includegraphics[width=1\textwidth]{./pics/dist_d.png} 213 \caption{Directed (left) distribution $p_k$ (right) cumulative 214 degree distribution with fit for $k > 0$} 215 \end{figure} 216 \end{frame} 217 218 \begin{frame} 219 \frametitle{Community Detection} 220 \begin{columns}[T] 221 \column{0.4\textwidth} 222 \begin{block}{\centering Louvain-Algorithm} 223 \centering 224 Optimize \textbf{Modularity} $M$\\ 225 $O(L)$ 226 \end{block} 227 \column{0.4\textwidth} 228 \begin{block}{\centering Info-Map-Algorithm} 229 \centering 230 Optimize \textbf{Map-Equation} $\mathcal{L}$\\ 231 $O(N\log(N))$ 232 \end{block} 233 \end{columns} 234 \vspace{1cm} 235 \end{frame} 236 237 \begin{frame} 238 \frametitle{Community Detection} 239 \begin{columns}[T] 240 \column{0.4\textwidth} 241 \begin{block}{\centering Louvain-Algorithm} 242 \centering 243 Optimize \textbf{Modularity} $M$\\ 244 $O(N)$ 245 \end{block} 246 \column{0.4\textwidth} 247 \begin{block}{\centering Info-Map-Algorithm} 248 \centering 249 Optimize \textbf{Map-Equation} $\mathcal{L}$\\ 250 $O(N\log(N)$ 251 \end{block} 252 \end{columns} 253 \vspace{1cm} 254 \begin{itemize} 255 \item[$\to$]\centering Detect \& Analyze Community Structure 256 \end{itemize} 257 \end{frame} 258 259 \begin{frame} 260 \frametitle{Sneak Preview} 261 \begin{figure}[htpb] 262 \centering 263 \includegraphics[width=1\textwidth]{./pics/sneak_peak.png} 264 \label{fig:-frac-pics-sneap_peak-png} 265 \end{figure} 266 \end{frame} 267 268 \begin{frame}{Bibliography} 269 \nocite{barabasi} 270 \nocite{motivation} 271 \nocite{pypi} 272 \printbibliography 273 \end{frame} 274 \end{document} 275