Skip to content

Commit

Permalink
Finished producing graphml files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Deschamps committed May 5, 2017
1 parent 2ea46cf commit af2a0db
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions descriptor/create_graphs_in_R.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -73,29 +73,20 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 53,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Warning message:\n",
"“closing unused connection 4 (/data/links/ALBERTA_energy_environment-links.txt)”"
]
}
],
"outputs": [],
"source": [
"\n",
"# Grab the data files\n",
"filepath = '/data/links/'\n",
"\n",
"# Change the following file to the \n",
"file = 'ALBERTA_health_sciences_grey_literature'\n",
"file = 'WINNIPEG_racism_in_winnipeg'\n",
"# ^^^^^^^^^^^^^^^^^^^^^^^^^^ <- Change to the file name you want. Leave out \"-links.txt\"\n",
"\n",
"suffix = '-links.txt'\n",
"file2 = 'DALHOUSIE_Bob_Fournier'\n",
"file2 = 'WINNIPEG_truth_reconciliation'\n",
"# ^^^^^^^^^^^^^^^^^^^^^^^^^^ <- Change to the file name you want. Leave out \"-links.txt\"\n",
"\n",
"\n",
Expand Down Expand Up @@ -328,18 +319,9 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 54,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Warning message:\n",
"“closing unused connection 4 (/data/links/DALHOUSIE_Bob_Fournier-links.txt)”"
]
}
],
"outputs": [],
"source": [
"# Write the graphml\n",
"write.graph (graph_file, savename, format='graphml')\n",
Expand Down

0 comments on commit af2a0db

Please sign in to comment.