Fix data loading

This commit is contained in:
Dimitri Lozeve 2018-06-16 16:13:33 +01:00
parent 2441dbe21b
commit 3d96b42cbb
2 changed files with 23 additions and 13 deletions

View file

@ -1,5 +1,12 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Email EU"
]
},
{
"cell_type": "code",
"execution_count": 1,
@ -16,12 +23,14 @@
"import numpy as np\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"%matplotlib inline"
"%matplotlib inline\n",
"plt.style.use(\"fivethirtyeight\")\n",
"plt.rcParams[\"figure.figsize\"] = 10, 6"
]
},
{
"cell_type": "code",
"execution_count": 27,
"execution_count": 2,
"metadata": {
"autoscroll": false,
"collapsed": false,
@ -32,36 +41,37 @@
},
"outputs": [],
"source": [
"import igraph as ig"
"import igraph as ig\n",
"import dionysus as d"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"G = ig.read(\"data/emaileucore/emaileucore.graphml\")"
"G = ig.read(\"data/emaileucore/email-Eu-core-temporal.txt\", format=\"edgelist\")"
]
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"69459255"
"'IGRAPH D--- 69459255 498501 -- '"
]
},
"execution_count": 33,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(G.vs)"
"G.summary()"
]
},
{
@ -88,7 +98,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
"version": "3.5.2"
}
},
"nbformat": 4,

View file

@ -94,7 +94,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
@ -105,7 +105,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
@ -138,7 +138,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.5.2"
}
},
"nbformat": 4,