Network_attack_propagation/network_attack_propagation.ipynb

711 lines
1008 KiB
Plaintext
Raw Normal View History

2022-06-16 20:46:14 +02:00
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Propagacja ataku sieci z wykorzystaniem spacerów losowych\n",
"\n",
"- Marcin Kostrzewski\n",
"- Mateusz Tylka\n",
"- Krystian Wasilewski"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Problem\n",
"\n",
2022-06-21 15:55:33 +02:00
"W jakich topologiach sieci komputerowych potencjalny atak wirusa rozprzestrzeniałby się najszybciej, a w których najwolniej?\n",
"Aby rozwiązać ten problem zaprojektowaliśmy symulację ataków wirusa na różne rodzaje topologii sieci."
2022-06-16 20:46:14 +02:00
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Graf\n",
"\n",
"Grafem nazywamy kolekcję dwóch zbiorów: zbioru wierzchołków V oraz zbioru krawędzi E. Zbiór wierzchołków jest dowolnej postaci. Elementami zbioru krawędzi są e∈E, które są podzbiorami postaci v1,v2 dla pewnych dwóch wierzchołków v1,v2∈V (jeśli graf jest nieskierowany) lub parą uporządkowaną (v1,v2) jeśli graf jest skierowany.\n"
2022-06-16 20:46:14 +02:00
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%% md\n"
}
2022-06-21 15:55:33 +02:00
},
"source": [
2022-06-21 16:40:42 +02:00
"## Spacer losowy na grafie\n",
2022-06-21 15:55:33 +02:00
"Inaczej błądzenie losowe. Obiekt przemieszczający się na grafie losowo wybiera jeden z sąsiednich do obecnego wezłów, żeby się do nich przemieścić. Ruch ten nie zależy od historii ruchów - tylko ostatnie przemieszczenie jest brane pod uwagę przy podejmowaniu decyzji."
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%% md\n"
}
2022-06-21 15:55:33 +02:00
},
"source": [
"## Model\n",
"Model sieci reprezentowany jest jako graf nieskierowany. Każdy węzeł reprezentuje w nim urządzenie a krawędzie połączenia między nimi. Węzły zaznaczone na czerwono reprezentują urządzenie zainfekowane przez wirusa, który przemieszcza się do nowych urządzeń spacerem losowym - w każdym kroku wirus wybiera jeden z sąsiadujących węzłów z jednakowym prawdopodobieństwem i próbuje go zainfekować."
]
},
2022-06-16 20:46:14 +02:00
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Implementacja\n",
"\n",
2022-06-21 16:26:33 +02:00
"W naszym przypadku dana topologia sieci będzie przedstawiona za pomocą grafu nieskierowanego, a wirus będzie infekować sieć przemieszczając się po jego krawędziach za pomocą spaceru losowego."
2022-06-16 20:46:14 +02:00
]
},
{
2022-06-21 15:55:33 +02:00
"cell_type": "markdown",
2022-06-16 20:46:14 +02:00
"metadata": {},
"source": [
2022-06-21 16:26:33 +02:00
"### Kod"
2022-06-16 20:46:14 +02:00
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
2022-06-21 16:26:33 +02:00
"## Eksperymenty"
2022-06-16 20:46:14 +02:00
]
},
{
2022-06-21 15:55:33 +02:00
"cell_type": "markdown",
2022-06-16 20:46:14 +02:00
"metadata": {},
"source": [
2022-06-21 16:26:33 +02:00
"### Magistrala"
]
},
2022-06-21 17:07:27 +02:00
{
"cell_type": "code",
2022-06-21 17:39:36 +02:00
"execution_count": 2,
2022-06-21 17:07:27 +02:00
"metadata": {},
2022-06-21 17:39:36 +02:00
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow instead.\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcwAAAHdCAYAAACQUUm4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAABmpElEQVR4nO3dd3xV9f3H8dcd2XvdQELYYU8nAiqKgAT3QFu1Dqxa66617lHHz7qpq8VRrLVqq1ZRQEBEBURUFDEQQkiYScjNHje5+/7+uBAZSbhAkpvxfj4ePHq593vO/RwqvPM95zsMPp/Ph4iIiLTIGOwCREREOgMFpoiISAAUmCIiIgFQYIqIiARAgSkiIhIABaaIiEgAzMEuQESkq7NarXzyySd89dVXbNu2jfLyckJCQkhKSiIzM5OTTjqJ6dOnExsbe9Bz7dy5k/j4eKKjo9uh8uBav34977zzDt999x0lJSV4PB6Sk5MZO3YsM2fO5Pjjjz+s8950000sWrSI9PR0Pv/884CPM2gepohI25k7dy6zZ8+mvr6+xXYJCQncfvvtXHDBBU1+7nQ6mTNnDq+88grz58+nV69ebVFuh+Dz+XjyySd5/fXXaSmizjvvPB566CFCQ0MDPveCBQu49dZbAQ45MNXDFBFpI6+88gpPPfUUAD179uSCCy5g5MiRJCQk4PF4KC4uZvny5Xz88cdUVlZyzz334HA4uOSSS5o81/PPP9/elxAUL774Iq+99hoAFouFK664gtGjR2MymVi/fj1z585lx44dfPDBBxiNRh599NGAzltRUcHDDz982HWphyki0gZ27tzJtGnTcLvdHHvsscyZM4fIyMgm265bt45Zs2ZRU1NDSEgIS5YsoWfPnvu0ef7553nhhRcAWLp0aZftYRYWFjJt2jRcLhd9+/bl7bffJjExcZ82dXV1XH755WRnZwPw9ttvc9RRRx303LfeeisLFixo/P2h9jA16EdEpA289957uN1uAB566KFmwxJg1KhR/OEPfwDA5XLx1ltvtUuNHdHHH3+My+UC4O677z4gLAGio6P585//3Pj7Dz/88KDnXbJkCQsWLMBsNgf0rLgpCkwRkTawefNmAAwGA3369Dlo+7POOguz2f+ULDc3t01r68i+//57AMLDw5kwYUKz7YYPH058fDxw8D+vqqoqHnroIQCuvvpqUlNTD6s2PcMUEWlDPp+PH3/8kWOPPbbFdpGRkTzxxBOEhYWRnp7e+P4HH3zAXXfdtU/byZMnA83fUly7di3vvvsu3333HVarFbPZTHp6OhMnTuSyyy4jLS2tyRouu+wyvv32WyZOnMhrr73GqlWreO2118jOzqauro6ePXty4oknMmvWrH1q3Nvq1av5zW9+A8Bxxx3Hm2++2eJ17y8rK4vMzExcLlfjDxDN2fNE0eFwtNju0UcfpbS0lP79+/P73/+epUuXHlJNeygwRUTawNChQ1myZAkAf/rTn3jiiSc45phjWjxmxowZR/SdbrebRx55hLfffnuf9x0OB5s2bWLTpk3861//4t577+Wiiy5q8Vxz587l8ccf32eU6vbt23nrrbf43//+x4svvsj48eOPqN6mnHfeeQG127hxI9XV1QDN/gAAsGzZMubNm9c4OOhQRtTuT4EpItIGZs6cyauvvkp9fT2FhYVccsklDBo0iMmTJzNu3DjGjh1LWFjYQc9z6qmn8uGHH/L222/z7rvvAjBnzhwsFgshISH7tL333nv53//+B8DRRx/NzJkz6devHw6Hgx9//JE333yT0tJS7r//fkJDQzn33HOb/M6cnBy+/vprzGYzl112Gaeeeioej4fFixfzzjvvUF9fzzXXXMN7773HkCFDjvBP6vDMmTOn8fXEiRObbFNTU8P9998PwCWXXBLQwKCWaJSsiEgb+fLLL7nhhhtwOp0HfBYSEsKIESM44YQTmDRpEqNGjcJgMDR7roONkv3ss8/4/e9/D8C1117LbbfddsA5KioquOyyy9i8eTORkZF8/vnnJCQkNH6+55bsnvpeffVVxo0bt885Fi1axM0334zP5+PYY4/lX//6V4B/Gq1n4cKF3HLLLQAkJSWxZMkSoqKiDmh311138cEHH5Cens4nn3zSOPDqjDPOIC8vT6NkRUQ6ipNPPpkPPviAsWPHHvCZy+Xixx9/5KWXXmLmzJlMnTqVhQsXHvZ3vfrqqwBkZmY2TszfX2JiIg888AAA9fX1/Pe//232fNdcc80BYQkwbdo0zjzzTAC+++478vPzD7vmw/HDDz/s80z3zjvvbDIsly9fzgcffADAww8/3OIo5UApMEVE2lBmZibvvPMOH330Eddffz0jR47EZDId0G779u3ccsst3HLLLXg8nkP6jurqatauXQvAuHHjWuypHn300Y0B88033zTZxmAw8Otf/7rZc5x//vmNrw+lh3ak1qxZwzXXXENDQwMAF198MWedddYB7erq6rjvvvsA/zPRlkbbHgo9wxQRaQdDhgxhyJAh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yfTr14/Y2Fhqa2vZtGkTixYtarw9Onjw4CanS+w9cvWll17iqquuwuv1MmbMGMDfW1y8eDFffPEF69at48wzz+SKK65g1KhROJ1O1qxZwxtvvNEYpJdffjnDhg1rtv7S0lIuuOACrrnmGo466ijq6+tZsGBB42IACQkJBywKD0e++Ppzzz3X+Hx08uTJpKenNzlwZ28hISEMHDjwkL7ncGhpPBGRNuJ0OpkzZw6vvPIKdrv9oO3POOMM7rnnnib3gLRarUybNm2f3mVISAg//PBDY+9zzyjRPbczm3PJJZdw7733HjDSdM/SeKGhofz6179m7ty5TR7fp08f/v73v9OvX78DPjuSwNyxY8dh3eI91Furh3tLVj1MEZE2Ehoayg033MDMmTP57LPPWLFiBQUFBVRWVmKz2YiNjSU1NZVx48a
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow instead.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"20 NODE bus\n",
"average degree = 1.9\n",
"propagation speed = 1.15\n",
"bus0 rounds survived = 24\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcwAAAHdCAYAAACQUUm4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAACLnUlEQVR4nOzdd3hUZdrH8e9MZia9TMokIYEUkpDQO4jgIihIsNdVVl3ldXV117ZYQUFErFhZXbuuvVKkF3UFUXpPSAIhpJBk0sukTDvvH0MigTQgyaTcn+t6rzfmlNyHhfzmnPM896NSFEVBCCGEEM1SO7sAIYQQoiuQwBRCCCFaQQJTCCGEaAUJTCGEEKIVJDCFEEKIVpDAFEIIIVpB4+wChBCiuzMajaxYsYJffvmFY8eOUVRUhFarJSAggNjYWC644AKmTZuGj49Pi+fKzs7Gz88PLy+vDqjceWbPns23337bqn03btxIeHj4ad+32WwsX76cH374gaSkJCorK/H392fkyJHceOONjBo16oxqUsk8TCGEaD8fffQRr732GlVVVc3up9frmTVrFtdee22j281mM++88w7vvvsuK1eubDQgupOrr76agwcPtmrfxgKzsLCQe+65hz179jR53I033sgTTzyBi4tLq36O3GEKIUQ7effdd3nppZcACA0N5dprr2XQoEHo9XpsNhu5ubls2rSJH374gZKSEmbPnk1tbS0zZsxo9FxvvPFGR1+CU1itVtLS0gC47rrrGv3zOJnBYGjw39XV1dx2222kpqYCEB4ezsyZM+nfvz9lZWUsX76cFStW8MUXX1BSUsJrr73WqrokMIUQoh1kZ2fz6quvAjBq1CjeeecdPDw8GuwzbNgwEhMTufHGG5k5cybl5eU8++yzTJo0idDQ0Ab72u32jird6Y4cOYLZbAZg3LhxJCQknNHx//nPf+rDctiwYbz33nsNHmH/6U9/Yvjw4cyfP581a9awZs0aLrnkkhbPK4N+hBCiHXz77bdYrVYAnnrqqdPC8mSDBw/mX//6FwAWi4XPPvusQ2rsrJKTk+u/jo+PP6NjbTYbX3zxBQDu7u689tprjb7vnTFjBhMmTADgxRdfpDVvJyUwhRCiHRw+fBgAlUpFREREi/tffvnlaDSOh34pKSntWltnVxeYHh4eREZGntGxSUlJlJWVAXDJJZcQHBzc5L5XX3014HgasH///hbPLY9khRCiHSmKwu7du1sckenh4cELL7yAq6srYWFh9d///vvveeyxxxrsO3nyZADCwsL48ccfTzvXnj17+Oqrr9i+fTtGoxGNRkNYWBjjx4/n5ptvplevXo3WcPPNN7Nt2zbGjx/P+++/z2+//cb777/PgQMHqKysJDQ0lAkTJjBz5swGNZ5s69at3HLLLQCMHj2aTz75pNnrbkxdYPbr1w+1+szu644fP17/9eDBg5vdNyYmpv7r3bt3t7i/3GEKIUQ7OPm92yOPPMKOHTtaPGb69OlcdNFFZ/zOro7VamXevHnccMMNfP/992RlZVFbW4vJZCI1NZUPPviAqVOn8tVXX7V4ro8++ojbbruNTZs2UVJSgsViITMzk88++4xLL72ULVu2nFWNrVF3h52QkMDGjRu5++67Of/88xk4cCDjx4/n3nvv5ffff2/0WIvFUv+1p6dnsz+n7o4eICMjo8W65A5TCCHawfXXX897771HVVUVOTk5zJgxg7i4OCZPnszYsWMZNmwYrq6uLZ5n0qRJLF26lC+++KI+6N555x0MBgNarbbBvnPmzGHJkiUAjBgxguuvv56oqChqa2vZvXs3n3zyCQUFBTz55JPodDquuuqqRn9mcnIyW7ZsQaPRcPPNNzNp0iRsNhvr1q3jyy+/pKqqir/97W98++23Z/yOsSXHjx+ntLQUgOXLl/P555832F5QUMDatWtZu3YtN9xwA08++WSD4NPr9fVf5+fnN/uz8vLy6r8uLCxssTYJTCGEaAdBQUG8+uqr/OMf/6gf8ZmamkpqaipvvfUWWq2WgQMHct555zFx4kQGDx6MSqU67Tx+fn74+fkRFBRU/72+ffueNu9ww4YN9WF555138uCDDzbYPnr0aK677jpuvvlmDh8+zPz585k4cWKDgKlT11jhvffeY+zYsfXfHzt2LGPGjOG+++7DYrGwYMECPv300wbHjhkz5pzewSYlJdV/XVlZSXx8PDfddBOxsbGYzWa2bdvGp59+SllZWf0HiPnz59cfM3DgQNRqNXa7nfXr1/O3v/2tyZ918uPslubJgjySFUKIdvOnP/2J77//nmHDhp22zWKxsHv3bt58802uv/56pkyZwurVq8/6Z7333nsAxMbG8sADDzS6j7+/P3PnzgUcAfHNN980eb6//e1vDcKyztSpU7nssssA2L59O0eOHDnrmhtz6NCh+q+vvfZavvvuO2644QaGDx/O2LFjuffee1myZEn9O9SvvvqKrVu31h/j6+vLxIkTAdi3b99pgV7n4MGDfP311/X/XTeiuTkSmEII0Y5iY2P58ssvWbZsGXfffTeDBg1qtLNMZmYm999/P/fffz82m+2MfkZZWVl9R5uxY8c2eqdaZ8SIEfXv9pp6D6hSqbjpppuaPMc111xT/3Vjg47OxcyZM1m2bBn/+c9/eOqppxo8bq0TFhbGggUL6v/7448/brD9X//6F+7u7gA8/fTTPPXUU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bJ/rbbbgMc7/IefPDBRgf0HD16lBdffBFwBHBzd18vvvhio8G7fPny+jCdPn16mz6SBRpMZ1mwYEH9Y9eT7d27t/46goKCuOGGGxpsr3uHW1BQcNqUE3AMdrr//vuxWCxotVruvPPOVtWmUlqzpokQQogzYrPZuPfee9mwYUP998477zwmT55MVFQUPj4+VFRUkJqaytq1a9m9ezfgeLz4+eefn7Yk1dKlS3nkkUcAmDZtGrfffjt2u52
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow instead.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"28 NODE bus\n",
"average degree = 1.93\n",
"propagation speed = 2.07\n",
"bus8 rounds survived = 59\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcwAAAHdCAYAAACQUUm4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAACQ4ElEQVR4nOzdd3hUZfbA8e/U9J5JSIMAKXRFiiDYACnBXtDVddX1p7tuU9dV7IK9rgV33V17W3XtCgnVhoo06S0JIb3MpE/J9Pv740KkpFHSz+d58jjm3rk5N2HmzNvOq1EURUEIIYQQbdJ2dwBCCCFEbyAJUwghhOgASZhCCCFEB0jCFEIIITpAEqYQQgjRAZIwhRBCiA7Qd3cAQgjR15nNZhYvXsx3331HUVERNTU1GAwGYmJiSE9P54wzzmDOnDmEh4e3e63S0lIiIyMJDQ3tgsi73rRp0ygrKzvq5+3Zs6dD5/l8Pq644gq2bt3KxIkTefvttzv8MyRhCiFEJ3rjjTd4/vnncTgch3zf5XJhs9koKipi5cqVPPvss/ztb3/j0ksvbfE6breb//znP7z88sssWbKkzybMY2EwGDp87muvvcbWrVuP6edIwhRCiE7y8ssv8/TTTwOQkJDApZdeyujRo4mKisLn81FRUcHq1av58ssvqaur45577sHlcnHVVVe1eK1FixZ19S10uf/85z94PJ52z1u4cCGbNm0CYMGCBR26dkFBwXH9DiVhCiFEJygtLeW5554DYMKECfznP/8hODj4kHPGjh1LVlYWv/rVr7j++utpbGzkscceY9q0aSQkJBxyrt/v76rQu1VaWlq757z//vvNyXLevHmttsoP5vf7ufvuu3G5XMccm0z6EUKITvDRRx/h9XoBtTV0eLI82JgxY7jtttsA8Hg8vPvuu10SY29UUlLCE088AUBqaip33313h5731ltvsWnTJsLCwo6qC/dgkjCFEKIT5OfnA6DRaBg0aFC7559//vno9WqnX0cnsPRHCxcubB4PfvDBBwkKCmr3OUVFRTz77LMA3HHHHcecMKVLVgghOpGiKGzatIkJEya0eV5wcDBPPvkkAQEBJCUlNX//k08+4a677jrk3OnTpwOQlJTEV199dcS1Nm/ezAcffMD69esxm83o9XqSkpKYOnUqV199NYmJiS3GcPXVV7Nu3TqmTp3Kq6++ypo1a3j11VfZvn07NpuNhIQETj/9dK6//vpDYjzY2rVr+c1vfgNw1LNQ2/PVV1+xevVqAM477zxOPfXUdp+jKAr33HMPTqeTU089lXnz5vHYY48d08+XFqYQQnSC4cOHNz+eP38+GzZsaPc5c+fOZcaMGYc892h4vV4WLFjA5ZdfzieffEJJSQkulwu73U5ubi6vvfYas2bN4oMPPmj3Wm+88QbXXXcdq1evpq6uDo/HQ3FxMe+++y7nnnsuP/744zHFeKz8fj9///vfAQgMDORvf/tbh5737rvvsn79eoKCgnj44YePKwZpYQohRCeYN28er7zyCg6Hg7KyMq666ioyMjKYPn06kyZNYuzYsQQEBLR7nWnTpvHZZ5/x3nvvNSe6//znP8TFxR3RtXjvvffy6aefAjBu3DjmzZvH4MGDcblcbNq0ibfffhuLxcL999+P0WjkoosuavFn7tq1ix9//BG9Xs/VV1/NtGnT8Pl8LF++nPfffx+Hw8GNN97IRx99xLBhw47zN9UxS5cuJS8vD1B/twMGDGj3OSUlJTzzzDMA3HzzzQwcOPC4YtDIfphCCNE5vv32W/70pz/hdruPOGYwGBg1ahSTJ0/mrLPOYsyYMWg0mlavtWjRIl588UUAVq1aRXJy8iHHV65cyR//+EcAfve73/HXv/71iGvU1tZy9dVXk5+fT3BwMF999RVRUVHNxw90yR6I75VXXmHSpEmHXGPZsmXcfPPNKIrChAkTeOeddzr42zg+l19+OZs3b8ZgMLB8+fJWu5UPUBSFa6+9lp9++omTTjqJ999/H61W7VQdO3YsDofjqLuMpUtWCCE6yZlnnsknn3zC2LFjjzjm8XjYtGkT//znP5k3bx4zZ84kJyfnmH/WK6+8AkB6ejq33npri+dER0fzwAMPAOBwOPjwww9bvd6NN954RLIEmDVrFueddx4A69evZ+/evcccc0dt3bqVzZs3A2q3dXvJEuCDDz7gp59+wmAw8MgjjzQny+MhCVMIITpReno677//Pp9//jl/+MMfGD16NDqd7ojziouLueWWW7jlllvw+XxH9TMaGhqaE8qkSZPabKmOGzeOkJAQAH766acWz9FoNFx55ZWtXuOSSy5pftzSpKMT7c0332x+/H//93/tnl9RUcGTTz4JwO9//3vS09NPSBwyhimEEF1g2LBhDBs2jJtvvhmr1crGjRtZs2YN33//ffMSFICcnBxiY2O59957O3ztXbt2cWB07e233+5wN2NJSUmL3x84cCCxsbGtPm/kyJHNjwsKCjoc57FwOp2sWrUKgNGjR3co+d17773Y7XYyMjL43e9+d8JikRamEEJ0sbCwMM466yzuuusulixZwscff3zIEon333+fysrKDl+vrq7umOJobGxs8ftxcXFtPu/gxf/V1dXH9LM76scff6SpqQmArKysds//6KOP+P7779HpdDzyyCPHvOayJdLCFEKIE8ztdmOxWKipqSE9Pb3dxfWjRo3itdde4/rrr+enn37C4/Gwbt06zj///A79vIO7cG+66SZmzZrVoee1Nq7XUpfx4Q6U6juRCaklK1euBNRu4tmzZ7d5rsVi4fHHHwfU2cUGg4Fdu3Ydcd6B2O12e/PxiIiIdsdGJWEKIcQJ9uKLL/Lvf/8bUIumn3HGGe0+58ASjgPjil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Dmm2+yc+dOdDodgwcP5vzzz+fiiy/u0D6Ux8tmswEQHh7e6T+rI6T4uhBCCOCX4ut
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"35 NODE bus\n",
"average degree = 1.94\n",
"propagation speed = 2.09\n",
"bus15 rounds survived = 74\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAe8AAAFlCAYAAADComBzAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAAA+j0lEQVR4nO3deUBU9d4G8GcYGPZNwQ3FHVA2lzJ3Qy03MBHBLVxabFFUTG9dS29vm5V1XWi5aatm10BN0Uxzy8ylFHUQXEBUFBdkh2GAYWZ+7x8VN1McqZk5M8Pz+UdnYXi+HODhnDmLTAghQERERFbDTuoARERE1DAsbyIiIivD8iYiIrIyLG8iIiIrw/ImIiKyMixvIiIiK2MvdQAi+ntOnjyJd999F6WlpRBCoEWLFnj++efRuXNnqaMRkYnIeJw3kfXSaDQYMGAAPv30UwQHBwMAtmzZgmXLlmHPnj2Qy+USJyQiU+CaN5EVq6qqQkVFBdRqdd19o0ePhpubGw4fPow333wT27ZtAwD8/PPPePXVV7Ft2zYkJSXh8uXLuHLlCm7evImwsDD069cPmzdvRl5eHhYsWIDIyMh7fl5hYSEWL16MoqIiFBQUwM/PD8uXL0fTpk0xePBghIWF4dy5cxg9ejTWr1+Pffv2wc7ODlVVVRg8eDC2bduGpk2bSvVlJLI6LG8iK+bp6YkFCxbgiSeegI+PD3r06IEHHngAo0aNQnp6+l0/Ni0tDVu2bIGDgwMGDhyIFi1aYN26ddi9ezeWLl2KyMjIe37et99+i27dumHGjBkQQmDGjBnYsmULHnvsMQBA586dsXz5cgDAjh07cODAAQwaNAjffvst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ata": {},
"output_type": "display_data"
}
],
2022-06-21 17:07:27 +02:00
"source": [
"from network_attack_propagation import bus_experiment \n",
"bus_experiment()"
]
},
2022-06-21 16:26:33 +02:00
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](bus0.gif)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](bus8.gif)\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](bus15.gif)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Pierścień"
]
},
2022-06-21 17:07:27 +02:00
{
"cell_type": "code",
2022-06-21 17:39:36 +02:00
"execution_count": 3,
2022-06-21 17:07:27 +02:00
"metadata": {},
2022-06-21 17:39:36 +02:00
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow instead.\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcwAAAHdCAYAAACQUUm4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAABtYElEQVR4nO3deXhU5d3/8fdMZiaTfZ8kJAECBAIKgoiIIiogS0CqVEmQpdX62FptUWvrAi6IUtdaH/z5WNtaK0qwokWUsIho0aIgq6AQlpB9mez7bJnz+2NIDGQbkOTMJN/XdXkZcs4cvgfIfOa+z71oFEVREEIIIUSntGoXIIQQQngDCUwhhBDCDRKYQgghhBskMIUQQgg3SGAKIYQQbpDAFEIIIdygU7sAIYTo7cxmMx9//DE7duwgJyeH8vJy9Ho9ERERJCUlMWnSJGbOnElwcHCX18rPzyc0NJTAwMAeqNyz5OTkMGfOHJxOJ4cOHXLrNRaLhbVr17J161ZOnTpFbW0t4eHhjB07lkWLFnHppZe6/ftrZB6mEEJ0nzfffJOXX36ZhoaGTs8LCwvjgQce4Oabb273uM1m4/XXX+evf/0rGzduJD4+vjv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ajZFsH0q233sqbb77Z7usHDBjAX/7yFxITE9sc85TABNi8eTNLly6lrq6u3eP+/v788Y9/ZMaMGW79/jJKVgghuonBYOCee+5h3rx5bNu2jS+//JKsrCw
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow instead.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"20 NODE ring\n",
"average degree = 2\n",
"propagation speed = 0.75\n",
"ring0 rounds survived = 16\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcwAAAHdCAYAAACQUUm4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAACEmklEQVR4nOzdeXhU9fn//+dMZstM1pmsJCEJkLAvgqAsQRAQAbXqx9ZWpXWrVsVal58WRREV6/q1da1ardbWpa6lsoqCgOwiArIkkIQl20wy2ZPZz++PAylLEhIgmWS4H9fFZZw55+SeQOY1533e535rFEVREEIIIUSrtMEuQAghhOgOJDCFEEKINpDAFEIIIdpAAlMIIYRoAwlMIYQQog0kMIUQQog20AW7ACGECHV2u50vv/ySVatWsX//fioqKtDr9dhsNrKyshg/fjzTpk0jKirqpMc6dOgQMTExREREdELlwbVhwwbef/99fvjhB5xOJ9HR0fTu3ZtLLrmEyy+/HIPB0Or+Xq+XhQsXsmjRInbu3ElVVRVGo5G0tDRycnKYOXMmCQkJba5HI/dhCiFEx3nnnXf4y1/+QkNDQ6vbxcbGct9993HVVVc1+7zH4+GNN97gzTffZOHChaSmpnZEuV1CIBDg8ccf5/33329xm759+/Liiy+SkZHR7PMlJSXccccd/PTTTy0ew2w28/TTT3PRRRe1qS4JTCGE6CBvvvkmzz33HADJyclcddVVDB48mNjYWPx+PyUlJaxevZr//ve/eL1eAB555BGuvfbaE471yiuv8OKLLwLw9ddfh3RgPv/887zxxhsAJCUlccstt9C3b18qKytZsmQJX375JQAZGRl8+umnJ5xtu1wu/u///o+9e/cCMGbMGK666irS0tKora1l5cqVfPDBB3i9XnQ6HW+//TbnnXfeyQtThBBCnHEHDx5UBgwYoGRnZyvXXnutUl9f3+K2P/74o3Luuecq2dnZysCBA5Xi4uITtnnxxReV7OxsJTs7Wzl48GBHlh5U+/fvV/r3769kZ2crkyZNUmpqak7Y5tVXX236Wbz22msnPP/66683Pf/kk082+302bNigDBw4UMnOzlYuvvhixe/3n7Q2mfQjhBAd4JNPPsHn8wEwb948zGZzi9sOGTKEe++9F1Cvu/3rX//qlBq7ok8//RS/3w/Agw8+SGRk5Anb3HrrrU3XexcvXtzsMQASExO57777mv0+o0aN4pe//CUA+fn5bNu27aS1SWAKIUQHODIcqNFoSE9PP+n2l112GTqdOg9zz549HVpbVxYfH895551HcnIyY8eObXYbrVbbdO2ypKTkmOfKy8spLCwEYPz48ej1+ha/15gxY5q+3r1790lrk1myQgjRgRRF4YcffmDkyJGtbmc2m3nmmWcwGo2kpKQ0Pf7ZZ58xe/bsY7adNGkSACkpKXzzzTcnHGvr1q189NFHbNq0Cbvdjk6nIyUlhXHjxjFz5kx69OjRbA0zZ85k48aNjBs3jrfeeot169bx1ltvsWPHDurq6khOTiYnJ4ebbrrpmBqPtmHDBn79618D6lnce++91+rrPt51113Hdddd1+o2iqI0BWV8fPwxz2m1Wu666y7sdjujRo066XGOcLvdJ61NAlMIITpA//79+eqrrwB44IEHeOaZZzj33HNb3WfGjBmn9T19Ph9PPPEEH3zwwTGPu91ucnNzyc3N5Z///Cdz5szh6quvbvVY77zzDk899dQxoXLgwAH+9a9/8fnnn/PKK68cc4bWmd577z0cDgcA06ZNO+Y5q9XK7bff3qbjbNy4senrlj4AHE0CUwghOsAvfvEL/va3v9HQ0EBRURHXXnst2dnZTJo0ifPPP59zzjkHo9F40uNceOGFfPHFF3zwwQd89NFHALzxxhskJCScMNw4Z84cPv/8cwBGjBjBL37xCzIzM3G73fzwww9NQfPII49gMBi44oormv2eu3btYu3ateh0OmbOnMmFF16I3+9n2bJlfPjhhzQ0NHDLLbfwySef0K9fv9P8SZ2coihUVlayZ88e3n//fZYtWwbAwIEDueGGG07pmBUVFU3XOvV6fZtmycptJUII0UG+/fZbZs2ahcfjOeE5vV7PoEGDGD16NBMmTGDIkCFoNJoWj/XSSy/x8ssvA83fVrJ8+XLuuOMOQJ0Uc88995xwDKfTycyZM9m7dy9ms5lvvvmG2NjYpuePDMkeqe9vf/sb559//jHHWLp0KXfddReKojBy5Ej++c9/tvGnceoeeughPvnkk2Meu+qqq3jggQfa1OzheIqicNttt7FixQoAfvWrX/Hoo4+edD+Z9COEEB3kggsu4LPPPuOcc8454Tmv18sPP/zAq6++yi9+8QsuuuiiZmd8ttXf/vY3ALKysrj77rub3cZqtTJ37lwAGhoa+Pjjj1s83i233HJCWAJMnTqVSy+9FIBNmzaxb9++U665rYqLi094bN26dfz73/8mEAi0+3h/+tOfmsIyISGB3//+923aTwJTCCE6UFZWFh9++CH/+c9/uP322xk8eDBhYWEnbHfgwAH+8Ic/8Ic//KHptoq2qq6uZuvWrQCcf/75rZ6pjhgxAovFAsD69eub3Uaj0XDNNde0eIz/+7//a/q6uUlHZ9o111zDv/71Lz744ANmz55NcnIyRUVFPPvss9x3333tCs2nn36ad999F1DPol944QWsVmub9pVrmEII0Qn69etHv379uOuuu6itreX7779n3bp1rFmzpukWFFDvK4yLi2POnDltPvauXbuaJue89957bZ6ZevDgwWYf79mzJ3FxcS3uN3DgwKav8/Pz21znqZoyZUrT18OHD+fyyy/nhhtuYOfOnSxcuLCpk09rfD4fjz76aNNZtU6n47nnnjvpRKyjyRmmEEJ0ssjISCZMmMDs2bNZuHAhn3766TGTTj788ENKS0vbfLzKyspTqqOmpqbZx0/WkDwyMrJpwlF5efkpfe/TERMTw9NPP930/0cm77Skrq6O3/3ud01hqdfr+X//7/9x8cUXt+v7yhmmEEKcYR6PB4fDQUVFBVlZWYSHh7e6/aBBg3j77be56aabWL9+PV6vl40bN3LZZZe16fsdPYR72223MXXq1Dbtp9U2f87U3JDx8Y4Mg7bWGKAjZWdnk5GRQWFhYauNHsrKyrjllluaGhOYzWZefPFFcnJy2v09JTCFEOIMe/nll3n99dcBtQH7+PHjT7rPkVs4jlxXLCsra/P3i46ObvraZDLRv3//dlZ8rOrq6lafr6qqagrp4xsHnK6ysjIOHjyIVqtl+PDhrW4bGxtLYWFhU+P64xUUFHDjjTc2TRqy2Wz89a9/ZciQIadUmwSmEEKcYUe3wlu1alWbAhNomowDah/UtsrOzm76+sjkn5YcWSYsMTGRPn36NDuDd9++fXg8nhbXm9y+fXvT12fyPkxFUZg2bRr19fVkZWU1rUrS0rZHrsEmJSWd8PzBgwf59a9/jd1uB9S/k7feeou0tLRTrk+uYQohxBk2YcKEpqHKTz/9tKm36cmsXLkSUIdER4wYccxzrc18TUxMJCsrC4A1a9a0OJkHYMGCBbz00kvMmTOHf//7381u4/F4Wr3F5cg1Q61Wy+TJk1vcrr00Gk3TWWVeXh4//vhji9uuXLmy6frp8R2HGhsbueWWW5rCcsCAAXz44YenFZYggSmEEGeczWZr6qfa0NDAjTfeyObNm1vd54svvmhqAnDJJZec0Krt6LO95hajPtLxxuv1cs899zQ7oaegoIBnn30WUMNp5syZLdbz7LPPNhu8CxYsaArTGTNmnPEh2aNvZ5k7dy61tbUnbJOfn980i1iv15/Q7eeZZ55pmr3bs2dP3nnnnTbfOtIa6fQjhBAdwO/38/vf/57ly5c3PTZ69GgmTZpEZmYmUVFR1NbWkpuby9KlS/nhhx8A6Nu3L++///4JiyJ/8cUXPPDAA4DaP/XGG28kEAgwbNgwQB2i/N3vftd0lpqUlMT111/PkCFD8Hg8fP/997z77rtNQXr99def0NT96E4/oM5GveWWWxg+fDgNDQ0sWrS
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow instead.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"28 NODE ring\n",
"average degree = 2\n",
"propagation speed = 1.11\n",
"ring8 rounds survived = 32\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcwAAAHdCAYAAACQUUm4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAACaUUlEQVR4nOzdd3hUZfbA8e/0yWQmZZJMEkIakIQmICjYQFQQCNZdV3fdtYGru/62WbEC9oK6tnVXXbtiWbsLSBUEYRFBEAQSSAIJ6XWSTMq0+/vjkgikECDJpJzP8/A4ZO69OTdqzrzvfd9zNIqiKAghhBCiXdpAByCEEEL0BpIwhRBCiA6QhCmEEEJ0gCRMIYQQogMkYQohhBAdIAlTCCGE6AB9oAMQQoi+rqSkhP/+979888037N+/n/LycgwGAxEREaSkpDBp0iRmzJhBSEjIUa914MABwsLCsFqt3RB5YG3cuJGFCxfyww8/UFFRQWhoKIMHD+aCCy7gkksuwWg0HvUaTqeTd999l1WrVpGXl4fL5cLhcHDaaadx3XXXkZKS0uF4NLIPUwghus4bb7zBs88+S11dXbvHhYeHc9ttt3HZZZe1+r7b7ebll1/mlVdeYdGiRQwcOLArwu0R/H4/Dz74IAsXLmzzmLS0NJ577jmSkpLaPGbDhg3ceuutlJeXt/q+wWBg3rx5/OpXv+pQXJIwhRCii7zyyis8+eSTAMTGxnLZZZdx0kknER4ejs/no7CwkLVr1/Lll1/i8XgAmDt3Lr/97W9bXOsf//gHzz33HAArV67s0wnzqaee4uWXXwYgJiaGG264gbS0NCorK/nqq6/473//C0BSUhIff/xxq6Ptbdu2cfXVV9PQ0IDBYODyyy/nnHPOwWKx8O233/Laa69RX1+PVqvl9ddf57TTTjtqXJI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z/++OPm14duIxk7dix2u73N65x77rnNr7dt23bU7ysjTCGE6GRut5vS0lLKy8tJSUkhKCio3eNHjhzJa6+9xuzZs/nf//6Hx+Phu+++46KLLurQ9zt0CvePf/wj06ZN69B5Wm3rY6bWRmRHapoGPXKlbndJTU0lKSmJffv2HVbo4dB9mdHR0e1eIyYmpvl1Rz50SMIUQohO9sILL/DSSy8BagH2SZMmHfWcpi0cTc8Vi4uLO/z9QkNDm1+bzebj3sfZxOl0tvt+VVVVc5I+snDAiSouLiYvLw+tVsvYsWPbPTY8PJx9+/Y1F64HNZE2Odp9HLp6+dCfYVskYQohRCc7tBTeN99806GECYdPJx5tdHSoQ5NE0+KftjS1CYuOjmbIkCGtruDNysrC7Xa32W/y0G0anbkPU1EUZsyYgcvlIiUlpbnEXVvHNj2DPXSkOHDgQCIjIykrK2PHjh34/f42R9KHPjtuq3LRoeQZphBCdLLJkyc3T1V+/PHH7Nu3r0PnrV69GlCnRMeNG3fYe+2tfI2Ojm5uhLxu3bo2F/MAfPHFFzz//PPce++9fPjhh60e43a7293i0vTMUKvVMmXKlDaPO1YajaZ5VLlnz552nyuuXr26+fnpoeXtNBpNc/Wf0tLS5iIHrfnss8+aX3fkPiRhCiFEJ4uIiGiup1pXV8esWbOOWhrvs88+ay4CcMEFF7QY8Rw62mutGXVTxRuPx8Mtt9zS6oKenJwcFixYAKiJ5aqrrmozngULFrSaeL/44ovmZDpz5sxOn5I9dDvLvHnzqKmpaXFMdnZ28ypig8HQotrP1Vdf3bxa9qGHHmp1r+iaNWuaPzCMGTOmQ9PYUulHCCG6gM/n4y9/+QsrVqxo/trpp5/OeeedR3JyMiEhIdTU1JCZmcnSpUv54YcfAEh
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"35 NODE ring\n",
"average degree = 2\n",
"propagation speed = 1.0\n",
"ring15 rounds survived = 36\n"
]
}
],
2022-06-21 17:07:27 +02:00
"source": [
"from network_attack_propagation import ring_experiment \n",
"ring_experiment()"
]
},
2022-06-21 16:26:33 +02:00
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](ring0.gif)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](ring8.gif)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](ring15.gif)\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Gwiazda"
]
},
2022-06-21 17:07:27 +02:00
{
"cell_type": "code",
2022-06-21 17:39:36 +02:00
"execution_count": 4,
2022-06-21 17:07:27 +02:00
"metadata": {},
2022-06-21 17:39:36 +02:00
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow instead.\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcwAAAHdCAYAAACQUUm4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAABW/klEQVR4nO3dd3wUBf4+8Gdbeq+kQQKEJqCCSC/SmxEB6RAICoJw1ruTs5yn5+88lfPrUVR6QKQXwRC6SBFFei8BQkLapmezKZvdnd8fS3KUlA3Z3dnyvF+vvMjtzsw+gXOfzOzMZySCIAggIiKiWknFDkBERGQLWJhERERGYGESEREZgYVJRERkBBYmERGREViYRERERpCLHYCIyN4plUr89NNPOHz4MO7cuYPc3FwoFAr4+/sjOjoavXr1wpAhQ+Dl5VXntu7evQsfHx94eHhYILl1uXPnDmJiYqDX63HhwoU6lxcEAQcOHMCPP/6ICxcuIDc3F3K5HKGhoejatSsmT56MJk2aGP36El6HSURkPqtWrcLXX3+NkpKSWpfz9fXFO++8g9GjR1f7vEajwZIlS7B06VIkJCQgPDzcHHGtVnl5OWJjY3HmzBk4OTnVWZhFRUV48803cfTo0RqXUSgUmDdvHiZO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Izs6GTqdDYGAgnnnmGYwdO9ao+0rOmzcPnTp1Qnx8PC5fvgyZTIaoqCjExMRg5MiRdV4qI5bLly+bbdvcwyQiIgCmHW5uj3jSDxERkRFYmEREREZgYRIRERmBhUl
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow instead.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"13 NODE STAR\n",
"average degree = 1.85\n",
"propagation speed = 0.85\n",
"star0 rounds survived = 12\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcwAAAHdCAYAAACQUUm4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAACnw0lEQVR4nOzdd1yV5fvA8c9h7z0UcIDg3nuLK1dlqdkwt9lQM7VMszTTylzlyLKv5co0R1YqNtw5UHOjqDgZouzN4azn98cJfg7GAc4C7vfr5SvjPM/9XEeF69zrumWSJEkIgiAIglAsC1MHIAiCIAgVgUiYgiAIgqADkTAFQRAEQQciYQqCIAiCDkTCFARBEAQdiIQpCIIgCDqwMnUAgiAIlV1CQgK7d+/myJEj3L17l+TkZKytrfH09CQkJISuXbvSr18/XFxcSmwrNjYWNzc3nJycjBC5aV2+fJktW7Zw+vRpHjx4gFqtxsvLixYtWjB06FDatWv3xD2xsbH07Nmz1M9q27YtGzduLPYamdiHKQiCYDjr1q1j2bJl5OTkFHudu7s77777LkOGDCn0dYVCwXfffcf//vc/9uzZQ0BAgCHCNQuSJLFo0SJ++OEHiktRgwYNYu7cudjY2BR8rawJs1OnTvzwww/FXiN6mIIgCAbyv//9j8WLFwNQvXp1hgwZQpMmTXB3d0etVhMfH88///zDrl27SE1NZdasWeTl5TFs2LBC21qx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iJ
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow instead.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"31 NODE STAR\n",
"average degree = 1.94\n",
"propagation speed = 0.84\n",
"star2 rounds survived = 27\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcwAAAHdCAYAAACQUUm4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOydZ3RUVReGn0knPaQTekihhY4ISBGQ3oMiRVEECwIiTZoI0sECdhA/BVF6U5rSQar0QIAQCIH0QnomyWTm+3HJmJBMSZnU86yVRcjce2dPyrz37LP3u2UqlUqFQCAQCAQCrRiVdQACgUAgEFQEhGAKBAKBQKAHQjAFAoFAINADIZgCgUAgEOiBEEyBQCAQCPRACKZAIBAIBHpgUtYBCAQCQVUgOjqaP//8k5MnT/Lw4UPi4uIwNTXF0dERLy8vOnXqRO/evbG1tdV5rcePH2Nvb4+1tXUpRF52zJkzh+3bt+t17JEjR6hZs2a+r2dkZLB161b2799PUFAQGRkZuLq60qZNG4YNG0bLli31jkcm+jAFAoHAsPz888+sXr2atLQ0rcc5ODgwbdo0/P39C3w8MzOTtWvXsm7dOvbt21egQFQmhgwZws2bN/U6tiDBfPToEW+//TbBwcEazxsxYgTz5s3DyEh3wlWsMAUCgcCArFu3jlWrVgHg7u6Ov78/TZs2xcHBgezsbCIiIjh16hR//PEHT548Yc6cOWRkZDBy5MgCr/XVV1+V9ksoExQKBUFBQQAMGzaswO9HblxcXPL8Py0tjbFjx/Lw4UMAunTpwqBBg3BxceH+/fv8+OOPhISE8Ntvv2FlZcW0adN0xiQEUyAQCAzE48eP+fL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YWKg/f3aPUh9eeuklfvrpJ0C3WYQQTIFAIDAAX3/9NT/88AMgmaZ36tRJ5zkmJiaMHj1ava8YFRWl9/PlTiVaWFgUuY8zB12rtYSEBLVI69P0ry9KpZJz584RHx+Pubk5PXr00Hp8fHw8IAl8zvcgMzOTx48f8+jRIxo2bKh1tWxvb6/+vKBK5twIwRQIBAIDkNsK7+TJk3oJJqAuxgFwdXXV+/m8vb3Vn+cU/2giZ0yYq6srDRo0KLCCN8f8XJOt3I0bN9SfF8XrVRNGRkZMmjSJ5ORknJ2d6d69u8Z9yczMTHUcPj4+6liPHj3K5MmTAZgxYwZjx47V+HyhoaHqz93c3LTHVqhXIhAIBAK96NKlizpVuWPHDnWTvC6OHz8OSCumVq1a5XlMW+Wrq6srXl5eAJw+fVpjMQ/A3r17+eqrr5g7dy5bt24t8JjMzEytLS47duwAJIHr3r27xuOKQuvWrQGpFeT06dMaj9u+fTvJyckA9OnTR/31Fi1aqFPNu3bt0jrlJed1AHTo0EFrXEIwBQKBwAA4Ojqq3W7S0tJ48803dfb77d69W20C0K9fv3xerblXewUNo37jjTcAaS/vww8/LLCg58GDB6xcuRKQBDin6KUgVq5cWaDw7t27Vy2mffv2LdGULJCnnWXRokXqtGturl27pn4dzs7OvPLKK+rHXF1d1SIeFBSktsB7lp9//plDhw4BkiNRs2bNtMYlnH4EAoHAQGRnZzNp0qQ8PX7PP/883bp1o169etja2pKcnMzdu3c5dOgQV65cAaT04m+//Ya1tXWe6+3evVs917F37968+eabKJVKmjdvDkgm7++88456lerm5saYMWPw8/MjMzOTS5cu8csvv6iFdMyYMflM3XM7/YC0xzd+/HhatmxJWloa+/fvZ+fOnSiVShwcHNi3bx+Ojo55rlES5utTp07lzz//VL+Ot956i6ZNm5Kens7x48fZtGkTWVlZmJqa8t133/HCCy/kOT88PBx
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow instead.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"57 NODE STAR\n",
"average degree = 1.96\n",
"propagation speed = 0.91\n",
"star4 rounds survived = 53\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcwAAAHdCAYAAACQUUm4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOydd1xV9RvH35e9EQQUFAEVwYV7ZK7cI63MtOXPVZrm1nJrztwzzdRypGmplTlyZ24x9wQVUWTvzb3c8fvjyI1xJ1wU87xfL17hved8z/cCnec86/NIVCqVChERERERERGdmL3oDYiIiIiIiLwMiAZTRERERETEAESDKSIiIiIiYgCiwRQRERERETEA0WCKiIiIiIgYgGgwRUREREREDMDiRW9ARERE5L9OXFwc+/fv59SpUzx+/JjExEQsLS0pX748/v7+tG7dmq5du+Lk5KR3radPn1KuXDkcHByew86fP+3atSMyMtLo80JCQjS+/tdff7Fr1y5u3LhBSkoKtra2+Pv707lzZ/r27YuNjY3B15CIfZgiIiIipcfmzZtZuXIlWVlZOo9zcXFhwoQJ9O7dW+P7MpmM9evXs2HDBg4cOEDlypVLY7svnOIYTEtLS27dulXgNblczsSJE9m/f7/W86pXr866devw9vY26DqihykiIiJSSmzYsIElS5YA4OnpSe/evalbty4uLi4oFAqio6M5ffo0+/btIzk5malTpyKVSvnoo480rrV69ern/RGeO+vXryc3N1fvcbNmzeLq1asAfPXVV0XeX7hwodpYVqhQgaFDhxIQEEBcXBy7d+/m7NmzPHjwgE8//ZTff//dIE9T9DBFRERESoGnT5/SuXNn5HI5TZo0Yf369djZ2Wk89saNGwwePJi0tDQsLS05evQonp6eBY5ZvXo133zzDQDHjx//z3qYhrBz505mzpwJQJ8+fZgzZ06B96Ojo2nfvj0KhQJPT09+//13ypUrV+CYqVOnsnv3bgAmTZrEwIED9V5XLPoRERERKQV2796NXC4HBG9Im7EECAoKYvz48QDk5uayffv257LHl5GIiAgWLlwIgK+vL1OmTClyzJkzZ1AoFAAMGTKkiLEEwUiamQkm8MSJEwZdWzSYIiIiIqXAgwcPAJBIJPj4+Og9vmfPnlhYCFkybQUsIsLDR14+ePbs2dja2hY5JikpSf29n5+fxnUcHR3VXnx8fLxB1xZzmCIiIiKliEql4urVqzRp0kTncXZ2dixatAhra2sqVaqkfv3XX39l8uTJBY5t3749AJUqVdLoHV27do2ff/6ZS5cuERcXh4WFBZUqVaJly5b069cPLy8vjXvo168fwcHBtGzZku+//57z58/z/fffc+vWLTIyMvD09KRVq1YMHjy4wB7zc/HiRf73v/8B0LRpU3788Uedn9sYTpw4wenTpwHo0aMHzZo103ich4eH+vuwsDBee+21Isfk5OQQFxdX5HhdiB6miIiISClQs2ZN9fcTJ07kn3/+0XtO9+7d6dChQ4FzjUEul/PVV1/Rt29ffv31VyIiIpBKpWRmZhIaGsoPP/xA586d+fnnn/WutXnzZgYOHMjp06dJTk4mNzeXJ0+esH37dt58803OnTtXrD0WF6VSybJlywCwsbFhwoQJWo99/fXXsbKyAmDjxo2kp6cXOWblypXq4qIuXboYtAfRwxQREREpBfr06cPGjRvJysoiMjKSjz76iBo1atC+fXuaN29OgwYNsLa21rtOu3bt+P3339mxY4fa0K1fvx4PDw8sLS0LHDtt2jR+++03ABo1akSfPn3w8/NDKpVy9epVfvzxR+Lj45kxYwZWVla88847Gq959+5dzp07h4WFBf369aNdu3YoFAqOHDnCzp07ycrKYsiQIezevZvAwMAS/qQM49ChQ9y/fx8QfrYVK1bUeqyHhwcTJkxg/vz5REVF0bNnT4YMGYK/vz/Jycns3buXo0ePAtC6dWutrTyFEatkRUREREqJv//+mxEjRiCTyYq8Z2lpSZ06dXjttddo27YtQUFBSCQSrWvpq5I9duwYn3/+OQBDhw5l3LhxRdZISkqiX79+PHjwADs7O06cOIGLi4v6/byQbN7+Nm7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fSNS3NycsLS0pLc3FwyMjL0ri2GZEVERERMTH4pvFOnThl8Xl4xDggTNgylRo0a6u/zin+0IZPJ+Oabb9i1a5d62kdhHj58qLEVJo/8laWl2YcZFhamDvk2btzYoHNcXV3V3z958kTnsUlJSWrxgvznaUM0mCIiIiImpm3btupQ5Z49ewgPDzfovJMnTwJCSLRRo0YF3tNV+VqhQgV1McyZM2e0FvMA/PHHH6xevZpp06bxyy+/aDxGJpPpbHHZs2cPIIR0O3TooPW4knLjxg3193Xq1DHonHr16ql/9gcPHtQ5Kmzfvn3q7w0xyKLBFBERETEx5cuXV+upZmVlMWjQIL3SeL///rtaBODNN98sotWav7le0zDqvPFUubm5jBs3TmNBz6NHj1i8eDEgGOB+/fpp3c/ixYs1Gt4//vhDbUy7d+9eqiHZ/CL0hhpMBwcHde43PDycBQsWqPOt+blx4wYrVqwAhOHdb775pt61RaUfERERkVJAoVAwatQoddEKwGuvvUb79u3x8/PDycmJ9PR0QkNDOXz4sDo8GhAQwE8//YSDg0OB9X7//XcmTpwIQNeuXRk0aBBKpZL69esDgsj7Z599pvZSK1asyIABAwgKCkImk3H58mW2bNmiNqQDBgwoIuqeX+kHoFy5cgwZMoSGDRuSlZXFwYMH+fXXX1Eqlbi4uHDgwIEirRimFF8fNmyYus/z5s2bBivyJCUl8d577/H06VMAGjRoQJ8+fahatSpZWVn8/fff7NixA6lUikQiYfXq1XTs2FHvuqLBFBERESklZDIZ69evZ8OGDeTk5Og9/s0332Tq1Kka82lxcXF07ty5gHdpaWnJlStX1IY
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"91 NODE STAR\n",
"average degree = 1.98\n",
"propagation speed = 0.85\n",
"star6 rounds survived = 78\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAfUAAAFlCAYAAADyLnFSAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAABJiElEQVR4nO3de3zT9fU/8FcuzaVNmoReoC00QGkpIsiKwwtWBeycgI6LQgXxBiJTwQviFVERAeecm7o52YTJJgN+068o88J1VIs67SwMpaXl0hulF5pLk6ZNk3x+f5QE6mjT0tzzev7TJp9czmn76Mnn/X5/3kckCIIAIiIiCnviYAdAREREvsGiTkREFCFY1ImIiCIEizoREVGEYFEnIiKKECzqREREEUIa7ACIyD+Ki4vxyiuvwGg0QhAEDBgwAI8//jgyMzODHRoR+YmI16kTRR673Y7c3FysX78eI0eOBABs27YNr776Knbv3g2JRBLkCInIH3imThSBbDYbmpub0dLS4rnvpptugkqlwpdffom1a9di+/btAICvv/4aL7zwArZv347XX38dlZWVqKqqQn19PUaPHo3x48fjgw8+QHV1NZYtW4apU6f2+HGNjY1YsWIFTp8+jYaGBqSlpeG3v/0tEhISMHHiRIwePRqlpaW46aabsHnzZuzduxdisRg2mw0TJ07E9u3bkZCQEKwfI1HYYVEnikAajQbLli3DggULkJiYiJycHFx22WWYMmUKDh482O1zi4qKsG3bNsTExODqq6/GgAED8O6772LXrl14+eWXMXXq1B4/7p///CfGjBmDhQsXQhAELFy4ENu2bcPdd98NAMjMzMRvf/tbAMCnn36Kzz//HNdccw3++c9/4oorrmBBJ+olLpQjilB33XUXCgsLsXz5ciQlJeFPf/oTpk2bhubm5m6fd+WVV0KtVkOhUCA5ORm5ubkAgPT0dBiNxl497o477kBOTg42bNiA5557DmVlZZ1GDy699FLP93PnzsXWrVsBAFu2bMGtt97qix8DUVRhUSeKQEVFRfjzn/8MlUqFCRMm4LHHHsM///lPiMVilJSU4NylNO3t7Z2eK5PJOt2WSs8/oNeTx7388sv43e9+B51Oh9mzZ2P8+PGd3js2Ntbz/Y033oiioiJ89dVXaGlpwU9/+tOeJ0xEAFjUiSJSv3798Oabb+Lbb7/13NfQ0ACbzYb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42jJ81oa3f6I7SowqJORER9VlZtBNB1E5fuZOt1cLoEz5w8XTgWdSIi6rPyGjOUcgnSEuN6/dwR7K/uMyzqRETUJ+YWO+qaWpCRqoFY3HUTl65kDtRAIhaxuYsPsKgTEVGfHL2AS9nOpZBJMSQlHidqm2Frc/gytKjDok5ERH1SdoGL5M6VrdfCJQg4UmX0UVTRiUWdiIj6pLzaBLFIhKGp3pu4dMW9DzyH4PuGRZ2IiC5Yu8OFE6fMGJSsgkImveDXyUjTQCoRcbFcH7GoExHRBas41QyHU7jg+XQ3WYwEGakaVNVZYLG1+yi66MOiTkREF6ysxgig501cujNCr4MAcF69D1jUiYjognmauPRhkZxbNq9X7zMWdSIiuiDCmSYu/eLl6Bev6PPrDU2Nh0wq5mK5PmBRJyKiC1JvsKG5pd0nZ+kAIJWIkTlQg5oGK8xWu09eM9r4rai7XC6sWLECs2fPxrx581BRUdHp+Lp16/CLX/wCc+fOxd69ewEATU1NuPvuuzFnzhw89NBDsNls/gqPiIj6qOzM0HvmBez33hX3EDzP1i+M34r6rl27YLfbsWXLFixduhRr1671HCstLcX27duxdetWrF+/Hq+99hpsNhv+8Ic/YOrUqdi0aRMuuugibNmyxV/hERFRH5WfWSTnqzN
"text/plain": [
"<Figure size 576x396 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
2022-06-21 17:07:27 +02:00
"source": [
"from network_attack_propagation import star_experiment \n",
"star_experiment()"
]
},
2022-06-21 16:26:33 +02:00
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](star0.gif)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](star2.gif)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](star4.gif)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](star6.gif)"
2022-06-16 20:46:14 +02:00
]
},
2022-06-21 17:25:27 +02:00
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Gwiazda (z odpornością wierzchołków o najwyższych stopniach)"
]
},
{
"cell_type": "code",
2022-06-21 17:39:36 +02:00
"execution_count": 5,
2022-06-21 17:25:27 +02:00
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow instead.\n"
]
},
{
"data": {
2022-06-21 17:39:36 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcwAAAHdCAYAAACQUUm4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAABlzUlEQVR4nO3dd3RUdf7/8eek914ICb1D6FKEBBtKCxYU64Ks+EVZXUGRjqwNkRLEFfUHslh2VVRAXDoIKwSpBjDUJQQCCYT03qbd3x9jspSUIWRyZybvxzmcxcydO6+wyiv33s99X42iKApCCCGEqJGD2gGEEEIIWyCFKYQQQphBClMIIYQwgxSmEEIIYQYpTCGEEMIMUphCCCGEGZzUDiCEEPYuIyODjRs3smfPHi5evEh2djbOzs4EBgbSrl07Bg0axLBhw/Dx8al1X6mpqfj5+eHl5dUAydV18uRJVq9ezeHDh0lPT8dgMBAUFETPnj15/PHH6devX637OHv2LJ9//jkHDx4kIyMDLy8v2rRpw8MPP8yoUaNwdHQ0O49G7sMUQgjL+eKLL/jwww8pKSmpcTt/f39ef/11HnvssSpf12q1rFixgs8++4xNmzYRERFhibhWQVEUFi1axKpVq6ipokaNGsVbb72Fi4tLla//8MMPvPXWW+h0uipf79mzJ8uXL8fX19esXFKYQghhIZ999hmLFy8GICwsjMcee4yuXbvi7++PwWAgLS2NuLg4NmzYUPmX+ty5c3nmmWdu2tfHH3/M3//+dwB27txp14W5bNkyPvroIwBCQkIYN24c3bt3x9HRkZMnT/LFF1+QkpICwGOPPca8efNu2sfevXt5/vnnURSFoKAgJk6cSGRkJNnZ2XzzzTfs3bsXgDvvvJPPP/8cjUZTay4pTCGEsIDU1FSGDBmCXq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+SAApTCGEqHfLli1j+fLlgGkA+6BBg2p9T8UtHBXXFdPT083+vGuPjtzc3OjUqdMtJr7etStNq5KXl1dZ0teu3q1PBoOB6dOns2HDhsqv/fWvf+Xll1+u8X0uLi40b96c8+fPV3vKuULF+DwwDTmojZySFUKIenbtDfN79uwx+33Xnk4MDQ01+33t27ev/H3F4p/qaLVali1bxg8//FA5EedGSUlJNa4aPX78eOXvLXEfpqIoTJs2rbIsnZyceO+992otywo9evQATCPzioqKqt3u8OHDlb/v3bt3rfuVwhRCiHp29913V56qXLt2LcnJyWa975dffgFMp0Rv/Au8plWcoaGhtGvXDjA91qqmI6t///vffPTRR8yZM4fvv/++ym20Wm2Nt7isXbsWMJ3SHTx4cLXb1dXf//53Nm7cCJgW4yxbtuy6lbm1qTglbTAYbhrMXkGr1VYWcseOHWnWrFmt+5XCFEKIehYYGFg5T7WkpITnnnuucqh4ddavX185BCAmJuamWa3XPiS5qodR//nPfwZM93e+9tprVS7ouXDhAosWLQJMBTxmzJhq8yxatKjK4v33v/9dWaYjRoyo91Oyx44dqzydrdFoWLJkCffcc88t7WPgwIG0bNkSMD0WraqVvPPnz6+c7jNu3Diz9ivPwxRCCAswGAy88sor/Pzzz5Vfu/POO7nvvvto1aoVPj4+FBYWcvbsWbZt21Z5erRDhw588803eHl5Xbe/9evXM336dACGDRvGc889h9ForDz9qCgKL774YuVRapMmTRg3bhzdunVDq9USHx/Pl19+WVmk48aNu2moe8Xw9Qp+fn5MmDCBXr16UVJSwubNm1m3bh1GoxF/f382bdpEYGDgdfu43eHr48aNY//+/QAMHjzYrNOwzs7ON12D/PXXXxk/fjyKouDj48OLL75Iz549ycv
2022-06-21 17:25:27 +02:00
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow instead.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"13 NODE STAR\n",
"average degree = 1.85\n",
2022-06-21 17:39:36 +02:00
"propagation speed = 1.46\n",
"star0 rounds survived = 20\n"
2022-06-21 17:25:27 +02:00
]
},
{
"data": {
2022-06-21 17:39:36 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcwAAAHdCAYAAACQUUm4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAADQJElEQVR4nOydd3hT5fuH73TvTaEUChRaVtkgQ4bMQhluUdlDNipDlCEUBGTK3rJE5augolCwTFFEhuzVAaWlFOjeK01zfn/E5kehI22TJi3vfV29SJNz3vOkLfmc53mfIZMkSUIgEAgEAkGRGOnbAIFAIBAIKgJCMAUCgUAg0AAhmAKBQCAQaIAQTIFAIBAINEAIpkAgEAgEGiAEUyAQCAQCDTDRtwECgUBQ2YmJieHQoUP8+eefREREEB8fj6mpKc7Oznh5edG5c2f69OmDnZ1dsWs9fPgQBwcHbGxsysFyw2PPnj0sXLgQgBMnTlCjRo1Cj5UkiRMnTvDrr79y48YN4uPjMTExoXr16rRv354hQ4ZQq1Ytja8tE3WYAoFAoDt27drFmjVryMjIKPI4R0dHpk+fzltvvVXg63K5nK1bt7Jt2zYCAgKKFIrKSmRkJAMGDFD/LIsSzJSUFKZMmcKZM2cKXc/U1JSZM2cyaNAgja4vPEyBQCDQEdu2bWPFihUAuLm58dZbb9GkSRMcHR3Jzc3l8ePH/PXXXxw8eJDExERmz55NdnZ2gR/g27ZtY926deX9FgwGSZKYPXt2sTceecdOnjyZc+fOAeDj48OgQYOoW7cuWVlZ/PPPP3zzzTekp6ezYMECbGxsePXVV4tdVwimQCAQ6ICHDx+yevVqANq0acPWrVuxsrLKd0yLFi3w8/PjvffeY9SoUaSkpPDll1/SrVs33Nzc8h2rVCrLy3SD5H//+x/nz5/X6NjDhw+rxbJ3796sXLkSE5P/l7u2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SfwpDLpezfv169u3bx5UrVwo85t69e+pSmIK4ceOG+rEu6zDLQmJiIsOGDVOLpbOzM998802pxRKEhykQCARa55VXXsHU1JScnBx++uknBg8eTO3atYs9748//gBUIdFWrVrle62ozNeqVavi5eVFaGgoZ86cITIykpo1axZ47G+//abey3vjjTcKLHmRy+UcOXKk0JFXec3NjYyM6NGjR7HvS1M0ybhdsGCBuiSksHmYSqWSDz/8UJ1M5e7uzs6dO0s0LLoghIcpEAgEWsbZ2VndTzUjI4ORI0fy77//FnnOgQMH1E0A+vXr91yv1qezRQuaCTlixAhAleAyderUAhN67t+/r576IZPJGDJkSKH2LF++vMAs2t9++01dL9q3b1+thmS1xY4dO9Rt7xwcHPjmm2/KLJYgPEyBQCDQCdOmTSMiIoLjx4+rW+O1b9+e7t27U6dOHezs7EhNTSUkJITAwEB1eLR+/frMnTv3ufWezlzduHEjI0eORKlU0rx5c0DlLR49epQ//viD69ev079/f4YPH07Tpk2Ry+VcunSJ3bt3q4V02LBhNGrUqFD7Y2NjeeuttxgzZgwtW7YkIyODw4cP8/PPPwOqMVsFFfxru/l6SUlLS2Pr1q3q74cPH05qamqBCURPY29vX2w/WZn0dGddgUAgEGgNuVzO1q1b2bZtG1lZWcUe369fP2bPno2Tk9Nzr8XExODr65vPuzQ1NeXy5ctq7zMrK4vZs2dz6NChIq8zaNAg5syZ81yWbN60EjMzM95//3127dpV4Pm1atViy5Yt1KlT57nXdC2YxYVk9+/fz+zZs0u87uuvv65uaFAYwsMUCAQCHWFmZsakSZN45513OH78OGfOnCEsLIzExETS09Oxs7O
2022-06-21 17:25:27 +02:00
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow instead.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"31 NODE STAR\n",
"average degree = 1.94\n",
2022-06-21 17:39:36 +02:00
"propagation speed = 1.32\n",
"star2 rounds survived = 42\n"
2022-06-21 17:25:27 +02:00
]
},
{
"data": {
2022-06-21 17:39:36 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAcwAAAHdCAYAAACQUUm4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8qNh9FAAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOydd1iVdRvHP4ctyhAn4Fbc4sqVYI5MK7PhSDM1R1aK29yKirj3HqWplVszTcuRe+LeskFwAKJsOBzO8/7xxHlZZx+G+nyuyys65xk/UM73ue/ffX9vmSAIAhISEhISEhIaMSvsBUhISEhISLwOSIIpISEhISGhA5JgSkhISEhI6IAkmBISEhISEjogCaaEhISEhIQOSIIpISEhISGhAxaFvQAJCQmJN52oqCgOHTrEmTNnCAsL48WLF1haWlKqVCnc3Nxo06YNH374Ifb29lqvFRERgaOjIyVKlCiAlRc9tm3bxuzZswE4ceIEFSpU0Hj88ePH2bt3L7dv3yYuLg4HBwfc3d3p0aMH7du31+veMqkPU0JCQiL/+OWXX1i+fDnJyckajytZsiTjxo2je/fueb4vl8vZsGEDGzdu5K+//tIqFG8ijx8/pmvXrqqfpSbBTEpKYuzYsZw8eVLt9d5//30WL16MjY2NTveXIkwJCQmJfGLjxo0sWrQIAGdnZ7p3706DBg0oWbIkGRkZPH36lLNnz3Lw4EFevnzJlClTSEtLo0+fPnlea+XKlQX9LRQZBEFgypQpWh88AJRKJcOHD+f8+fMAODk5MWjQIJo0aUJqaipHjx5l165dHD9+nG+++YZt27ZhaWmp9bqSYEpISEjkAxERESxbtgyAZs2asWHDBmxtbbMd07hxYz766CN69+7NoEGDiI+PZ+7cubRv3x5nZ+dsxyqVyoJaepFkx44dXL58Wadj9+7dqxLLKlWqsHXrVsqVK6d6/91336VNmzYMGzaMGzdusHXrVgYNGqT1ulLRj4SEhEQ+sGfPHhQKBQAzZ87MJZ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bvGsutW7cASEhIyNOAPidDhgxRfa2pMtfS0pKKFSvmev3Ro0ekpKQAeQtuTiTBlJCQkDAxWa3wzpw5o5NgQvZG+7z8T9VRs2ZN1deZxT/qyBwTVq5cOWrUqJFnBW9QUBByuVzt/uGdO3dUX+dnH6ah7N69m4CAAEqUKMGIESPUHnfs2DHV161atdJ6XUkwJSQkJExM27ZtsbS0JD09nb179/L1119TpUoVreedOnUKEFOiTZs2zfaepsrXcuXK4ebmRkBAAOfOnePx48d5RlQAf/75p2pM2BdffJGnYMrlco4cOcKnn36a5zX27t0LiCnd999/X+v3pSu6VNzOmjVLZU6vbh7m2bNn+eeff7C0tGTgwIF5DttOTExk+/btALzzzjs6pWSloh8JCQkJE1OqVCmVn2pycjIDBw7Uao33xx9/qEwAunTpksurNWu0l1eT/YABAwCxv3PMmDF5FvSEhISopn7IZDL69u2rdj0LFy7Ms4r2zz//VFWcfvzxxyZNyZqKzD3c9PR0li9fnuv9tLQ0xo0bR2xsLCDa7umCFGFKSEhI5ANjx44lLCyM48ePq6zxWrVqRYcOHahatSr29vYkJCTg7+/PP//8w40bNwCoVasW06dPz3W9rJWra9asYeDAgSiVSho1agSI0eLRo0c5deoUt2/f5pNPPuGbb77B3d0duVzOtWvX2LJli0pI+/fvr3GSR3R0NN27d2fIkCE0adKE5ORkDh8+zL59+wDRgi6nKTyY3nzdEDp37szGjRt58OABW7duJTo6mk8++QQnJycCAwPZsmULAQEBgGg4r0s6FkAmZDbvSEhISEiYlMz9wo0bN5K
2022-06-21 17:25:27 +02:00
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"57 NODE STAR\n",
"average degree = 1.96\n",
2022-06-21 17:39:36 +02:00
"propagation speed = 0.84\n",
"star4 rounds survived = 49\n"
2022-06-21 17:25:27 +02:00
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"MovieWriter ffmpeg unavailable; using Pillow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cuHyIwZM3LywTNnzqRYsWJKz/vrr79o0aIF27ZtQy6X4+jomBMe1xUpJCshISFRhMjlcu7evUvdunXVnmdubs6CBQswNTWlVKlSOZ//9ttveHt75zm3WbNmAJQqVYrz588XWOvevXvs2bOHP//8k4iICIyMjChVqhSNGzemT58+lCxZUuke+vTpw61bt2jcuDE///wz169f5+eff8bX15fExERcXFz45JNP6NevX5495ubmzZt88803ANSrV49t27ap/bq14fz581y+fBmA9u3bU79+fZXnBgcHExsbi0wmo1OnTnh7e0shWQkJCYn/RypVqpTz9wkTJnD79m2N17Rt25Yvvvgiz7XakJmZyfTp0+nRowe//fYbISEhpKWlkZSUxNOnT9m8eTMtW7Zkz549GtfasmUL3333HZcvXyYmJoaMjAxevHjBjh07aNeuHdeuXdNpj7qSnZ3NkiVLADAzM2Ps2LFqzzcwMKBJkybs3buXefPmYWNjo/ceJA9TQkJCogjo3r07mzZtIjk5mdDQUHr37k2FChVo1qwZDRo0oFatWpiammpc5/PPP+fQoUPs2rUrx9Bt2LABJyenAu0UU6ZM4eDBgwB89NFHdO/enbJly5KWlsbdu3fZtm0bkZGRTJ06FRMTEzp37qz0nn5+fly7dg0jIyP69OnD559/TlZWFqdPn2b37t0kJyczcOBA9u/fj5eXl57fKXGcPHkSf39/QPjelihRQu35HTp0oFOnToW6B8lgSkhISBQBjo6OLFu2jGHDhuW0Mjx9+pSnT5+ydu1ajI2NqVq1Kg0bNuSzzz6jevXqyGSyAuvY2tpia2uLo6NjzmflypWjdOnSec47e/ZsjrEcNGgQo0ePznO8Xr16fPnll/Tp04eAgABmzpzJZ599hp2dXYF7KoQVNm3aRIMGDXI+b9CgAfXr12fkyJFkZGQwe/Zstm/fnufa+vXrF0kOduvWrYDQc/ndd99pPN/AoPADqFJIVkJCQqKIaNKkCb/99hu1atUqcCwjI4O7d++yZs0aunfvTosWLThx4oTO99q0aRMAnp6e/Pjjj0rPsbe3Z9q0aQAkJyezb98+lesNHDgwj7FU0LJlS9q3bw/An3/+ybNn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OnFlgvd+XqmjVr+P7778nOzqZmzZoAdOnShdOnT3Px4kXu379P+/bt+fbbb6levTrp6encuXOHrVu35hjSvn37UrlyZZX7j4yMpFu3bgwcOJDatWuTnJzM8ePH+e233wCws7MrIAoPhSu+ntsz1yZEXVRIBlNCQkKiCDA0NGTp0qVs2LCBjRs3kpqayvXr17l+/brKa9q1a8fkyZOxtLQscOzjjz/G3Nyc5ORkTpw4wYkTJzA2Nuavv/7CxMQEmUzG8uXLmTx5MkePHuXVq1fMmzdP6X169+7NhAkTVO7DxMSEr776ii1btrBgwYICx8uUKcP69espXry4iO+E7igKn0xNTfN42P8WksGUkJCQKCJMTEwYNmwY3bt35+zZs1y5coXAwEBiYmJISkrC2toaZ2dnGjRoQJs2bahWrZrKtZycnNiyZQtLly7F19eXtLQ0HB0dCQ8PzykyMjMzY/HixfTs2ZMDBw5w584dIiMjycrKwtHRkTp16tCjR48C+VFleHt7U7duXbZu3cqjR48wNDSkbNmydOjQgS5dumhslSkMEhMTAbC2ti7ye4lBJlfIQ0hISEhIfNAo5mGamJjkqYSVEJCKfiQkJCQkJEQgGUwJCQkJCQkRSAZTQkJCQkJCBJLBlJCQkJCQEIFkMCUkJCQkJEQgVclKSEhISEiIQPIwJSQkJCQkRCAZTAkJCQkJCRFIBlNCQkJCQkIEksGUkJCQkJAQgWQwJSQkJCQkRCAZTAkJCQkJCRFIBlNCQkJCQkIEksGUkJCQkJAQgWQwJSQkJCQkRCAZTAk
2022-06-21 17:25:27 +02:00
"text/plain": [
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"91 NODE STAR\n",
"average degree = 1.98\n",
2022-06-21 17:39:36 +02:00
"propagation speed = 0.77\n",
"star6 rounds survived = 71\n"
2022-06-21 17:25:27 +02:00
]
},
{
"data": {
2022-06-21 17:39:36 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAe8AAAFlCAYAAADComBzAA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3pT/j0009v+vyKFSvg4+ODJUuW2LMMaocEQYDeVw29rxqxjUvXAKDEXN1iHXpWvhlnM67hbEbzIS0alULay72ppx7ir4FMxkAnIvdgt/Bet24dtm3bBrVafdPnv/jiC6SmpmLgwIH2KoFckK9WBd8eKvTrEShdM1fWNu/l3jgxLjmrBMlZJdI9So/mQ1qaJseF6r24dI2IOiS7hbfBYMDatWvxyiuv3PDcTz/9hKSkJMTHxyMjI8NeJVAHoVV7oFdXf/Tq6i9dq6yuQ3aB+bpQN+NSrgnpV1oe0hKm10pHqIYH6xAWpIXKg0vXiMi12S28J0yYgJycnBuuFxQU4IMPPsD777+Pb7/91l4fTx2cWqVAZBdfRHbxla7V1tUjx1je4hjV7MZT2IDGQ1oEoFOAF8KbvkcP0aFLkA4aT07/ICLX4fC/sXbu3Ini4mIsXLgQRqMRVVVViIiIwIwZM275Oj8/DRQdbLMPvV5n/aYOyJ7t7tzJF3F9mx/X1VuQU2BGek4J0q+UIj2nBJdyS5FbWI4j55oPaekU4IWIMB90D/VB91BfRIT6wFdn+0Na+DN3L+7absB92+6odguiKIr2evOcnBwsXrwYmzZtuunzmzdvRkZGxm1NWDMaTVbvcSVNs67dTXtot0UUUVBc2aKHnplnQnlVXYv7/HQqaS/3pjXpfjrVHc90bw9tdwa22/24a9vt0e7WfhlwWM97+/btqKioQHx8vKM+kuimZIKAEH8NQvw1GHR
2022-06-21 17:25:27 +02:00
"text/plain": [
"<Figure size 576x396 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from network_attack_propagation import weighted_star_experiment \n",
"weighted_star_experiment()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](star_weighted0.gif)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](star_weighted2.gif)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](star_weighted4.gif)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](star_weighted6.gif)"
]
},
2022-06-16 20:46:14 +02:00
{
"cell_type": "markdown",
"metadata": {},
"source": [
2022-06-21 16:02:32 +02:00
"## Wnioski\n",
"\n",
2022-06-21 17:39:36 +02:00
"Najszybciej wirus rozprzestrzenia się w gwieździe, a najwolniej w magistrali."
2022-06-16 20:46:14 +02:00
]
}
],
"metadata": {
"kernelspec": {
2022-06-21 17:25:27 +02:00
"display_name": "Python 3.9.1 64-bit",
2022-06-16 20:46:14 +02:00
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
2022-06-21 17:25:27 +02:00
"version": "3.9.1"
2022-06-21 17:07:27 +02:00
},
"vscode": {
"interpreter": {
2022-06-21 17:25:27 +02:00
"hash": "11938c6bc6919ae2720b4d5011047913343b08a43b18698fd82dedb0d4417594"
2022-06-21 17:07:27 +02:00
}
2022-06-16 20:46:14 +02:00
}
},
"nbformat": 4,
"nbformat_minor": 2
2022-06-21 15:55:33 +02:00
}