Skip to content

Commit

Permalink
Update with GColab info
Browse files Browse the repository at this point in the history
  • Loading branch information
eflegara committed Dec 21, 2020
1 parent e4844f2 commit 391bd4d
Show file tree
Hide file tree
Showing 5 changed files with 157 additions and 143 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@

.DS_Store
.ipynb_checkpoints/Intro to Network Analysis-checkpoint.ipynb
.ipynb_checkpoints/Centrality Measures-checkpoint.ipynb
.ipynb_checkpoints/Intro to Network Analysis-checkpoint.ipynb
115 changes: 57 additions & 58 deletions .ipynb_checkpoints/Intro to Network Analysis-checkpoint.ipynb

Large diffs are not rendered by default.

57 changes: 30 additions & 27 deletions Centrality Measures.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,25 @@
"# Centrality Measures in Network Science\n",
"#### Author: [Erika Fille Legara](http://erikalegara.site)\n",
"\n",
"---\n",
"The MIT License (MIT)\n",
"\n",
"Copyright (c) 2019, 2020 Erika Fille Legara \n",
"\n",
"Permission is hereby granted, free of charge, to any person obtaining a copy\n",
"of this software and associated documentation files (the \"Software\"), to deal\n",
"in the Software without restriction, including without limitation the rights\n",
"to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n",
"copies of the Software, and to permit persons to whom the Software is\n",
"furnished to do so, subject to the following conditions:\n",
"\n",
"The above copyright notice and this permission notice shall be included in all\n",
"copies or substantial portions of the Software.\n",
"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/eflegara/Network-Science-Lectures/blob/master/LICENSE.md)\n",
"\n",
"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n",
"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n",
"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n",
"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n",
"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n",
"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n",
"SOFTWARE.\n",
"---\n",
"\n",
"<table align=\"left\">\n",
"<!-- <table class=\"tfo-notebook-buttons\" align=\"left\"> -->\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/eflegara/Network-Science-Lectures/blob/master/Centrality%20Measures.ipynb\"><img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://github.com/eflegara/Network-Science-Lectures/blob/master/Centrality%20Measures.ipynb\"><img src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />View source on GitHub</a>\n",
" </td>\n",
"</table>\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"\n",
"## Description\n",
Expand All @@ -51,12 +47,19 @@
"metadata": {},
"outputs": [],
"source": [
"import networkx as nx\n",
"import matplotlib.pyplot as plt\n",
"%matplotlib inline\n",
"\n",
"import warnings\n",
"warnings.filterwarnings(\"ignore\")"
"\n",
"# this is for when we run this on Goolge Colaboratory\n",
"try:\n",
" import networkx as nx\n",
"except:\n",
" !pip install networkx\n",
" import networkx as nx\n",
" \n",
"\n",
"warnings.filterwarnings(\"ignore\")\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -560,9 +563,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.1"
"version": "3.8.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
115 changes: 57 additions & 58 deletions Intro to Network Analysis.ipynb

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions myG
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Erika Chris {}
Erika Gino {}
Erika Ann {}
Erika Mary {}
Erika Faye {}
Chris Gino {}
Gino Christian {}
Ann Faye {'weight': 8, 'friendship': 4}
Ann Mary {'weight': 30, 'relatioinship_type': 'siblings', 'friendship': 2}
Faye Mary {'weight': 10, 'relatioinship_type': 'friends'}

0 comments on commit 391bd4d

Please sign in to comment.