{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%load_ext autoreload\n", "%autoreload 2\n", "\n", "import os\n", "import wget\n", "import zipfile\n", "import numpy as np\n", "import pandas as pd\n", "import networkx as nx\n", "import plotly.graph_objects as go\n", "from utils import *\n", "from collections import Counter\n", "from tqdm import tqdm\n", "import time\n", "\n", "# ignore warnings\n", "import warnings\n", "warnings.filterwarnings(\"ignore\")" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Graph | \n", "Number of Nodes | \n", "Number of Edges | \n", "Average Degree | \n", "Average Clustering Coefficient | \n", "log N | \n", "Average Shortest Path Length | \n", "betweenness centrality | \n", "
---|---|---|---|---|---|---|---|---|
0 | \n", "Brightkite Checkins Graph | \n", "7191 | \n", "3663807 | \n", "1018.997914 | \n", "0.702854 | \n", "8.880586 | \n", "2.411011 | \n", "0.00022 | \n", "
1 | \n", "Gowalla Checkins Graph | \n", "10702 | \n", "303104 | \n", "56.644366 | \n", "0.505597 | \n", "9.278186 | \n", "5.222903 | \n", "0.000301 | \n", "
2 | \n", "Foursquare EU Checkins Graph | \n", "20282 | \n", "7430376 | \n", "732.706439 | \n", "0.597097 | \n", "9.917489 | \n", "2.2843 | \n", "0.000089 | \n", "
3 | \n", "Foursquare IT Checkins Graph | \n", "3730 | \n", "629749 | \n", "337.667024 | \n", "0.683565 | \n", "8.224164 | \n", "2.185477 | \n", "0.000428 | \n", "
4 | \n", "Brightkite Friendship Graph | \n", "5928 | \n", "34673 | \n", "11.698043 | \n", "0.219749 | \n", "8.687442 | \n", "5.052162 | \n", "0.000448 | \n", "
5 | \n", "(Filtered) Gowalla Friendship Graph | \n", "8396 | \n", "29122 | \n", "6.937113 | \n", "0.217544 | \n", "9.035511 | \n", "4.558532 | \n", "0.000357 | \n", "
6 | \n", "Foursquare IT Friendship Graph | \n", "2073 | \n", "6217 | \n", "5.99807 | \n", "0.148489 | \n", "7.636752 | \n", "19.530752 | \n", "0.000879 | \n", "
7 | \n", "Foursquare EU Friendship Graph | \n", "16491 | \n", "59419 | \n", "7.206234 | \n", "0.167946 | \n", "9.710570 | \n", "23.713864 | \n", "0.000272 | \n", "