Skip to content

Commit

Permalink
Add graphml files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Deschamps committed Jun 13, 2017
1 parent ad5a995 commit b43dc58
Show file tree
Hide file tree
Showing 4 changed files with 211,506 additions and 36 deletions.
41 changes: 5 additions & 36 deletions descriptor/create_graphs_in_R.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -73,31 +73,9 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Warning message in file(filepath, \"r\"):\n",
"“cannot open file '/data/links/-links.txt': No such file or directory”"
]
},
{
"ename": "ERROR",
"evalue": "Error in file(filepath, \"r\"): cannot open the connection\n",
"output_type": "error",
"traceback": [
"Error in file(filepath, \"r\"): cannot open the connection\nTraceback:\n",
"1. graph.data.frame(unique(processFile(filename2)[c(\"from\", \"to\")]), \n . directed = TRUE)",
"2. as.data.frame(d)",
"3. unique(processFile(filename2)[c(\"from\", \"to\")])",
"4. processFile(filename2)",
"5. file(filepath, \"r\") # at line 4 of file <text>"
]
}
],
"outputs": [],
"source": [
"\n",
"# Grab the data files\n",
Expand All @@ -109,7 +87,7 @@
"# ^^^^^^^^^^^^^^^^^^^^^^^^^^ <- Change to the file name you want. Leave out \"-links.txt\"\n",
"\n",
"suffix = '-links.txt'\n",
"#file2 = ''\n",
"file2 = 'DALHOUSIE_Halifax_Regional_Municipality_Documents'\n",
"# ^^^^^^^^^^^^^^^^^^^^^^^^^^ <- Change to the file name you want. Leave out \"-links.txt\"\n",
"\n",
"\n",
Expand Down Expand Up @@ -360,18 +338,9 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Warning message:\n",
"“closing unused connection 5 (/data/links/ALBERTA_prairie_provinces-links.txt)”"
]
}
],
"outputs": [],
"source": [
"# Write the graphml\n",
"write.graph (graph_file, savename, format='graphml')\n",
Expand Down
Loading

0 comments on commit b43dc58

Please sign in to comment.