{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 2. Creación del grafo\n",
    "\n",
    "El segundo paso, y en el que se va a centrar principalmente el proyecto, va a ser la creación del grafo.\n",
    "Para ello vamos a crear un grafo donde cada nodo sea un artista y los ejes sean los usuarios comunes entre cada par de artistas.\n",
    "\n",
    "### 2.1 Matriz de adyacencia"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import numpy as np"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "df_artists = pd.read_csv('artists-v2.dat', header=0, sep='\\t', usecols=[0,1,2])\n",
    "df_users = pd.read_csv('user_artists.dat', header=0, sep='\\t')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>userID</th>\n",
       "      <th>artistID</th>\n",
       "      <th>weight</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2</td>\n",
       "      <td>51</td>\n",
       "      <td>13883</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>52</td>\n",
       "      <td>11690</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2</td>\n",
       "      <td>53</td>\n",
       "      <td>11351</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2</td>\n",
       "      <td>54</td>\n",
       "      <td>10300</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2</td>\n",
       "      <td>55</td>\n",
       "      <td>8983</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   userID  artistID  weight\n",
       "0       2        51   13883\n",
       "1       2        52   11690\n",
       "2       2        53   11351\n",
       "3       2        54   10300\n",
       "4       2        55    8983"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_users.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>artistID</th>\n",
       "      <th>name</th>\n",
       "      <th>freq</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>89</td>\n",
       "      <td>Lady Gaga</td>\n",
       "      <td>611</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>289</td>\n",
       "      <td>Britney Spears</td>\n",
       "      <td>522</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>288</td>\n",
       "      <td>Rihanna</td>\n",
       "      <td>484</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>227</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>480</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>300</td>\n",
       "      <td>Katy Perry</td>\n",
       "      <td>473</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   artistID            name  freq\n",
       "0        89       Lady Gaga   611\n",
       "1       289  Britney Spears   522\n",
       "2       288         Rihanna   484\n",
       "3       227     The Beatles   480\n",
       "4       300      Katy Perry   473"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_artists.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "pd.set_option('display.max_rows', None, 'display.max_columns', None)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Creamos una matriz de zeros de tamaño (num_artists x num_artists)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "size = len(df_artists.index)\n",
    "matrix = np.zeros((size,size))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Cogemos el ID de dos artistas."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "89 289\n"
     ]
    }
   ],
   "source": [
    "artistA = df_artists.iloc[0]['artistID']\n",
    "artistB = df_artists.iloc[1]['artistID']\n",
    "print(artistA, artistB)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Hacemos para cada uno un sub-dataframe del dataframe users."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "df_artistA = df_users.loc[df_users['artistID'] == artistA, ['userID']]\n",
    "df_artistB = df_users.loc[df_users['artistID'] == artistB, ['userID']]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>userID</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>38</th>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>252</th>\n",
       "      <td>7</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>301</th>\n",
       "      <td>8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>451</th>\n",
       "      <td>11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>552</th>\n",
       "      <td>13</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "     userID\n",
       "38        2\n",
       "252       7\n",
       "301       8\n",
       "451      11\n",
       "552      13"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_artistA.head()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Y hacemos un **innerjoin**, para saber cuál es el número de usuarios en común que tienen. Es lo que usaremos como pesos de los ejes de nuestro grafo."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "436\n"
     ]
    }
   ],
   "source": [
    "w = len(pd.merge(df_artistA, df_artistB, on='userID', how='inner').index)\n",
    "print(w)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Como método alternativo, he creado la función **calculate_weight** que calcula el número de coincidencias entre ambos dataframes usando **búsqueda binaria**."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "def binary_search(value, array):\n",
    "    i = 0\n",
    "    j = len(array)-1\n",
    "    found = False\n",
    "\n",
    "    while i <= j and not found:\n",
    "        mid = (i + j) // 2\n",
    "        if array[mid] == value:\n",
    "            return True\n",
    "        else:\n",
    "            if value < array[mid]:\n",
    "                j = mid - 1\n",
    "            else:\n",
    "                i = mid + 1\n",
    "    return False\n",
    "\n",
    "def calculate_weight(arrayA, arrayB): \n",
    "    weight = 0\n",
    "    i=0\n",
    "    for value in arrayA:\n",
    "        if value > arrayB[-1]:\n",
    "            return weight\n",
    "        if binary_search(value, arrayB):\n",
    "            weight +=1\n",
    "        \n",
    "    return weight"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "436\n"
     ]
    }
   ],
   "source": [
    "w2 = calculate_weight(df_artistA.values, df_artistB.values)\n",
    "print(w2)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Ahora, para construir la matriz de adyacencia, juntaremos los pasos anteriores en un bucle, de manera que calculemos el peso para cada par de artistas. Para agilizarlo un poco, he decidido crear una lista que contiene los dataframes de usuarios de cada artista."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "#np.set_printoptions(threshold=np.nan)\n",
    "#print(matrix)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "def calculate_matrix(df_artists, df_users):\n",
    "    \n",
    "    num_artists = len(df_artists.index)\n",
    "    dataframes_list = []\n",
    "    \n",
    "    for i in range(num_artists):\n",
    "        artist = df_artists.iloc[i]['artistID']\n",
    "        df_artist = df_users.loc[df_users['artistID'] == artist, ['userID']]\n",
    "        dataframes_list.append(df_artist)\n",
    "    \n",
    "    size = len(df_artists.index)\n",
    "    matrix = np.zeros((size,size))\n",
    "    \n",
    "    for i in range(num_artists):\n",
    "        df_artistA = dataframes_list[i]\n",
    "        for j in range(i+1,num_artists):\n",
    "            df_artistB = dataframes_list[j]\n",
    "            #weight = len(pd.merge(df_artistA, df_artistB, on='userID', how='inner').index)\n",
    "            weight = calculate_weight(df_artistA.values, df_artistB.values)\n",
    "            matrix[i][j]=weight\n",
    "        print(i)\n",
    "    \n",
    "    return matrix\n",
    "        \n",
    "#m = calculate_matrix(df_artists, df_users)\n",
    "#m[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [],
   "source": [
    "#np.savetxt('matrix.txt',m,fmt='%.0f')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "https://codereview.stackexchange.com/questions/147136/binary-search-a-sorted-list-of-integers"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Ahora que ya tenemos guardada en un fichero la matriz, podemos cargarla fácilmente."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "m = np.loadtxt('matrix.txt')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 2.2. Generación del Grafo"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "They can be represented as two lists:\n",
    "\n",
    "1. A **node list**: a list of 2-tuples where the first element of each tuple is the representation of the node, and the second element is a dictionary of metadata associated with the node.\n",
    "2. An **edge list**: a list of 3-tuples where the first two elements are the nodes that are connected together, and the third element is a dictionary of metadata associated with the edge."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [],
   "source": [
    "import networkx as nx\n",
    "import matplotlib.pyplot as plt\n",
    "import pandas as pd\n",
    "import numpy as np\n",
    "from nxviz import MatrixPlot\n",
    "\n",
    "df_artists = pd.read_csv('artists-v2.dat', header=0, sep='\\t', usecols=[0,2])\n",
    "df_tags = pd.read_csv('artist_tags-v2.dat', header=0, sep= '\\t')\n",
    "df_users = pd.read_csv('user_artists.dat', header=0, sep='\\t', usecols=[0,1])\n",
    "\n",
    "m = np.loadtxt('matrix.txt')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [],
   "source": [
    "df_artists = df_artists.join(df_tags.set_index('artistID'), on='artistID')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>artistID</th>\n",
       "      <th>freq</th>\n",
       "      <th>name</th>\n",
       "      <th>tag1</th>\n",
       "      <th>tag2</th>\n",
       "      <th>tag3</th>\n",
       "      <th>tag4</th>\n",
       "      <th>tag5</th>\n",
       "      <th>tag6</th>\n",
       "      <th>tag7</th>\n",
       "      <th>tag8</th>\n",
       "      <th>tag9</th>\n",
       "      <th>tag10</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>89</td>\n",
       "      <td>611</td>\n",
       "      <td>lady gaga</td>\n",
       "      <td>pop</td>\n",
       "      <td>dance</td>\n",
       "      <td>electronic</td>\n",
       "      <td>electropop</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>289</td>\n",
       "      <td>522</td>\n",
       "      <td>britney spears</td>\n",
       "      <td>pop</td>\n",
       "      <td>dance</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>288</td>\n",
       "      <td>484</td>\n",
       "      <td>rihanna</td>\n",
       "      <td>pop</td>\n",
       "      <td>rnb</td>\n",
       "      <td>dance</td>\n",
       "      <td>hip-hop</td>\n",
       "      <td>reggae</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>227</td>\n",
       "      <td>480</td>\n",
       "      <td>the beatles</td>\n",
       "      <td>classic rock</td>\n",
       "      <td>rock</td>\n",
       "      <td>pop</td>\n",
       "      <td>psychedelic</td>\n",
       "      <td>psychedelic rock</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>300</td>\n",
       "      <td>473</td>\n",
       "      <td>katy perry</td>\n",
       "      <td>pop</td>\n",
       "      <td>pop rock</td>\n",
       "      <td>indie</td>\n",
       "      <td>rock</td>\n",
       "      <td>dance</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   artistID  freq            name          tag1      tag2        tag3  \\\n",
       "0        89   611       lady gaga           pop     dance  electronic   \n",
       "1       289   522  britney spears           pop     dance         NaN   \n",
       "2       288   484         rihanna           pop       rnb       dance   \n",
       "3       227   480     the beatles  classic rock      rock         pop   \n",
       "4       300   473      katy perry           pop  pop rock       indie   \n",
       "\n",
       "          tag4              tag5 tag6 tag7 tag8 tag9 tag10  \n",
       "0   electropop               NaN  NaN  NaN  NaN  NaN   NaN  \n",
       "1          NaN               NaN  NaN  NaN  NaN  NaN   NaN  \n",
       "2      hip-hop            reggae  NaN  NaN  NaN  NaN   NaN  \n",
       "3  psychedelic  psychedelic rock  NaN  NaN  NaN  NaN   NaN  \n",
       "4         rock             dance  NaN  NaN  NaN  NaN   NaN  "
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_artists.head()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### NetworkX"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "def generate_graph(matrix, df_artists, threshold):\n",
    "    graph = nx.Graph()\n",
    "    num = len(df_artists.index)\n",
    "    #num=1000\n",
    "    for index, artistA in df_artists[:num].iterrows():\n",
    "        graph.add_node(artistA['name'], attr_dict = {'genre1': artistA['tag1'],\n",
    "                                                     'genre2': artistA['tag2'],\n",
    "                                                     'genre3': artistA['tag3'], \n",
    "                                                     'freq': artistA['freq']})\n",
    "\n",
    "    i = 0\n",
    "    for index, artistA in df_artists[:num].iterrows():\n",
    "        for j in range(i+1, num):\n",
    "            artistB = df_artists.iloc[j]\n",
    "            w = matrix[i][j]\n",
    "            if w > threshold:\n",
    "                graph.add_edge(artistA['name'], artistB['name'], weight = w)\n",
    "                \n",
    "        i += 1\n",
    "    return graph"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [],
   "source": [
    "G = generate_graph(m, df_artists, 0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "204520"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G.number_of_edges()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "NodeDataView({'lady gaga': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'electronic', 'freq': 611}}, 'britney spears': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': nan, 'freq': 522}}, 'rihanna': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'dance', 'freq': 484}}, 'the beatles': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'pop', 'freq': 480}}, 'katy perry': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'indie', 'freq': 473}}, 'madonna': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'electronic', 'freq': 429}}, 'avril lavigne': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'rock', 'freq': 417}}, 'christina aguilera': {'attr_dict': {'genre1': 'pop', 'genre2': 'soul', 'genre3': 'rnb', 'freq': 407}}, 'muse': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 400}}, 'paramore': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop punk', 'genre3': 'alternative', 'freq': 399}}, 'beyoncé': {'attr_dict': {'genre1': 'rnb', 'genre2': 'pop', 'genre3': 'soul', 'freq': 397}}, 'radiohead': {'attr_dict': {'genre1': 'alternative', 'genre2': 'alternative rock', 'genre3': 'rock', 'freq': 393}}, 'coldplay': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'britpop', 'freq': 369}}, 'ke$ha': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'electropop', 'freq': 362}}, 'shakira': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': 'dance', 'freq': 319}}, 'p!nk': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'rock', 'freq': 305}}, 'the killers': {'attr_dict': {'genre1': 'indie', 'genre2': 'rock', 'genre3': 'indie rock', 'freq': 304}}, 'black eyed peas': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'pop', 'genre3': 'rnb', 'freq': 304}}, 'kylie minogue': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'electronic', 'freq': 298}}, 'miley cyrus': {'attr_dict': {'genre1': 'pop', 'genre2': 'disney', 'genre3': 'dance', 'freq': 286}}, 'depeche mode': {'attr_dict': {'genre1': 'electronic', 'genre2': 'new wave', 'genre3': 'synth pop', 'freq': 282}}, 'linkin park': {'attr_dict': {'genre1': 'rock', 'genre2': 'nu metal', 'genre3': 'alternative rock', 'freq': 280}}, 'michael jackson': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'soul', 'freq': 266}}, 'kelly clarkson': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'rock', 'freq': 260}}, 'nirvana': {'attr_dict': {'genre1': 'grunge', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 258}}, 'pink floyd': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'classic rock', 'genre3': 'psychedelic rock', 'freq': 258}}, 'glee cast': {'attr_dict': {'genre1': 'musical', 'genre2': 'soundtrack', 'genre3': 'pop', 'freq': 249}}, 'arctic monkeys': {'attr_dict': {'genre1': 'indie rock', 'genre2': 'indie', 'genre3': 'rock', 'freq': 248}}, 'taylor swift': {'attr_dict': {'genre1': 'country', 'genre2': 'pop', 'genre3': 'country pop', 'freq': 247}}, 'lily allen': {'attr_dict': {'genre1': 'pop', 'genre2': 'britpop', 'genre3': 'ska', 'freq': 243}}, 'placebo': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'alternative', 'genre3': 'rock', 'freq': 242}}, 'mariah carey': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'soul', 'freq': 241}}, 'green day': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 236}}, 'kings of leon': {'attr_dict': {'genre1': 'rock', 'genre2': 'indie', 'genre3': 'indie rock', 'freq': 235}}, 'the pussycat dolls': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'dance', 'freq': 233}}, 'the cure': {'attr_dict': {'genre1': 'post-punk', 'genre2': 'new wave', 'genre3': 'alternative', 'freq': 229}}, 'evanescence': {'attr_dict': {'genre1': 'rock', 'genre2': 'gothic rock', 'genre3': 'gothic', 'freq': 226}}, 'metallica': {'attr_dict': {'genre1': 'thrash metal', 'genre2': 'metal', 'genre3': 'heavy metal', 'freq': 224}}, 'red hot chili peppers': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 222}}, '30 seconds to mars': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 216}}, 'oasis': {'attr_dict': {'genre1': 'britpop', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 210}}, 'jennifer lopez': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'dance', 'freq': 209}}, 'queen': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'hard rock', 'freq': 208}}, 'eminem': {'attr_dict': {'genre1': 'rap', 'genre2': 'hip-hop', 'genre3': 'pop', 'freq': 204}}, 'david bowie': {'attr_dict': {'genre1': 'rock', 'genre2': 'glam rock', 'genre3': 'classic rock', 'freq': 198}}, 'led zeppelin': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'hard rock', 'freq': 196}}, 'amy winehouse': {'attr_dict': {'genre1': 'soul', 'genre2': 'jazz', 'genre3': 'pop', 'freq': 195}}, 'u2': {'attr_dict': {'genre1': 'rock', 'genre2': 'classic rock', 'genre3': 'pop', 'freq': 185}}, 'the strokes': {'attr_dict': {'genre1': 'indie rock', 'genre2': 'rock', 'genre3': 'indie', 'freq': 184}}, 'ashley tisdale': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'disney', 'freq': 182}}, 'system of a down': {'attr_dict': {'genre1': 'metal', 'genre2': 'alternative metal', 'genre3': 'rock', 'freq': 181}}, 'ac/dc': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 180}}, 'iron maiden': {'attr_dict': {'genre1': 'heavy metal', 'genre2': 'metal', 'genre3': 'hard rock', 'freq': 177}}, 'franz ferdinand': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'rock', 'freq': 173}}, 'björk': {'attr_dict': {'genre1': 'electronic', 'genre2': 'alternative', 'genre3': 'experimental', 'freq': 172}}, 'hilary duff': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'rock', 'freq': 169}}, 'foo fighters': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'grunge', 'freq': 164}}, 'the smiths': {'attr_dict': {'genre1': 'indie', 'genre2': 'post-punk', 'genre3': 'new wave', 'freq': 162}}, 'nelly furtado': {'attr_dict': {'genre1': 'pop', 'genre2': 'folk', 'genre3': 'rnb', 'freq': 161}}, \"guns n' roses\": {'attr_dict': {'genre1': 'hard rock', 'genre2': 'rock', 'genre3': 'classic rock', 'freq': 161}}, 'leona lewis': {'attr_dict': {'genre1': 'pop', 'genre2': 'soul', 'genre3': 'rnb', 'freq': 160}}, 'florence + the machine': {'attr_dict': {'genre1': 'indie', 'genre2': 'alternative', 'genre3': 'indie pop', 'freq': 159}}, 'my chemical romance': {'attr_dict': {'genre1': 'rock', 'genre2': 'emo', 'genre3': 'alternative', 'freq': 157}}, 'david guetta': {'attr_dict': {'genre1': 'house', 'genre2': 'dance', 'genre3': 'electronic', 'freq': 155}}, 'sigur rós': {'attr_dict': {'genre1': 'post-rock', 'genre2': 'ambient', 'genre3': 'alternative', 'freq': 153}}, 'adam lambert': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': 'pop rock', 'freq': 153}}, '3oh!3': {'attr_dict': {'genre1': 'electronic', 'genre2': 'hip-hop', 'genre3': 'crunk', 'freq': 152}}, 'daft punk': {'attr_dict': {'genre1': 'electronic', 'genre2': 'dance', 'genre3': 'house', 'freq': 151}}, 'blink-182': {'attr_dict': {'genre1': 'punk', 'genre2': 'pop punk', 'genre3': 'rock', 'freq': 150}}, 'alicia keys': {'attr_dict': {'genre1': 'soul', 'genre2': 'rnb', 'genre3': 'pop', 'freq': 148}}, 'gwen stefani': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'rock', 'freq': 145}}, 'selena gomez & the scene': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'disney', 'freq': 143}}, 'mgmt': {'attr_dict': {'genre1': 'electronic', 'genre2': 'indie', 'genre3': 'psychedelic', 'freq': 143}}, 'joy division': {'attr_dict': {'genre1': 'post-punk', 'genre2': 'new wave', 'genre3': 'alternative', 'freq': 141}}, 'rammstein': {'attr_dict': {'genre1': 'industrial metal', 'genre2': 'metal', 'genre3': 'industrial', 'freq': 140}}, 'justin timberlake': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'dance', 'freq': 140}}, 'maroon 5': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop', 'genre3': 'pop rock', 'freq': 140}}, 'the doors': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'psychedelic rock', 'genre3': 'rock', 'freq': 139}}, 'nine inch nails': {'attr_dict': {'genre1': 'industrial', 'genre2': 'industrial rock', 'genre3': 'rock', 'freq': 138}}, 'panic! at the disco': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'emo', 'freq': 135}}, 'death cab for cutie': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 134}}, 'kanye west': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'rnb', 'freq': 134}}, 'marilyn manson': {'attr_dict': {'genre1': 'industrial', 'genre2': 'industrial metal', 'genre3': 'metal', 'freq': 133}}, 'alanis morissette': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'pop', 'freq': 131}}, 'the rolling stones': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'blues', 'freq': 131}}, 'fall out boy': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'rock', 'genre3': 'emo', 'freq': 130}}, 'the kooks': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'britpop', 'freq': 130}}, 'keane': {'attr_dict': {'genre1': 'britpop', 'genre2': 'indie', 'genre3': 'alternative', 'freq': 129}}, 'yeah yeah yeahs': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 128}}, 'demi lovato': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'disney', 'freq': 128}}, 'ashlee simpson': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'rock', 'freq': 128}}, 'arcade fire': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 128}}, 'cheryl cole': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'rnb', 'freq': 128}}, 'black sabbath': {'attr_dict': {'genre1': 'heavy metal', 'genre2': 'hard rock', 'genre3': 'classic rock', 'freq': 126}}, 'adele': {'attr_dict': {'genre1': 'soul', 'genre2': 'indie', 'genre3': 'pop', 'freq': 126}}, 'the veronicas': {'attr_dict': {'genre1': 'pop rock', 'genre2': 'pop', 'genre3': 'rock', 'freq': 126}}, 'lindsay lohan': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'dance', 'freq': 125}}, 'interpol': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'post-punk', 'freq': 125}}, 'gorillaz': {'attr_dict': {'genre1': 'alternative', 'genre2': 'electronic', 'genre3': 'hip-hop', 'freq': 124}}, 'the smashing pumpkins': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 124}}, 'pearl jam': {'attr_dict': {'genre1': 'grunge', 'genre2': 'rock', 'genre3': 'alternative rock', 'freq': 124}}, 'the pretty reckless': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'post-grunge', 'freq': 123}}, 'enrique iglesias': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'latin pop', 'freq': 121}}, 'pixie lott': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'soul', 'freq': 118}}, 'avenged sevenfold': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'metal', 'genre3': 'hard rock', 'freq': 118}}, 'snow patrol': {'attr_dict': {'genre1': 'indie', 'genre2': 'alternative', 'genre3': 'rock', 'freq': 115}}, 'queens of the stone age': {'attr_dict': {'genre1': 'stoner', 'genre2': 'rock', 'genre3': 'alternative rock', 'freq': 115}}, 'blur': {'attr_dict': {'genre1': 'britpop', 'genre2': 'rock', 'genre3': 'indie', 'freq': 114}}, 'nickelback': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'hard rock', 'freq': 112}}, 'slipknot': {'attr_dict': {'genre1': 'nu metal', 'genre2': 'metal', 'genre3': 'heavy metal', 'freq': 112}}, 'massive attack': {'attr_dict': {'genre1': 'trip-hop', 'genre2': 'electronic', 'genre3': 'chillout', 'freq': 111}}, 'duran duran': {'attr_dict': {'genre1': 'new wave', 'genre2': 'pop', 'genre3': 'synth pop', 'freq': 111}}, 'crystal castles': {'attr_dict': {'genre1': 'electronic', 'genre2': '8-bit', 'genre3': 'new rave', 'freq': 110}}, 'bob dylan': {'attr_dict': {'genre1': 'folk', 'genre2': 'classic rock', 'genre3': 'folk rock', 'freq': 108}}, 't.a.t.u.': {'attr_dict': {'genre1': 'pop', 'genre2': 'electronic', 'genre3': 'dance', 'freq': 108}}, 'portishead': {'attr_dict': {'genre1': 'trip-hop', 'genre2': 'electronic', 'genre3': 'chillout', 'freq': 107}}, 'the white stripes': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'alternative rock', 'freq': 107}}, 'new order': {'attr_dict': {'genre1': 'new wave', 'genre2': 'electronic', 'genre3': 'post-punk', 'freq': 107}}, 'cobra starship': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'alternative', 'genre3': 'rock', 'freq': 107}}, 'ciara': {'attr_dict': {'genre1': 'rnb', 'genre2': 'hip-hop', 'genre3': 'pop', 'freq': 106}}, 'nicole scherzinger': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'hip-hop', 'freq': 105}}, 'timbaland': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rnb', 'genre3': 'rap', 'freq': 104}}, 'megadeth': {'attr_dict': {'genre1': 'thrash metal', 'genre2': 'heavy metal', 'genre3': 'metal', 'freq': 104}}, 'ramones': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'classic rock', 'freq': 104}}, 'nightwish': {'attr_dict': {'genre1': 'symphonic metal', 'genre2': 'power metal', 'genre3': 'gothic metal', 'freq': 103}}, 'justin bieber': {'attr_dict': {'genre1': 'pop', 'genre2': 'black metal', 'genre3': 'rnb', 'freq': 100}}, 'within temptation': {'attr_dict': {'genre1': 'symphonic metal', 'genre2': 'gothic metal', 'genre3': 'metal', 'freq': 98}}, 'a-ha': {'attr_dict': {'genre1': 'pop', 'genre2': 'new wave', 'genre3': 'synth pop', 'freq': 97}}, 'korn': {'attr_dict': {'genre1': 'nu metal', 'genre2': 'metal', 'genre3': 'alternative', 'freq': 96}}, 'fergie': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'hip-hop', 'freq': 96}}, 'r.e.m.': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 96}}, 'elvis presley': {'attr_dict': {'genre1': 'rock n roll', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 95}}, 'incubus': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 95}}, 'backstreet boys': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'pop rock', 'freq': 95}}, 'los hermanos': {'attr_dict': {'genre1': 'mpb', 'genre2': 'alternative rock', 'genre3': 'rock', 'freq': 95}}, 'pet shop boys': {'attr_dict': {'genre1': 'synth pop', 'genre2': 'pop', 'genre3': 'electronic', 'freq': 93}}, 'regina spektor': {'attr_dict': {'genre1': 'indie', 'genre2': 'alternative', 'genre3': 'folk', 'freq': 92}}, 'the who': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'hard rock', 'freq': 92}}, 'the clash': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'classic rock', 'freq': 92}}, 'good charlotte': {'attr_dict': {'genre1': 'punk', 'genre2': 'pop punk', 'genre3': 'rock', 'freq': 91}}, 'usher': {'attr_dict': {'genre1': 'rnb', 'genre2': 'hip-hop', 'genre3': 'pop', 'freq': 91}}, 'mika': {'attr_dict': {'genre1': 'pop', 'genre2': 'britpop', 'genre3': 'electronic', 'freq': 91}}, 'aerosmith': {'attr_dict': {'genre1': 'rock', 'genre2': 'classic rock', 'genre3': 'hard rock', 'freq': 91}}, 'janet jackson': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'dance', 'freq': 91}}, 'la roux': {'attr_dict': {'genre1': 'electropop', 'genre2': 'electronic', 'genre3': 'synth pop', 'freq': 89}}, 'jordin sparks': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'soul', 'freq': 89}}, 'kasabian': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 89}}, 'owl city': {'attr_dict': {'genre1': 'electronic', 'genre2': 'indie', 'genre3': 'power pop', 'freq': 89}}, 'three days grace': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 89}}, 'weezer': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'alternative rock', 'freq': 88}}, 'nicki minaj': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'rnb', 'freq': 87}}, 'pitty': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 87}}, 'simple plan': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop punk', 'genre3': 'punk', 'freq': 86}}, 'judas priest': {'attr_dict': {'genre1': 'heavy metal', 'genre2': 'metal', 'genre3': 'hard rock', 'freq': 86}}, 'moby': {'attr_dict': {'genre1': 'electronic', 'genre2': 'ambient', 'genre3': 'chillout', 'freq': 85}}, 'robyn': {'attr_dict': {'genre1': 'pop', 'genre2': 'electronic', 'genre3': 'dance', 'freq': 85}}, 'the offspring': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 85}}, 'bloc party': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 85}}, 'beck': {'attr_dict': {'genre1': 'alternative', 'genre2': 'indie', 'genre3': 'rock', 'freq': 84}}, 'bon jovi': {'attr_dict': {'genre1': 'rock', 'genre2': 'hard rock', 'genre3': 'classic rock', 'freq': 84}}, 'jay-z': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'east coast rap', 'freq': 83}}, 'garbage': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'alternative rock', 'freq': 83}}, \"destiny's child\": {'attr_dict': {'genre1': 'rnb', 'genre2': 'pop', 'genre3': 'soul', 'freq': 83}}, 'sum 41': {'attr_dict': {'genre1': 'punk', 'genre2': 'pop punk', 'genre3': 'rock', 'freq': 83}}, 'kiss': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'classic rock', 'genre3': 'glam rock', 'freq': 82}}, 'boys like girls': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'alternative', 'genre3': 'rock', 'freq': 82}}, 'the xx': {'attr_dict': {'genre1': 'indie', 'genre2': 'electronic', 'genre3': 'post-punk', 'freq': 82}}, 'goldfrapp': {'attr_dict': {'genre1': 'electronic', 'genre2': 'trip-hop', 'genre3': 'dance', 'freq': 82}}, 'bullet for my valentine': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'metal', 'genre3': 'hardcore', 'freq': 82}}, 'onerepublic': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop rock', 'genre3': 'alternative', 'freq': 82}}, 'jonas brothers': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'disney', 'freq': 82}}, 'céline dion': {'attr_dict': {'genre1': 'pop', 'genre2': 'soul', 'genre3': 'easy listening', 'freq': 82}}, 'cansei de ser sexy': {'attr_dict': {'genre1': 'electronic', 'genre2': 'indie', 'genre3': 'alternative', 'freq': 82}}, 'sugababes': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'rnb', 'freq': 81}}, 'natasha bedingfield': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'alternative', 'freq': 81}}, 'rise against': {'attr_dict': {'genre1': 'punk', 'genre2': 'melodic hardcore', 'genre3': 'hardcore', 'freq': 81}}, 'cascada': {'attr_dict': {'genre1': 'dance', 'genre2': 'trance', 'genre3': 'techno', 'freq': 81}}, 'slayer': {'attr_dict': {'genre1': 'thrash metal', 'genre2': 'metal', 'genre3': 'speed metal', 'freq': 81}}, 'alice in chains': {'attr_dict': {'genre1': 'grunge', 'genre2': 'rock', 'genre3': 'alternative rock', 'freq': 80}}, 'm.i.a.': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'electronic', 'genre3': 'dance', 'freq': 80}}, 'duffy': {'attr_dict': {'genre1': 'soul', 'genre2': 'pop', 'genre3': 'britpop', 'freq': 80}}, 'the ting tings': {'attr_dict': {'genre1': 'indie', 'genre2': 'electronic', 'genre3': 'electropop', 'freq': 80}}, 'kate nash': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie pop', 'genre3': 'pop', 'freq': 80}}, 'tool': {'attr_dict': {'genre1': 'progressive metal', 'genre2': 'progressive rock', 'genre3': 'metal', 'freq': 80}}, 'belle and sebastian': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie pop', 'genre3': 'alternative', 'freq': 79}}, 'chris brown': {'attr_dict': {'genre1': 'rnb', 'genre2': 'hip-hop', 'genre3': 'rap', 'freq': 79}}, 'john mayer': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop', 'genre3': 'acoustic rock', 'freq': 79}}, 'vampire weekend': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'indie pop', 'freq': 78}}, 'papa roach': {'attr_dict': {'genre1': 'rock', 'genre2': 'nu metal', 'genre3': 'alternative rock', 'freq': 78}}, 'the fray': {'attr_dict': {'genre1': 'alternative', 'genre2': 'rock', 'genre3': 'piano rock', 'freq': 78}}, 'all time low': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'rock', 'genre3': 'power pop', 'freq': 77}}, 'klaxons': {'attr_dict': {'genre1': 'new rave', 'genre2': 'indie', 'genre3': 'electronic', 'freq': 77}}, 'pixies': {'attr_dict': {'genre1': 'alternative', 'genre2': 'indie', 'genre3': 'rock', 'freq': 77}}, 'robbie williams': {'attr_dict': {'genre1': 'pop', 'genre2': 'britpop', 'genre3': 'rock', 'freq': 77}}, 'a day to remember': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'hardcore', 'genre3': 'pop punk', 'freq': 77}}, 'ellie goulding': {'attr_dict': {'genre1': 'electronic', 'genre2': 'indie', 'genre3': 'indie pop', 'freq': 77}}, 'scorpions': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 76}}, 'deep purple': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 76}}, 'carrie underwood': {'attr_dict': {'genre1': 'country', 'genre2': 'pop', 'genre3': 'country pop', 'freq': 76}}, 'the prodigy': {'attr_dict': {'genre1': 'electronic', 'genre2': 'techno', 'genre3': 'industrial', 'freq': 76}}, 'dream theater': {'attr_dict': {'genre1': 'progressive metal', 'genre2': 'progressive rock', 'genre3': 'metal', 'freq': 76}}, 'vanessa hudgens': {'attr_dict': {'genre1': 'pop', 'genre2': 'disney', 'genre3': 'rnb', 'freq': 76}}, 'keri hilson': {'attr_dict': {'genre1': 'rnb', 'genre2': 'pop', 'genre3': 'hip-hop', 'freq': 75}}, 'kaiser chiefs': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'britpop', 'freq': 75}}, 'elliott smith': {'attr_dict': {'genre1': 'indie', 'genre2': 'folk', 'genre3': 'indie rock', 'freq': 75}}, 'the all-american rejects': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'pop punk', 'freq': 75}}, 'air': {'attr_dict': {'genre1': 'electronic', 'genre2': 'chillout', 'genre3': 'ambient', 'freq': 75}}, 'beirut': {'attr_dict': {'genre1': 'folk', 'genre2': 'indie', 'genre3': 'indie folk', 'freq': 75}}, 'johnny cash': {'attr_dict': {'genre1': 'country', 'genre2': 'folk', 'genre3': 'classic rock', 'freq': 74}}, 'rbd': {'attr_dict': {'genre1': 'pop', 'genre2': 'latin pop', 'genre3': 'rock', 'freq': 73}}, 'abba': {'attr_dict': {'genre1': 'pop', 'genre2': 'disco', 'genre3': 'dance', 'freq': 73}}, 'the used': {'attr_dict': {'genre1': 'emo', 'genre2': 'screamo', 'genre3': 'rock', 'freq': 73}}, 'him': {'attr_dict': {'genre1': 'gothic rock', 'genre2': 'rock', 'genre3': 'metal', 'freq': 73}}, 'jack johnson': {'attr_dict': {'genre1': 'alternative', 'genre2': 'rock', 'genre3': 'folk', 'freq': 73}}, 'pantera': {'attr_dict': {'genre1': 'thrash metal', 'genre2': 'metal', 'genre3': 'groove metal', 'freq': 72}}, 'bring me the horizon': {'attr_dict': {'genre1': 'deathcore', 'genre2': 'metalcore', 'genre3': 'hardcore', 'freq': 72}}, 'bruno mars': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'soul', 'freq': 72}}, 'motörhead': {'attr_dict': {'genre1': 'heavy metal', 'genre2': 'hard rock', 'genre3': 'metal', 'freq': 71}}, 'porcupine tree': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'progressive metal', 'genre3': 'psychedelic', 'freq': 71}}, 'röyksopp': {'attr_dict': {'genre1': 'electronic', 'genre2': 'chillout', 'genre3': 'ambient', 'freq': 71}}, 'flyleaf': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 70}}, 'the cranberries': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'alternative rock', 'freq': 70}}, 'hurts': {'attr_dict': {'genre1': 'synth pop', 'genre2': 'electronic', 'genre3': 'new wave', 'freq': 70}}, 'jessie j': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'dance', 'freq': 70}}, 'jimi hendrix': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'blues', 'freq': 70}}, 'lifehouse': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 69}}, 'mcfly': {'attr_dict': {'genre1': 'pop rock', 'genre2': 'pop', 'genre3': 'rock', 'freq': 69}}, 'breaking benjamin': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'rock', 'genre3': 'hard rock', 'freq': 69}}, 'phoenix': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie pop', 'genre3': 'electronic', 'freq': 69}}, 'boards of canada': {'attr_dict': {'genre1': 'ambient', 'genre2': 'electronic', 'genre3': 'idm', 'freq': 69}}, 'escape the fate': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'screamo', 'genre3': 'emo', 'freq': 69}}, 'colbie caillat': {'attr_dict': {'genre1': 'pop', 'genre2': 'indie', 'genre3': 'folk', 'freq': 69}}, 'taio cruz': {'attr_dict': {'genre1': 'rnb', 'genre2': 'pop', 'genre3': 'hip-hop', 'freq': 69}}, 'yann tiersen': {'attr_dict': {'genre1': 'instrumental', 'genre2': 'soundtrack', 'genre3': 'classical', 'freq': 69}}, 'travis': {'attr_dict': {'genre1': 'britpop', 'genre2': 'indie', 'genre3': 'rock', 'freq': 69}}, 'rage against the machine': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 68}}, 'little boots': {'attr_dict': {'genre1': 'electronic', 'genre2': 'dance', 'genre3': 'disco', 'freq': 68}}, 'kerli': {'attr_dict': {'genre1': 'alternative', 'genre2': 'pop', 'genre3': 'rock', 'freq': 68}}, 'opeth': {'attr_dict': {'genre1': 'progressive metal', 'genre2': 'technical death metal', 'genre3': 'death metal', 'freq': 68}}, 'the velvet underground': {'attr_dict': {'genre1': 'rock', 'genre2': 'classic rock', 'genre3': 'psychedelic', 'freq': 67}}, 'deftones': {'attr_dict': {'genre1': 'nu metal', 'genre2': 'metal', 'genre3': 'alternative', 'freq': 67}}, 'anahí': {'attr_dict': {'genre1': 'pop', 'genre2': 'latin pop', 'genre3': 'dance', 'freq': 67}}, 'girls aloud': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'electronic', 'freq': 67}}, 'in flames': {'attr_dict': {'genre1': 'melodic death metal', 'genre2': 'metal', 'genre3': 'death metal', 'freq': 67}}, 'sophie ellis-bextor': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'electronic', 'freq': 66}}, 'iamx': {'attr_dict': {'genre1': 'electronic', 'genre2': 'synth pop', 'genre3': 'alternative', 'freq': 66}}, 'ozzy osbourne': {'attr_dict': {'genre1': 'heavy metal', 'genre2': 'hard rock', 'genre3': 'metal', 'freq': 66}}, 'creedence clearwater revival': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'southern rock', 'freq': 65}}, 'aphex twin': {'attr_dict': {'genre1': 'electronic', 'genre2': 'idm', 'genre3': 'ambient', 'freq': 65}}, 'belinda': {'attr_dict': {'genre1': 'pop', 'genre2': 'latin pop', 'genre3': 'dance', 'freq': 65}}, 'jessica simpson': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'country', 'freq': 64}}, 'john lennon': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'pop', 'freq': 64}}, 'tori amos': {'attr_dict': {'genre1': 'alternative', 'genre2': 'rock', 'genre3': 'indie', 'freq': 63}}, 'fresno': {'attr_dict': {'genre1': 'rock', 'genre2': 'emo', 'genre3': 'hardcore', 'freq': 63}}, 'boa': {'attr_dict': {'genre1': 'j-pop', 'genre2': 'k-pop', 'genre3': 'j-pop ', 'freq': 63}}, 'marina & the diamonds': {'attr_dict': {'genre1': 'indie pop', 'genre2': 'indie', 'genre3': 'electronic', 'freq': 62}}, 'kelly rowland': {'attr_dict': {'genre1': 'rnb', 'genre2': 'pop', 'genre3': 'soul', 'freq': 62}}, 'a perfect circle': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'progressive rock', 'genre3': 'rock', 'freq': 62}}, 'b.o.b': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'southern rap', 'freq': 61}}, 'feist': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie pop', 'genre3': 'alternative', 'freq': 61}}, 'james blunt': {'attr_dict': {'genre1': 'pop', 'genre2': 'indie', 'genre3': 'rock', 'freq': 61}}, 'legião urbana': {'attr_dict': {'genre1': 'rock', 'genre2': 'post-punk', 'genre3': 'mpb', 'freq': 61}}, 'the saturdays': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'electronic', 'freq': 60}}, 'jojo': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'soul', 'freq': 60}}, 'disturbed': {'attr_dict': {'genre1': 'metal', 'genre2': 'nu metal', 'genre3': 'hard rock', 'freq': 60}}, 'jason mraz': {'attr_dict': {'genre1': 'pop', 'genre2': 'alternative', 'genre3': 'rock', 'freq': 60}}, 'morrissey': {'attr_dict': {'genre1': 'indie', 'genre2': 'alternative', 'genre3': 'rock', 'freq': 60}}, 'spice girls': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'britpop', 'freq': 60}}, 'sufjan stevens': {'attr_dict': {'genre1': 'indie', 'genre2': 'folk', 'genre3': 'alternative', 'freq': 59}}, 'modest mouse': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 59}}, 'sonic youth': {'attr_dict': {'genre1': 'alternative', 'genre2': 'experimental', 'genre3': 'post-punk', 'freq': 59}}, 'cyndi lauper': {'attr_dict': {'genre1': 'pop', 'genre2': 'new wave', 'genre3': 'rock', 'freq': 58}}, 'no doubt': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop', 'genre3': 'ska', 'freq': 58}}, 'the police': {'attr_dict': {'genre1': 'rock', 'genre2': 'classic rock', 'genre3': 'new wave', 'freq': 58}}, 'the libertines': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'rock', 'freq': 58}}, 'dave gahan': {'attr_dict': {'genre1': 'electronic', 'genre2': 'synth pop', 'genre3': 'new wave', 'freq': 58}}, 'bat for lashes': {'attr_dict': {'genre1': 'indie', 'genre2': 'alternative', 'genre3': 'folk', 'freq': 57}}, 'cat power': {'attr_dict': {'genre1': 'indie', 'genre2': 'folk', 'genre3': 'alternative', 'freq': 57}}, 'leighton meester': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'indie', 'freq': 57}}, 'dido': {'attr_dict': {'genre1': 'pop', 'genre2': 'chillout', 'genre3': 'alternative', 'freq': 57}}, 'explosions in the sky': {'attr_dict': {'genre1': 'post-rock', 'genre2': 'instrumental', 'genre3': 'ambient', 'freq': 57}}, 't.i.': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'southern rap', 'freq': 57}}, 'ne-yo': {'attr_dict': {'genre1': 'rnb', 'genre2': 'soul', 'genre3': 'hip-hop', 'freq': 56}}, 'ladytron': {'attr_dict': {'genre1': 'electronic', 'genre2': 'electroclash', 'genre3': 'electropop', 'freq': 56}}, 'apocalyptica': {'attr_dict': {'genre1': 'symphonic metal', 'genre2': 'instrumental', 'genre3': 'metal', 'freq': 56}}, 'sia': {'attr_dict': {'genre1': 'chillout', 'genre2': 'indie', 'genre3': 'trip-hop', 'freq': 56}}, 'manic street preachers': {'attr_dict': {'genre1': 'rock', 'genre2': 'britpop', 'genre3': 'alternative rock', 'freq': 56}}, 'the beach boys': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'pop', 'genre3': 'rock', 'freq': 55}}, '3 doors down': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 55}}, 'the national': {'attr_dict': {'genre1': 'indie rock', 'genre2': 'indie', 'genre3': 'alternative', 'freq': 55}}, 'animal collective': {'attr_dict': {'genre1': 'experimental', 'genre2': 'indie', 'genre3': 'freak folk', 'freq': 55}}, 'cher': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'rock', 'freq': 55}}, 'van halen': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 54}}, 'metric': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 54}}, 'norah jones': {'attr_dict': {'genre1': 'jazz', 'genre2': 'blues', 'genre3': 'pop', 'freq': 54}}, 'the kinks': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'pop', 'freq': 54}}, 'jesse mccartney': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'teen pop', 'freq': 54}}, 'eric clapton': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'blues', 'genre3': 'rock', 'freq': 53}}, 'children of bodom': {'attr_dict': {'genre1': 'melodic death metal', 'genre2': 'metal', 'genre3': 'death metal', 'freq': 53}}, 'justice': {'attr_dict': {'genre1': 'electronic', 'genre2': 'dance', 'genre3': 'house', 'freq': 52}}, 'damien rice': {'attr_dict': {'genre1': 'indie', 'genre2': 'folk', 'genre3': 'alternative', 'freq': 52}}, 'limp bizkit': {'attr_dict': {'genre1': 'nu metal', 'genre2': 'rapcore', 'genre3': 'rock', 'freq': 52}}, 'tegan and sara': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie pop', 'genre3': 'alternative', 'freq': 52}}, 'lacuna coil': {'attr_dict': {'genre1': 'gothic metal', 'genre2': 'metal', 'genre3': 'gothic', 'freq': 52}}, 'paul mccartney': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'pop', 'freq': 52}}, 'tears for fears': {'attr_dict': {'genre1': 'new wave', 'genre2': 'pop', 'genre3': 'synth pop', 'freq': 52}}, 'faith no more': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 52}}, 'the last shadow puppets': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 51}}, 'emily osment': {'attr_dict': {'genre1': 'pop', 'genre2': 'disney', 'genre3': 'dance', 'freq': 51}}, 'alice cooper': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 51}}, 'the mars volta': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'experimental', 'genre3': 'rock', 'freq': 51}}, 'mötley crüe': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'heavy metal', 'genre3': 'glam metal', 'freq': 51}}, 'david archuleta': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'rnb', 'freq': 51}}, 'whitney houston': {'attr_dict': {'genre1': 'pop', 'genre2': 'soul', 'genre3': 'rnb', 'freq': 51}}, 'white lies': {'attr_dict': {'genre1': 'indie rock', 'genre2': 'post-punk', 'genre3': 'indie', 'freq': 51}}, 'the fratellis': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'rock', 'freq': 51}}, 'editors': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 50}}, 'tom waits': {'attr_dict': {'genre1': 'blues', 'genre2': 'experimental', 'genre3': 'rock', 'freq': 50}}, 'kings of convenience': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie pop', 'genre3': 'folk', 'freq': 50}}, 'hannah montana': {'attr_dict': {'genre1': 'pop', 'genre2': 'disney', 'genre3': 'pop rock', 'freq': 50}}, 'misfits': {'attr_dict': {'genre1': 'horror punk', 'genre2': 'punk', 'genre3': 'hardcore punk', 'freq': 50}}, 'bob marley': {'attr_dict': {'genre1': 'reggae', 'genre2': 'roots reggae', 'genre3': 'ska', 'freq': 50}}, 'erasure': {'attr_dict': {'genre1': 'synth pop', 'genre2': 'new wave', 'genre3': 'pop', 'freq': 50}}, 'roxette': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': 'pop rock', 'freq': 49}}, 'lady antebellum': {'attr_dict': {'genre1': 'country', 'genre2': 'contemporary country', 'genre3': 'country pop', 'freq': 49}}, 'atreyu': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'hardcore', 'genre3': 'metal', 'freq': 49}}, 'god is an astronaut': {'attr_dict': {'genre1': 'post-rock', 'genre2': 'instrumental', 'genre3': 'ambient', 'freq': 49}}, 'm83': {'attr_dict': {'genre1': 'electronic', 'genre2': 'shoegaze', 'genre3': 'post-rock', 'freq': 49}}, 'inxs': {'attr_dict': {'genre1': 'rock', 'genre2': 'new wave', 'genre3': 'pop', 'freq': 49}}, 'jimmy eat world': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'emo', 'freq': 48}}, 'alexisonfire': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'screamo', 'genre3': 'hardcore', 'freq': 48}}, 'afi': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 48}}, 'anathema': {'attr_dict': {'genre1': 'doom metal', 'genre2': 'progressive rock', 'genre3': 'progressive metal', 'freq': 48}}, 'enya': {'attr_dict': {'genre1': 'new age', 'genre2': 'celtic', 'genre3': 'ambient', 'freq': 48}}, 'scissor sisters': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'electronic', 'freq': 47}}, 'shania twain': {'attr_dict': {'genre1': 'country', 'genre2': 'pop', 'genre3': 'rock', 'freq': 46}}, 'audioslave': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'hard rock', 'freq': 46}}, 'billy talent': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 46}}, 'bruce springsteen': {'attr_dict': {'genre1': 'rock', 'genre2': 'classic rock', 'genre3': 'folk', 'freq': 46}}, 'michael bublé': {'attr_dict': {'genre1': 'jazz', 'genre2': 'swing', 'genre3': 'easy listening', 'freq': 46}}, 'mogwai': {'attr_dict': {'genre1': 'post-rock', 'genre2': 'instrumental', 'genre3': 'indie', 'freq': 46}}, 'yellowcard': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'pop punk', 'freq': 46}}, 'killswitch engage': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'metal', 'genre3': 'hardcore', 'freq': 46}}, 'aly & aj': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'disney', 'freq': 46}}, 'bad religion': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 46}}, 'stone sour': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'metal', 'genre3': 'alternative metal', 'freq': 46}}, 'blind guardian': {'attr_dict': {'genre1': 'power metal', 'genre2': 'speed metal', 'genre3': 'metal', 'freq': 46}}, 'lostprophets': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 46}}, 'kraftwerk': {'attr_dict': {'genre1': 'electronic', 'genre2': 'synth pop', 'genre3': 'experimental', 'freq': 45}}, \"lil' wayne\": {'attr_dict': {'genre1': 'rap', 'genre2': 'hip-hop', 'genre3': 'southern rap', 'freq': 45}}, 'skillet': {'attr_dict': {'genre1': 'christian rock', 'genre2': 'alternative rock', 'genre3': 'rock', 'freq': 45}}, 'blondie': {'attr_dict': {'genre1': 'new wave', 'genre2': 'rock', 'genre3': 'pop', 'freq': 45}}, 'hans zimmer': {'attr_dict': {'genre1': 'soundtrack', 'genre2': 'instrumental', 'genre3': 'classical', 'freq': 45}}, 'hot chip': {'attr_dict': {'genre1': 'electronic', 'genre2': 'indie', 'genre3': 'electropop', 'freq': 45}}, 'patrick wolf': {'attr_dict': {'genre1': 'indie', 'genre2': 'electronic', 'genre3': 'folk', 'freq': 45}}, 'kelis': {'attr_dict': {'genre1': 'rnb', 'genre2': 'hip-hop', 'genre3': 'pop', 'freq': 45}}, 'nx zero': {'attr_dict': {'genre1': 'rock', 'genre2': 'emo', 'genre3': 'hardcore', 'freq': 45}}, 'pj harvey': {'attr_dict': {'genre1': 'alternative', 'genre2': 'rock', 'genre3': 'indie', 'freq': 45}}, 'rush': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'classic rock', 'genre3': 'hard rock', 'freq': 44}}, 'frank sinatra': {'attr_dict': {'genre1': 'jazz', 'genre2': 'swing', 'genre3': 'easy listening', 'freq': 44}}, 'she wants revenge': {'attr_dict': {'genre1': 'post-punk', 'genre2': 'indie', 'genre3': 'alternative', 'freq': 44}}, 'bonobo': {'attr_dict': {'genre1': 'trip-hop', 'genre2': 'electronic', 'genre3': 'chillout', 'freq': 44}}, 'kid cudi': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'alternative hip-hop', 'freq': 44}}, 'far east movement': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'electronic', 'genre3': 'rap', 'freq': 43}}, 'the knife': {'attr_dict': {'genre1': 'electronic', 'genre2': 'synth pop', 'genre3': 'indie', 'freq': 43}}, 'jeffree star': {'attr_dict': {'genre1': 'electronic', 'genre2': 'dance', 'genre3': 'pop', 'freq': 43}}, 'george michael': {'attr_dict': {'genre1': 'pop', 'genre2': 'soul', 'genre3': 'dance', 'freq': 43}}, 'sepultura': {'attr_dict': {'genre1': 'thrash metal', 'genre2': 'metal', 'genre3': 'death metal', 'freq': 43}}, 'paris hilton': {'attr_dict': {'genre1': 'brutal death metal', 'genre2': 'pop', 'genre3': 'dance', 'freq': 43}}, 'siouxsie and the banshees': {'attr_dict': {'genre1': 'post-punk', 'genre2': 'new wave', 'genre3': 'gothic', 'freq': 43}}, 'the human league': {'attr_dict': {'genre1': 'new wave', 'genre2': 'synth pop', 'genre3': 'electronic', 'freq': 43}}, 'underoath': {'attr_dict': {'genre1': 'screamo', 'genre2': 'post-hardcore', 'genre3': 'hardcore', 'freq': 43}}, 'the devil wears prada': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'hardcore', 'genre3': 'screamo', 'freq': 43}}, 'kat deluna': {'attr_dict': {'genre1': 'rnb', 'genre2': 'pop', 'genre3': 'dancehall', 'freq': 43}}, 'bright eyes': {'attr_dict': {'genre1': 'indie', 'genre2': 'folk', 'genre3': 'indie rock', 'freq': 43}}, 'tokio hotel': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop rock', 'genre3': 'emo', 'freq': 43}}, 'thom yorke': {'attr_dict': {'genre1': 'electronic', 'genre2': 'alternative', 'genre3': 'experimental', 'freq': 42}}, 'alexandra burke': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'soul', 'freq': 42}}, 'pendulum': {'attr_dict': {'genre1': 'drum and bass', 'genre2': 'electronic', 'genre3': 'dance', 'freq': 42}}, 'the jimi hendrix experience': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'psychedelic rock', 'genre3': 'rock', 'freq': 42}}, 'martin l. gore': {'attr_dict': {'genre1': 'electronic', 'genre2': 'synth pop', 'genre3': 'new wave', 'freq': 42}}, 'metro station': {'attr_dict': {'genre1': 'electronic', 'genre2': 'power pop', 'genre3': 'indie', 'freq': 42}}, 'as i lay dying': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'hardcore', 'genre3': 'metal', 'freq': 42}}, 'whitesnake': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 42}}, 'the chemical brothers': {'attr_dict': {'genre1': 'electronic', 'genre2': 'dance', 'genre3': 'techno', 'freq': 42}}, 'band of horses': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 42}}, 'alesana': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'screamo', 'genre3': 'emo', 'freq': 42}}, 'she & him': {'attr_dict': {'genre1': 'folk', 'genre2': 'indie', 'genre3': 'indie pop', 'freq': 42}}, 'girlicious': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'dance', 'freq': 42}}, 'fleetwood mac': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'blues', 'freq': 42}}, 'daughtry': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 42}}, 'dire straits': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'blues', 'freq': 42}}, 'calvin harris': {'attr_dict': {'genre1': 'electronic', 'genre2': 'dance', 'genre3': 'disco', 'freq': 42}}, 'kate bush': {'attr_dict': {'genre1': 'pop', 'genre2': 'alternative', 'genre3': 'rock', 'freq': 42}}, 'enigma': {'attr_dict': {'genre1': 'new age', 'genre2': 'ambient', 'genre3': 'electronic', 'freq': 41}}, 'flo rida': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'southern rap', 'freq': 41}}, 'orchestral manoeuvres in the dark': {'attr_dict': {'genre1': 'new wave', 'genre2': 'synth pop', 'genre3': 'electronic', 'freq': 41}}, 'hey monday': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'pop rock', 'genre3': 'power pop', 'freq': 41}}, 'janis joplin': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'blues', 'genre3': 'rock', 'freq': 41}}, 'my bloody valentine': {'attr_dict': {'genre1': 'shoegaze', 'genre2': 'dream pop', 'genre3': 'indie', 'freq': 41}}, 'cut copy': {'attr_dict': {'genre1': 'electronic', 'genre2': 'indie', 'genre3': 'synth pop', 'freq': 41}}, 'jethro tull': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'classic rock', 'genre3': 'folk rock', 'freq': 40}}, 'enter shikari': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'trancecore', 'genre3': 'hardcore', 'freq': 40}}, 'babyshambles': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'rock', 'freq': 40}}, 'helloween': {'attr_dict': {'genre1': 'power metal', 'genre2': 'heavy metal', 'genre3': 'speed metal', 'freq': 40}}, 'simon & garfunkel': {'attr_dict': {'genre1': 'folk', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 40}}, 'lykke li': {'attr_dict': {'genre1': 'indie pop', 'genre2': 'electronic', 'genre3': 'pop', 'freq': 40}}, 'joss stone': {'attr_dict': {'genre1': 'soul', 'genre2': 'jazz', 'genre3': 'rnb', 'freq': 40}}, 'def leppard': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 40}}, 'neil young': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'folk', 'freq': 40}}, 'miranda cosgrove': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'rock', 'freq': 39}}, 'jeff buckley': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'indie', 'freq': 39}}, 'the verve': {'attr_dict': {'genre1': 'britpop', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 39}}, 'arch enemy': {'attr_dict': {'genre1': 'melodic death metal', 'genre2': 'death metal', 'genre3': 'metal', 'freq': 39}}, 'pink': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'rock', 'freq': 39}}, 'mindless self indulgence': {'attr_dict': {'genre1': 'industrial', 'genre2': 'punk', 'genre3': 'electronic', 'freq': 39}}, 'the rasmus': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 39}}, 'ana carolina': {'attr_dict': {'genre1': 'mpb', 'genre2': 'pop', 'genre3': 'alternative', 'freq': 38}}, 'fleet foxes': {'attr_dict': {'genre1': 'folk', 'genre2': 'indie', 'genre3': 'folk rock', 'freq': 38}}, 'elton john': {'attr_dict': {'genre1': 'pop', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 38}}, 'the kills': {'attr_dict': {'genre1': 'garage rock', 'genre2': 'indie', 'genre3': 'indie rock', 'freq': 38}}, 'natalia kills': {'attr_dict': {'genre1': 'pop', 'genre2': 'electronic', 'genre3': 'electropop', 'freq': 38}}, 'suede': {'attr_dict': {'genre1': 'britpop', 'genre2': 'indie', 'genre3': 'alternative', 'freq': 38}}, 'dio': {'attr_dict': {'genre1': 'heavy metal', 'genre2': 'hard rock', 'genre3': 'metal', 'freq': 38}}, 'creed': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'hard rock', 'freq': 38}}, 'laura pausini': {'attr_dict': {'genre1': 'pop', 'genre2': nan, 'genre3': nan, 'freq': 38}}, 'skid row': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'heavy metal', 'genre3': 'glam metal', 'freq': 38}}, 'imogen heap': {'attr_dict': {'genre1': 'indie', 'genre2': 'electronic', 'genre3': 'alternative', 'freq': 38}}, 'cocteau twins': {'attr_dict': {'genre1': 'dream pop', 'genre2': 'shoegaze', 'genre3': 'post-punk', 'freq': 38}}, 'the birthday massacre': {'attr_dict': {'genre1': 'industrial', 'genre2': 'gothic', 'genre3': 'electronic', 'freq': 38}}, 'the black keys': {'attr_dict': {'genre1': 'blues rock', 'genre2': 'blues', 'genre3': 'rock', 'freq': 38}}, 'selena gomez': {'attr_dict': {'genre1': 'pop', 'genre2': 'disney', 'genre3': 'pop rock', 'freq': 37}}, 'iron & wine': {'attr_dict': {'genre1': 'folk', 'genre2': 'indie', 'genre3': 'indie rock', 'freq': 37}}, 'the cardigans': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 37}}, 'sonata arctica': {'attr_dict': {'genre1': 'power metal', 'genre2': 'metal', 'genre3': 'symphonic metal', 'freq': 37}}, '宇多田ヒカル': {'attr_dict': {'genre1': 'j-pop', 'genre2': 'j-pop ', 'genre3': 'pop', 'freq': 37}}, 'brandy': {'attr_dict': {'genre1': 'rnb', 'genre2': 'soul', 'genre3': 'pop', 'freq': 37}}, 'anberlin': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 37}}, 'death': {'attr_dict': {'genre1': 'death metal', 'genre2': 'technical death metal', 'genre3': 'progressive metal', 'freq': 37}}, 'willow smith': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'dance', 'freq': 37}}, '浜崎あゆみ': {'attr_dict': {'genre1': 'j-pop', 'genre2': 'j-pop ', 'genre3': 'pop', 'freq': 37}}, 'genesis': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 37}}, 'katatonia': {'attr_dict': {'genre1': 'doom metal', 'genre2': 'progressive metal', 'genre3': 'gothic metal', 'freq': 37}}, 'taking back sunday': {'attr_dict': {'genre1': 'emo', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 36}}, 'a fine frenzy': {'attr_dict': {'genre1': 'indie', 'genre2': 'pop', 'genre3': 'alternative', 'freq': 36}}, 'akon': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rnb', 'genre3': 'rap', 'freq': 36}}, 'city and colour': {'attr_dict': {'genre1': 'indie', 'genre2': 'folk', 'genre3': 'alternative', 'freq': 36}}, 'gary numan': {'attr_dict': {'genre1': 'new wave', 'genre2': 'electronic', 'genre3': 'synth pop', 'freq': 36}}, 'epica': {'attr_dict': {'genre1': 'symphonic metal', 'genre2': 'gothic metal', 'genre3': 'metal', 'freq': 36}}, 'kreator': {'attr_dict': {'genre1': 'thrash metal', 'genre2': 'metal', 'genre3': 'heavy metal', 'freq': 36}}, 'múm': {'attr_dict': {'genre1': 'electronic', 'genre2': 'ambient', 'genre3': 'post-rock', 'freq': 36}}, '50 cent': {'attr_dict': {'genre1': 'rap', 'genre2': 'hip-hop', 'genre3': 'gangsta rap', 'freq': 35}}, 'foals': {'attr_dict': {'genre1': 'indie', 'genre2': 'math rock', 'genre3': 'indie rock', 'freq': 35}}, 'fiona apple': {'attr_dict': {'genre1': 'alternative', 'genre2': 'indie', 'genre3': 'rock', 'freq': 35}}, 'two door cinema club': {'attr_dict': {'genre1': 'indie', 'genre2': 'electronic', 'genre3': 'alternative', 'freq': 35}}, 'silverchair': {'attr_dict': {'genre1': 'grunge', 'genre2': 'rock', 'genre3': 'alternative rock', 'freq': 35}}, 'broken social scene': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'post-rock', 'freq': 35}}, 'of montreal': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie pop', 'genre3': 'indie rock', 'freq': 35}}, 'lynyrd skynyrd': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'southern rock', 'genre3': 'rock', 'freq': 35}}, 'soundgarden': {'attr_dict': {'genre1': 'grunge', 'genre2': 'rock', 'genre3': 'alternative rock', 'freq': 35}}, 'angels & airwaves': {'attr_dict': {'genre1': 'alternative', 'genre2': 'alternative rock', 'genre3': 'rock', 'freq': 35}}, 'simple minds': {'attr_dict': {'genre1': 'new wave', 'genre2': 'rock', 'genre3': 'pop', 'freq': 35}}, 'the shins': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'indie pop', 'freq': 35}}, 'dashboard confessional': {'attr_dict': {'genre1': 'emo', 'genre2': 'indie', 'genre3': 'rock', 'freq': 35}}, 'rainbow': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'classic rock', 'genre3': 'heavy metal', 'freq': 35}}, 'kris allen': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': 'pop rock', 'freq': 35}}, 'mew': {'attr_dict': {'genre1': 'indie', 'genre2': 'alternative', 'genre3': 'indie rock', 'freq': 35}}, 'george harrison': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'pop', 'freq': 35}}, 'drake': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'rnb', 'freq': 34}}, 'eurythmics': {'attr_dict': {'genre1': 'new wave', 'genre2': 'pop', 'genre3': 'synth pop', 'freq': 34}}, \"plain white t's\": {'attr_dict': {'genre1': 'indie', 'genre2': 'rock', 'genre3': 'pop punk', 'freq': 34}}, 'saosin': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'emo', 'genre3': 'screamo', 'freq': 34}}, 'asking alexandria': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'metalcore', 'genre3': 'screamo', 'freq': 34}}, 'new found glory': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'punk', 'genre3': 'rock', 'freq': 34}}, 'tiësto': {'attr_dict': {'genre1': 'trance', 'genre2': 'electronic', 'genre3': 'dance', 'freq': 34}}, 'stereophonics': {'attr_dict': {'genre1': 'rock', 'genre2': 'britpop', 'genre3': 'indie', 'freq': 34}}, 'chico buarque': {'attr_dict': {'genre1': 'mpb', 'genre2': 'bossa nova', 'genre3': 'samba', 'freq': 33}}, 'lamb of god': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'groove metal', 'genre3': 'metal', 'freq': 33}}, 'akira yamaoka': {'attr_dict': {'genre1': 'soundtrack', 'genre2': 'ambient', 'genre3': 'dark ambient', 'freq': 33}}, 'black label society': {'attr_dict': {'genre1': 'heavy metal', 'genre2': 'metal', 'genre3': 'hard rock', 'freq': 33}}, 'sex pistols': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'classic rock', 'freq': 33}}, 'danity kane': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'dance', 'freq': 33}}, 'the subways': {'attr_dict': {'genre1': 'indie rock', 'genre2': 'indie', 'genre3': 'rock', 'freq': 33}}, 'charlie brown jr.': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop rock', 'genre3': 'pop', 'freq': 33}}, 'pitbull': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'reggaeton', 'freq': 33}}, 'matanza': {'attr_dict': {'genre1': 'hardcore', 'genre2': 'rock', 'genre3': 'country', 'freq': 33}}, 'jamiroquai': {'attr_dict': {'genre1': 'funk', 'genre2': 'acid jazz', 'genre3': 'electronic', 'freq': 33}}, 'the hives': {'attr_dict': {'genre1': 'rock', 'genre2': 'garage rock', 'genre3': 'indie', 'freq': 33}}, 'empire of the sun': {'attr_dict': {'genre1': 'electronic', 'genre2': 'synth pop', 'genre3': 'indie', 'freq': 33}}, 'cream': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'blues rock', 'genre3': 'rock', 'freq': 33}}, 'de/vision': {'attr_dict': {'genre1': 'synth pop', 'genre2': 'electronic', 'genre3': 'ebm', 'freq': 33}}, 'kt tunstall': {'attr_dict': {'genre1': 'pop', 'genre2': 'indie', 'genre3': 'alternative', 'freq': 33}}, 'engenheiros do hawaii': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop rock', 'genre3': nan, 'freq': 33}}, 'blessthefall': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'screamo', 'genre3': 'metalcore', 'freq': 32}}, 'ultravox': {'attr_dict': {'genre1': 'new wave', 'genre2': 'synth pop', 'genre3': 'new romantic', 'freq': 32}}, 'prince': {'attr_dict': {'genre1': 'funk', 'genre2': 'pop', 'genre3': 'soul', 'freq': 32}}, 'tenacious d': {'attr_dict': {'genre1': 'rock', 'genre2': 'hard rock', 'genre3': 'alternative rock', 'freq': 32}}, 'recoil': {'attr_dict': {'genre1': 'electronic', 'genre2': 'experimental', 'genre3': 'trip-hop', 'freq': 32}}, 'jason derülo': {'attr_dict': {'genre1': 'rnb', 'genre2': 'pop', 'genre3': 'urban', 'freq': 32}}, 'nofx': {'attr_dict': {'genre1': 'punk', 'genre2': 'ska-punk', 'genre3': 'ska', 'freq': 32}}, 'black rebel motorcycle club': {'attr_dict': {'genre1': 'rock', 'genre2': 'indie rock', 'genre3': 'indie', 'freq': 32}}, 'simon curtis': {'attr_dict': {'genre1': 'pop', 'genre2': 'electronic', 'genre3': 'alternative', 'freq': 32}}, 'camouflage': {'attr_dict': {'genre1': 'synth pop', 'genre2': 'new wave', 'genre3': 'electronic', 'freq': 32}}, '65daysofstatic': {'attr_dict': {'genre1': 'post-rock', 'genre2': 'instrumental', 'genre3': 'experimental', 'freq': 32}}, 'trivium': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'thrash metal', 'genre3': 'metal', 'freq': 32}}, 'hole': {'attr_dict': {'genre1': 'grunge', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 32}}, 'sara bareilles': {'attr_dict': {'genre1': 'pop', 'genre2': 'folk', 'genre3': nan, 'freq': 32}}, 'beastie boys': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'alternative', 'freq': 32}}, 'katharine mcphee': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'jazz', 'freq': 32}}, 'ladyhawke': {'attr_dict': {'genre1': 'electronic', 'genre2': 'indie', 'genre3': 'new wave', 'freq': 32}}, 'and one': {'attr_dict': {'genre1': 'synth pop', 'genre2': 'ebm', 'genre3': 'electronic', 'freq': 32}}, 'eagles': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'soft rock', 'freq': 31}}, 'funeral for a friend': {'attr_dict': {'genre1': 'emo', 'genre2': 'post-hardcore', 'genre3': 'rock', 'freq': 31}}, 'sting': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop', 'genre3': 'classic rock', 'freq': 31}}, 'anastacia': {'attr_dict': {'genre1': 'pop', 'genre2': 'soul', 'genre3': 'rock', 'freq': 31}}, 'tarja': {'attr_dict': {'genre1': 'symphonic metal', 'genre2': 'classical', 'genre3': 'metal', 'freq': 31}}, 'silverstein': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'screamo', 'genre3': 'emo', 'freq': 31}}, 'johann sebastian bach': {'attr_dict': {'genre1': 'classical', 'genre2': 'instrumental', 'genre3': 'composer', 'freq': 31}}, 'mastodon': {'attr_dict': {'genre1': 'progressive metal', 'genre2': 'metal', 'genre3': 'sludge metal', 'freq': 31}}, 'alphaville': {'attr_dict': {'genre1': 'new wave', 'genre2': 'synth pop', 'genre3': 'pop', 'freq': 31}}, 'king crimson': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'experimental', 'genre3': 'classic rock', 'freq': 31}}, 'the script': {'attr_dict': {'genre1': 'pop rock', 'genre2': 'rock', 'genre3': 'pop', 'freq': 30}}, 'the sisters of mercy': {'attr_dict': {'genre1': 'gothic rock', 'genre2': 'post-punk', 'genre3': 'gothic', 'freq': 30}}, 'marisa monte': {'attr_dict': {'genre1': 'mpb', 'genre2': 'bossa nova', 'genre3': 'pop', 'freq': 30}}, 'atb': {'attr_dict': {'genre1': 'trance', 'genre2': 'electronic', 'genre3': 'dance', 'freq': 30}}, 'emilie autumn': {'attr_dict': {'genre1': 'gothic', 'genre2': 'industrial', 'genre3': 'alternative', 'freq': 30}}, 'amy macdonald': {'attr_dict': {'genre1': 'indie', 'genre2': 'pop', 'genre3': 'folk', 'freq': 30}}, 'ludwig van beethoven': {'attr_dict': {'genre1': 'classical', 'genre2': 'instrumental', 'genre3': 'composer', 'freq': 30}}, 'wanessa': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'electronic', 'freq': 30}}, 'frank zappa': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'experimental', 'genre3': 'rock', 'freq': 30}}, 'gossip': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'rock', 'freq': 30}}, 'armin van buuren': {'attr_dict': {'genre1': 'trance', 'genre2': 'electronic', 'genre3': 'progressive trance', 'freq': 30}}, 'bauhaus': {'attr_dict': {'genre1': 'post-punk', 'genre2': 'gothic rock', 'genre3': 'new wave', 'freq': 30}}, 'wolfmother': {'attr_dict': {'genre1': 'rock', 'genre2': 'hard rock', 'genre3': 'stoner', 'freq': 30}}, 'bon iver': {'attr_dict': {'genre1': 'folk', 'genre2': 'indie', 'genre3': 'lo-fi', 'freq': 30}}, 'brand new': {'attr_dict': {'genre1': 'emo', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 30}}, '2pac': {'attr_dict': {'genre1': 'rap', 'genre2': 'hip-hop', 'genre3': 'gangsta rap', 'freq': 30}}, 'electric light orchestra': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'progressive rock', 'genre3': 'rock', 'freq': 29}}, 'nick drake': {'attr_dict': {'genre1': 'folk', 'genre2': 'indie', 'genre3': 'alternative', 'freq': 29}}, 'yazoo': {'attr_dict': {'genre1': 'new wave', 'genre2': 'synth pop', 'genre3': 'electronic', 'freq': 29}}, 'wilco': {'attr_dict': {'genre1': 'alt-country', 'genre2': 'indie', 'genre3': 'indie rock', 'freq': 29}}, 'ricky martin': {'attr_dict': {'genre1': 'pop', 'genre2': 'latin pop', 'genre3': 'dance', 'freq': 29}}, '*nsync': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'teen pop', 'freq': 29}}, 'lcd soundsystem': {'attr_dict': {'genre1': 'electronic', 'genre2': 'indie', 'genre3': 'dance', 'freq': 29}}, 'sade': {'attr_dict': {'genre1': 'soul', 'genre2': 'jazz', 'genre3': 'chillout', 'freq': 29}}, 'deerhunter': {'attr_dict': {'genre1': 'shoegaze', 'genre2': 'experimental', 'genre3': 'psychedelic', 'freq': 29}}, 'seether': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'hard rock', 'freq': 29}}, 'clint mansell': {'attr_dict': {'genre1': 'soundtrack', 'genre2': 'instrumental', 'genre3': 'ambient', 'freq': 29}}, 'echo & the bunnymen': {'attr_dict': {'genre1': 'post-punk', 'genre2': 'new wave', 'genre3': 'alternative', 'freq': 29}}, '倖田來未': {'attr_dict': {'genre1': 'j-pop', 'genre2': 'j-pop ', 'genre3': 'pop', 'freq': 29}}, 'róisín murphy': {'attr_dict': {'genre1': 'electronic', 'genre2': 'dance', 'genre3': 'pop', 'freq': 29}}, 'antony and the johnsons': {'attr_dict': {'genre1': 'indie', 'genre2': 'alternative', 'genre3': 'folk', 'freq': 29}}, 'spoon': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 29}}, 'james morrison': {'attr_dict': {'genre1': 'soul', 'genre2': 'pop', 'genre3': 'britpop', 'freq': 29}}, 'grizzly bear': {'attr_dict': {'genre1': 'indie', 'genre2': 'experimental', 'genre3': 'folk', 'freq': 29}}, 'cássia eller': {'attr_dict': {'genre1': 'mpb', 'genre2': 'rock', 'genre3': nan, 'freq': 28}}, 'mando diao': {'attr_dict': {'genre1': 'rock', 'genre2': 'indie', 'genre3': 'indie rock', 'freq': 28}}, 'sublime': {'attr_dict': {'genre1': 'ska', 'genre2': 'reggae', 'genre3': 'punk', 'freq': 28}}, 'anthrax': {'attr_dict': {'genre1': 'thrash metal', 'genre2': 'metal', 'genre3': 'heavy metal', 'freq': 28}}, 'cocorosie': {'attr_dict': {'genre1': 'indie', 'genre2': 'experimental', 'genre3': 'folk', 'freq': 28}}, 'wolfgang amadeus mozart': {'attr_dict': {'genre1': 'classical', 'genre2': 'instrumental', 'genre3': 'composer', 'freq': 28}}, 'switchfoot': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'alternative rock', 'freq': 28}}, 'high school musical': {'attr_dict': {'genre1': 'pop', 'genre2': 'soundtrack', 'genre3': 'disney', 'freq': 28}}, 'we the kings': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'power pop', 'genre3': 'alternative', 'freq': 28}}, 'pulp': {'attr_dict': {'genre1': 'britpop', 'genre2': 'indie', 'genre3': 'alternative', 'freq': 28}}, 'heidi montag': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'electronic', 'freq': 28}}, 'hadouken!': {'attr_dict': {'genre1': 'new rave', 'genre2': 'electronic', 'genre3': 'indie', 'freq': 28}}, 'september': {'attr_dict': {'genre1': 'dance', 'genre2': 'pop', 'genre3': 'electronic', 'freq': 28}}, 'bob marley & the wailers': {'attr_dict': {'genre1': 'reggae', 'genre2': 'roots reggae', 'genre3': 'ska', 'freq': 28}}, 'amon amarth': {'attr_dict': {'genre1': 'melodic death metal', 'genre2': 'viking metal', 'genre3': 'death metal', 'freq': 28}}, 'devendra banhart': {'attr_dict': {'genre1': 'folk', 'genre2': 'indie', 'genre3': 'freak folk', 'freq': 27}}, 'nas': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'east coast rap', 'freq': 27}}, 'gloria': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'screamo', 'genre3': 'rock', 'freq': 27}}, 'miles davis': {'attr_dict': {'genre1': 'jazz', 'genre2': 'bebop', 'genre3': 'blues', 'freq': 27}}, 'ulver': {'attr_dict': {'genre1': 'black metal', 'genre2': 'experimental', 'genre3': 'ambient', 'freq': 27}}, 'beach house': {'attr_dict': {'genre1': 'dream pop', 'genre2': 'indie pop', 'genre3': 'indie', 'freq': 27}}, 'dead can dance': {'attr_dict': {'genre1': 'ambient', 'genre2': 'ethereal', 'genre3': 'darkwave', 'freq': 27}}, 'skank': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop rock', 'genre3': 'pop', 'freq': 27}}, 'alphabeat': {'attr_dict': {'genre1': 'pop', 'genre2': 'indie pop', 'genre3': 'dance', 'freq': 27}}, 'pain of salvation': {'attr_dict': {'genre1': 'progressive metal', 'genre2': 'progressive rock', 'genre3': 'metal', 'freq': 27}}, 'sky ferreira': {'attr_dict': {'genre1': 'pop', 'genre2': 'electropop', 'genre3': 'electronic', 'freq': 27}}, 'mandy moore': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': 'dance', 'freq': 27}}, 'maxïmo park': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 27}}, 'hoobastank': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 27}}, 'the postal service': {'attr_dict': {'genre1': 'indie', 'genre2': 'electronic', 'genre3': 'indie pop', 'freq': 27}}, 'billy idol': {'attr_dict': {'genre1': 'rock', 'genre2': 'new wave', 'genre3': 'classic rock', 'freq': 27}}, 'goo goo dolls': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 26}}, 'parkway drive': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'hardcore', 'genre3': 'melodic metalcore', 'freq': 26}}, 'infected mushroom': {'attr_dict': {'genre1': 'psytrance', 'genre2': 'electronic', 'genre3': 'psychedelic', 'freq': 26}}, 'talking heads': {'attr_dict': {'genre1': 'new wave', 'genre2': 'post-punk', 'genre3': 'rock', 'freq': 26}}, 'dimmu borgir': {'attr_dict': {'genre1': 'black metal', 'genre2': 'symphonic black metal', 'genre3': 'metal', 'freq': 26}}, 'cradle of filth': {'attr_dict': {'genre1': 'black metal', 'genre2': 'symphonic black metal', 'genre3': 'gothic metal', 'freq': 26}}, 'yelle': {'attr_dict': {'genre1': 'electronic', 'genre2': 'electropop', 'genre3': 'pop', 'freq': 26}}, 'nouvelle vague': {'attr_dict': {'genre1': 'bossa nova', 'genre2': 'chillout', 'genre3': 'indie', 'freq': 26}}, 'thalía': {'attr_dict': {'genre1': 'pop', 'genre2': 'latin pop', 'genre3': 'dance', 'freq': 26}}, 'bruce dickinson': {'attr_dict': {'genre1': 'heavy metal', 'genre2': 'metal', 'genre3': 'hard rock', 'freq': 26}}, 'flying lotus': {'attr_dict': {'genre1': 'electronic', 'genre2': 'experimental', 'genre3': 'hip-hop', 'freq': 26}}, '安室奈美恵': {'attr_dict': {'genre1': 'j-pop', 'genre2': 'j-pop ', 'genre3': 'pop', 'freq': 26}}, 'the academy is...': {'attr_dict': {'genre1': 'emo', 'genre2': 'indie', 'genre3': 'alternative', 'freq': 26}}, 'toni braxton': {'attr_dict': {'genre1': 'rnb', 'genre2': 'soul', 'genre3': 'pop', 'freq': 26}}, 'razorlight': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'rock', 'freq': 26}}, \"jack's mannequin\": {'attr_dict': {'genre1': 'piano rock', 'genre2': 'alternative', 'genre3': 'emo', 'freq': 26}}, 'darin': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'rnb', 'freq': 26}}, 'the red jumpsuit apparatus': {'attr_dict': {'genre1': 'alternative', 'genre2': 'emo', 'genre3': 'rock', 'freq': 26}}, 'blackfield': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 25}}, 'amon tobin': {'attr_dict': {'genre1': 'electronic', 'genre2': 'trip-hop', 'genre3': 'idm', 'freq': 25}}, 'stevie wonder': {'attr_dict': {'genre1': 'soul', 'genre2': 'funk', 'genre3': 'pop', 'freq': 25}}, 'ace of base': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'eurodance', 'freq': 25}}, 'sarah mclachlan': {'attr_dict': {'genre1': 'pop', 'genre2': 'alternative', 'genre3': 'folk', 'freq': 25}}, 'zz top': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'blues rock', 'genre3': 'rock', 'freq': 25}}, 'p.o.d.': {'attr_dict': {'genre1': 'nu metal', 'genre2': 'rapcore', 'genre3': 'rock', 'freq': 25}}, 'kate voegele': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'rock', 'freq': 25}}, 'the maine': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'power pop', 'genre3': 'indie', 'freq': 25}}, 'paradise lost': {'attr_dict': {'genre1': 'gothic metal', 'genre2': 'doom metal', 'genre3': 'metal', 'freq': 25}}, 'natalie imbruglia': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 25}}, 'kamelot': {'attr_dict': {'genre1': 'power metal', 'genre2': 'symphonic metal', 'genre3': 'progressive metal', 'freq': 25}}, 'unkle': {'attr_dict': {'genre1': 'trip-hop', 'genre2': 'electronic', 'genre3': 'alternative', 'freq': 25}}, 'sarah brightman': {'attr_dict': {'genre1': 'opera', 'genre2': 'classical', 'genre3': 'new age', 'freq': 25}}, 'lenny kravitz': {'attr_dict': {'genre1': 'rock', 'genre2': 'funk', 'genre3': 'alternative', 'freq': 25}}, 'john williams': {'attr_dict': {'genre1': 'soundtrack', 'genre2': 'classical', 'genre3': 'instrumental', 'freq': 25}}, 'matchbox twenty': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 25}}, 'pavement': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'lo-fi', 'freq': 25}}, 'cute is what we aim for': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'emo', 'genre3': 'alternative', 'freq': 25}}, 'manu chao': {'attr_dict': {'genre1': 'reggae', 'genre2': 'alternative', 'genre3': 'world', 'freq': 25}}, 'raimundos': {'attr_dict': {'genre1': 'hardcore', 'genre2': 'rock', 'genre3': 'punk', 'freq': 25}}, 'blonde redhead': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 25}}, 'all that remains': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'melodic death metal', 'genre3': 'metal', 'freq': 25}}, 'dulce maría': {'attr_dict': {'genre1': 'pop', 'genre2': 'disney', 'genre3': 'dance', 'freq': 25}}, 'ok go': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'rock', 'freq': 25}}, 'august burns red': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'hardcore', 'genre3': 'christian metalcore', 'freq': 25}}, 'jet': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'alternative rock', 'freq': 25}}, 'bryan adams': {'attr_dict': {'genre1': 'rock', 'genre2': 'classic rock', 'genre3': 'pop', 'freq': 25}}, 'inna': {'attr_dict': {'genre1': 'dance', 'genre2': 'electronic', 'genre3': 'house', 'freq': 25}}, 'talk talk': {'attr_dict': {'genre1': 'new wave', 'genre2': 'post-rock', 'genre3': 'synth pop', 'freq': 25}}, 'apparat': {'attr_dict': {'genre1': 'idm', 'genre2': 'electronic', 'genre3': 'ambient', 'freq': 25}}, 'w.a.s.p.': {'attr_dict': {'genre1': 'heavy metal', 'genre2': 'hard rock', 'genre3': 'glam metal', 'freq': 25}}, 'archive': {'attr_dict': {'genre1': 'trip-hop', 'genre2': 'electronic', 'genre3': 'alternative', 'freq': 24}}, 'shontelle': {'attr_dict': {'genre1': 'rnb', 'genre2': 'pop', 'genre3': 'reggae', 'freq': 24}}, 'corinne bailey rae': {'attr_dict': {'genre1': 'soul', 'genre2': 'jazz', 'genre3': 'pop', 'freq': 24}}, 'angra': {'attr_dict': {'genre1': 'power metal', 'genre2': 'progressive metal', 'genre3': 'metal', 'freq': 24}}, 'the horrors': {'attr_dict': {'genre1': 'garage rock', 'genre2': 'indie', 'genre3': 'horror punk', 'freq': 24}}, 'neutral milk hotel': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'folk', 'freq': 24}}, 'little joy': {'attr_dict': {'genre1': 'indie', 'genre2': 'alternative', 'genre3': 'folk', 'freq': 24}}, 'westlife': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': nan, 'freq': 24}}, 'red': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'christian rock', 'genre3': 'rock', 'freq': 24}}, 'capital inicial': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop rock', 'genre3': 'pop', 'freq': 24}}, 'ryan adams': {'attr_dict': {'genre1': 'alt-country', 'genre2': 'rock', 'genre3': 'indie', 'freq': 24}}, '4minute': {'attr_dict': {'genre1': 'k-pop', 'genre2': 'pop', 'genre3': 'dance', 'freq': 24}}, 'testament': {'attr_dict': {'genre1': 'thrash metal', 'genre2': 'metal', 'genre3': 'heavy metal', 'freq': 24}}, 'combichrist': {'attr_dict': {'genre1': 'industrial', 'genre2': 'ebm', 'genre3': 'dark electro', 'freq': 24}}, 'burial': {'attr_dict': {'genre1': 'dubstep', 'genre2': 'electronic', 'genre3': 'ambient', 'freq': 24}}, 'the flaming lips': {'attr_dict': {'genre1': 'indie', 'genre2': 'alternative', 'genre3': 'indie rock', 'freq': 24}}, 'forfun': {'attr_dict': {'genre1': 'rock', 'genre2': 'hardcore', 'genre3': 'pop punk', 'freq': 24}}, 'autechre': {'attr_dict': {'genre1': 'idm', 'genre2': 'electronic', 'genre3': 'experimental', 'freq': 24}}, '소녀시대': {'attr_dict': {'genre1': 'k-pop', 'genre2': 'pop', 'genre3': 'dance', 'freq': 24}}, 'phil collins': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': 'classic rock', 'freq': 24}}, 'david gilmour': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 24}}, 'ivete sangalo': {'attr_dict': {'genre1': 'mpb', 'genre2': 'pop', 'genre3': 'samba', 'freq': 24}}, 'you me at six': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'rock', 'genre3': 'pop rock', 'freq': 24}}, 'dark tranquillity': {'attr_dict': {'genre1': 'melodic death metal', 'genre2': 'death metal', 'genre3': 'metal', 'freq': 24}}, 'lupe fiasco': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'underground hip-hop', 'freq': 24}}, 'relient k': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop punk', 'genre3': 'christian rock', 'freq': 24}}, 'uffie': {'attr_dict': {'genre1': 'electronic', 'genre2': 'electroclash', 'genre3': 'electropop', 'freq': 24}}, 'breathe carolina': {'attr_dict': {'genre1': 'electronic', 'genre2': 'power pop', 'genre3': 'screamo', 'freq': 24}}, 'cpm 22': {'attr_dict': {'genre1': 'hardcore', 'genre2': 'rock', 'genre3': 'melodic hardcore', 'freq': 23}}, 'the runaways': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'rock', 'genre3': 'punk', 'freq': 23}}, 'journey': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'hard rock', 'freq': 23}}, 'venetian snares': {'attr_dict': {'genre1': 'breakcore', 'genre2': 'idm', 'genre3': 'electronic', 'freq': 23}}, 'soft cell': {'attr_dict': {'genre1': 'new wave', 'genre2': 'synth pop', 'genre3': 'electronic', 'freq': 23}}, 'godsmack': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'metal', 'genre3': 'nu metal', 'freq': 23}}, 'machine head': {'attr_dict': {'genre1': 'thrash metal', 'genre2': 'metal', 'genre3': 'groove metal', 'freq': 23}}, 'slash': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'rock', 'genre3': 'classic rock', 'freq': 23}}, 'the decemberists': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'folk', 'freq': 23}}, 'dragonette': {'attr_dict': {'genre1': 'electropop', 'genre2': 'electronic', 'genre3': 'pop', 'freq': 23}}, 'brandon flowers': {'attr_dict': {'genre1': 'indie', 'genre2': 'alternative rock', 'genre3': 'indie rock', 'freq': 23}}, 'the distillers': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 23}}, 'soilwork': {'attr_dict': {'genre1': 'melodic death metal', 'genre2': 'metal', 'genre3': 'death metal', 'freq': 23}}, 'the corrs': {'attr_dict': {'genre1': 'pop', 'genre2': 'folk', 'genre3': 'celtic', 'freq': 23}}, 'alter bridge': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'hard rock', 'freq': 23}}, 'sandy e junior': {'attr_dict': {'genre1': 'pop', 'genre2': 'pop rock', 'genre3': 'dance', 'freq': 23}}, 'billy joel': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'pop', 'freq': 23}}, 'snoop dogg': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'gangsta rap', 'freq': 23}}, 'camel': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'classic rock', 'genre3': 'art rock', 'freq': 23}}, 'basshunter': {'attr_dict': {'genre1': 'dance', 'genre2': 'electronic', 'genre3': 'techno', 'freq': 23}}, '2ne1': {'attr_dict': {'genre1': 'k-pop', 'genre2': 'dance', 'genre3': 'pop', 'freq': 23}}, 'apoptygma berzerk': {'attr_dict': {'genre1': 'ebm', 'genre2': 'futurepop', 'genre3': 'synth pop', 'freq': 23}}, 'eyes set to kill': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'screamo', 'genre3': 'emo', 'freq': 23}}, 'tricky': {'attr_dict': {'genre1': 'trip-hop', 'genre2': 'electronic', 'genre3': 'chillout', 'freq': 23}}, 'mylène farmer': {'attr_dict': {'genre1': 'pop', 'genre2': 'chanson', 'genre3': 'electronic', 'freq': 23}}, 'jay sean': {'attr_dict': {'genre1': 'rnb', 'genre2': 'pop', 'genre3': 'soul', 'freq': 23}}, 'morcheeba': {'attr_dict': {'genre1': 'trip-hop', 'genre2': 'chillout', 'genre3': 'electronic', 'freq': 23}}, 'we are scientists': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'rock', 'freq': 23}}, 'clan of xymox': {'attr_dict': {'genre1': 'darkwave', 'genre2': 'gothic', 'genre3': 'gothic rock', 'freq': 22}}, 'the sounds': {'attr_dict': {'genre1': 'indie', 'genre2': 'rock', 'genre3': 'indie rock', 'freq': 22}}, 'fear factory': {'attr_dict': {'genre1': 'industrial metal', 'genre2': 'metal', 'genre3': 'death metal', 'freq': 22}}, 'japan': {'attr_dict': {'genre1': 'new wave', 'genre2': 'new romantic', 'genre3': 'post-punk', 'freq': 22}}, 'yes': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 22}}, 'mayday parade': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'emo', 'genre3': 'rock', 'freq': 22}}, 'móveis coloniais de acaju': {'attr_dict': {'genre1': 'ska', 'genre2': 'alternative', 'genre3': 'rock', 'freq': 22}}, 'nina simone': {'attr_dict': {'genre1': 'jazz', 'genre2': 'soul', 'genre3': 'blues', 'freq': 22}}, 'janelle monáe': {'attr_dict': {'genre1': 'soul', 'genre2': 'rnb', 'genre3': 'alternative', 'freq': 22}}, 'oomph!': {'attr_dict': {'genre1': 'industrial metal', 'genre2': 'industrial', 'genre3': 'metal', 'freq': 22}}, 'the raconteurs': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 22}}, 'vnv nation': {'attr_dict': {'genre1': 'ebm', 'genre2': 'futurepop', 'genre3': 'industrial', 'freq': 22}}, 'stone temple pilots': {'attr_dict': {'genre1': 'grunge', 'genre2': 'rock', 'genre3': 'alternative rock', 'freq': 22}}, 'the album leaf': {'attr_dict': {'genre1': 'post-rock', 'genre2': 'ambient', 'genre3': 'instrumental', 'freq': 22}}, 'suicide silence': {'attr_dict': {'genre1': 'deathcore', 'genre2': 'death metal', 'genre3': 'grindcore', 'freq': 22}}, 'brian eno': {'attr_dict': {'genre1': 'ambient', 'genre2': 'electronic', 'genre3': 'experimental', 'freq': 22}}, 'jennifer hudson': {'attr_dict': {'genre1': 'rnb', 'genre2': 'soul', 'genre3': 'pop', 'freq': 22}}, 'eels': {'attr_dict': {'genre1': 'indie', 'genre2': 'alternative', 'genre3': 'rock', 'freq': 22}}, 'amorphis': {'attr_dict': {'genre1': 'progressive metal', 'genre2': 'death metal', 'genre3': 'melodic death metal', 'freq': 22}}, 'rufus wainwright': {'attr_dict': {'genre1': 'indie', 'genre2': 'folk', 'genre3': 'alternative', 'freq': 22}}, 'aaliyah': {'attr_dict': {'genre1': 'rnb', 'genre2': 'soul', 'genre3': 'hip-hop', 'freq': 22}}, 'christina milian': {'attr_dict': {'genre1': 'rnb', 'genre2': 'pop', 'genre3': 'hip-hop', 'freq': 22}}, 'at the drive-in': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'indie', 'genre3': 'alternative', 'freq': 22}}, 'frankmusik': {'attr_dict': {'genre1': 'electronic', 'genre2': 'new rave', 'genre3': 'electroclash', 'freq': 22}}, '[unknown]': {'attr_dict': {'genre1': 'rock', 'genre2': 'soundtrack', 'genre3': 'alternative', 'freq': 22}}, 'mary j. blige': {'attr_dict': {'genre1': 'rnb', 'genre2': 'soul', 'genre3': 'hip-hop', 'freq': 22}}, 'versaemerge': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'rock', 'genre3': 'alternative rock', 'freq': 22}}, 'jamie cullum': {'attr_dict': {'genre1': 'jazz', 'genre2': 'pop', 'genre3': 'alternative', 'freq': 22}}, 'aretha franklin': {'attr_dict': {'genre1': 'soul', 'genre2': 'jazz', 'genre3': 'blues', 'freq': 22}}, 'christian chávez': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'latin pop', 'freq': 22}}, 'the dillinger escape plan': {'attr_dict': {'genre1': 'mathcore', 'genre2': 'hardcore', 'genre3': 'experimental', 'freq': 22}}, 'the bravery': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 22}}, 'chiodos': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'screamo', 'genre3': 'hardcore', 'freq': 21}}, 't. rex': {'attr_dict': {'genre1': 'glam rock', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 21}}, 'adriana calcanhotto': {'attr_dict': {'genre1': 'mpb', 'genre2': 'bossa nova', 'genre3': 'pop', 'freq': 21}}, 'eddie vedder': {'attr_dict': {'genre1': 'grunge', 'genre2': 'rock', 'genre3': 'folk', 'freq': 21}}, 'stars': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie pop', 'genre3': 'indie rock', 'freq': 21}}, 'serj tankian': {'attr_dict': {'genre1': 'alternative metal', 'genre2': 'alternative', 'genre3': 'alternative rock', 'freq': 21}}, 'avantasia': {'attr_dict': {'genre1': 'power metal', 'genre2': 'symphonic metal', 'genre3': 'metal', 'freq': 21}}, 'david cook': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 21}}, 'the radio dept.': {'attr_dict': {'genre1': 'shoegaze', 'genre2': 'indie', 'genre3': 'indie pop', 'freq': 21}}, 'dave matthews band': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'alternative rock', 'freq': 21}}, 'hammerfall': {'attr_dict': {'genre1': 'power metal', 'genre2': 'heavy metal', 'genre3': 'metal', 'freq': 21}}, 'deadmau5': {'attr_dict': {'genre1': 'house', 'genre2': 'electronic', 'genre3': 'minimal', 'freq': 21}}, 'the presets': {'attr_dict': {'genre1': 'electronic', 'genre2': 'indie', 'genre3': 'electroclash', 'freq': 21}}, 'zемфира': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop rock', 'genre3': 'alternative', 'freq': 21}}, 'poets of the fall': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 21}}, 'forever the sickest kids': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'power pop', 'genre3': 'rock', 'freq': 21}}, 'dead kennedys': {'attr_dict': {'genre1': 'punk', 'genre2': 'hardcore punk', 'genre3': 'hardcore', 'freq': 21}}, 'story of the year': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'rock', 'genre3': 'emo', 'freq': 21}}, 'roxy music': {'attr_dict': {'genre1': 'glam rock', 'genre2': 'new wave', 'genre3': 'rock', 'freq': 21}}, 'nitzer ebb': {'attr_dict': {'genre1': 'ebm', 'genre2': 'industrial', 'genre3': 'electronic', 'freq': 21}}, 'ashanti': {'attr_dict': {'genre1': 'rnb', 'genre2': 'soul', 'genre3': 'pop', 'freq': 21}}, 'michelle branch': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': 'pop rock', 'freq': 21}}, 'take that': {'attr_dict': {'genre1': 'pop', 'genre2': 'britpop', 'genre3': 'dance', 'freq': 21}}, 'four year strong': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'melodic hardcore', 'genre3': 'hardcore', 'freq': 21}}, 'rilo kiley': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'indie pop', 'freq': 21}}, 'the yardbirds': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'blues rock', 'genre3': 'rock', 'freq': 21}}, 'rascal flatts': {'attr_dict': {'genre1': 'country', 'genre2': 'country pop', 'genre3': 'rock', 'freq': 21}}, 'the 69 eyes': {'attr_dict': {'genre1': 'gothic rock', 'genre2': 'gothic metal', 'genre3': 'gothic', 'freq': 21}}, 'edguy': {'attr_dict': {'genre1': 'power metal', 'genre2': 'heavy metal', 'genre3': 'metal', 'freq': 21}}, 'nelly': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'rnb', 'freq': 21}}, 'zero 7': {'attr_dict': {'genre1': 'chillout', 'genre2': 'electronic', 'genre3': 'trip-hop', 'freq': 21}}, 'os mutantes': {'attr_dict': {'genre1': 'psychedelic', 'genre2': 'rock', 'genre3': 'experimental', 'freq': 21}}, 'the dead weather': {'attr_dict': {'genre1': 'garage rock', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 21}}, 'rancid': {'attr_dict': {'genre1': 'punk', 'genre2': 'ska-punk', 'genre3': 'ska', 'freq': 21}}, 'spandau ballet': {'attr_dict': {'genre1': 'new wave', 'genre2': 'pop', 'genre3': 'new romantic', 'freq': 21}}, 'shinedown': {'attr_dict': {'genre1': 'rock', 'genre2': 'hard rock', 'genre3': 'alternative rock', 'freq': 21}}, 'dead by april': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'melodic death metal', 'genre3': 'metal', 'freq': 21}}, 'raul seixas': {'attr_dict': {'genre1': 'rock', 'genre2': 'classic rock', 'genre3': 'mpb', 'freq': 21}}, 'cazuza': {'attr_dict': {'genre1': 'mpb', 'genre2': 'rock', 'genre3': nan, 'freq': 21}}, 'amerie': {'attr_dict': {'genre1': 'rnb', 'genre2': 'pop', 'genre3': 'soul', 'freq': 21}}, 'biffy clyro': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 21}}, 'paolo nutini': {'attr_dict': {'genre1': 'indie', 'genre2': 'pop', 'genre3': 'soul', 'freq': 21}}, 'andrew bird': {'attr_dict': {'genre1': 'indie', 'genre2': 'folk', 'genre3': 'indie pop', 'freq': 20}}, 'sneaker pimps': {'attr_dict': {'genre1': 'trip-hop', 'genre2': 'electronic', 'genre3': 'chillout', 'freq': 20}}, 'chevelle': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'rock', 'genre3': 'alternative metal', 'freq': 20}}, 'the jesus and mary chain': {'attr_dict': {'genre1': 'shoegaze', 'genre2': 'post-punk', 'genre3': 'alternative', 'freq': 20}}, 'brad paisley': {'attr_dict': {'genre1': 'country', 'genre2': 'contemporary country', 'genre3': nan, 'freq': 20}}, 'brokencyde': {'attr_dict': {'genre1': 'screamo', 'genre2': 'electronic', 'genre3': 'experimental', 'freq': 20}}, 'squarepusher': {'attr_dict': {'genre1': 'idm', 'genre2': 'electronic', 'genre3': 'experimental', 'freq': 20}}, 'isis': {'attr_dict': {'genre1': 'sludge metal', 'genre2': 'post-metal', 'genre3': 'post-rock', 'freq': 20}}, 'blutengel': {'attr_dict': {'genre1': 'darkwave', 'genre2': 'gothic', 'genre3': 'ebm', 'freq': 20}}, 'cake': {'attr_dict': {'genre1': 'alternative', 'genre2': 'rock', 'genre3': 'indie', 'freq': 20}}, 'chuck berry': {'attr_dict': {'genre1': 'rock n roll', 'genre2': 'classic rock', 'genre3': 'blues', 'freq': 20}}, 'passion pit': {'attr_dict': {'genre1': 'electronic', 'genre2': 'indie', 'genre3': 'indie pop', 'freq': 20}}, 'dj shadow': {'attr_dict': {'genre1': 'trip-hop', 'genre2': 'electronic', 'genre3': 'hip-hop', 'freq': 20}}, 'hellogoodbye': {'attr_dict': {'genre1': 'indie', 'genre2': 'power pop', 'genre3': 'alternative', 'freq': 20}}, 'riverside': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'progressive metal', 'genre3': 'rock', 'freq': 20}}, 'mr. big': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'rock', 'genre3': 'classic rock', 'freq': 20}}, 'wu-tang clan': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'gangsta rap', 'freq': 20}}, 'ólafur arnalds': {'attr_dict': {'genre1': 'ambient', 'genre2': 'instrumental', 'genre3': 'post-rock', 'freq': 20}}, 'exodus': {'attr_dict': {'genre1': 'thrash metal', 'genre2': 'metal', 'genre3': 'speed metal', 'freq': 20}}, 'the vines': {'attr_dict': {'genre1': 'rock', 'genre2': 'indie', 'genre3': 'indie rock', 'freq': 20}}, 'adema': {'attr_dict': {'genre1': 'nu metal', 'genre2': 'rock', 'genre3': 'alternative rock', 'freq': 20}}, 'leonard cohen': {'attr_dict': {'genre1': 'folk', 'genre2': 'blues', 'genre3': 'rock', 'freq': 20}}, 'europe': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'rock', 'genre3': 'classic rock', 'freq': 20}}, 'hatebreed': {'attr_dict': {'genre1': 'hardcore', 'genre2': 'metalcore', 'genre3': 'metal', 'freq': 20}}, 'fever ray': {'attr_dict': {'genre1': 'electronic', 'genre2': 'ambient', 'genre3': 'experimental', 'freq': 20}}, 'vive la fête': {'attr_dict': {'genre1': 'electronic', 'genre2': 'electroclash', 'genre3': 'synth pop', 'freq': 20}}, 'cannibal corpse': {'attr_dict': {'genre1': 'death metal', 'genre2': 'brutal death metal', 'genre3': 'metal', 'freq': 20}}, 'queensrÿche': {'attr_dict': {'genre1': 'progressive metal', 'genre2': 'heavy metal', 'genre3': 'metal', 'freq': 20}}, 'prefuse 73': {'attr_dict': {'genre1': 'electronic', 'genre2': 'hip-hop', 'genre3': 'idm', 'freq': 20}}, '植松伸夫': {'attr_dict': {'genre1': 'soundtrack', 'genre2': 'instrumental', 'genre3': 'classical', 'freq': 20}}, 'skinny puppy': {'attr_dict': {'genre1': 'industrial', 'genre2': 'electronic', 'genre3': 'ebm', 'freq': 20}}, 'tina turner': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': 'soul', 'freq': 20}}, 'lights': {'attr_dict': {'genre1': 'pop', 'genre2': 'indie', 'genre3': 'power pop', 'freq': 20}}, 'hollywood undead': {'attr_dict': {'genre1': 'rapcore', 'genre2': 'rap', 'genre3': 'hardcore', 'freq': 20}}, 'manowar': {'attr_dict': {'genre1': 'heavy metal', 'genre2': 'power metal', 'genre3': 'metal', 'freq': 20}}, 'howard shore': {'attr_dict': {'genre1': 'soundtrack', 'genre2': 'classical', 'genre3': 'instrumental', 'freq': 20}}, 'abc': {'attr_dict': {'genre1': 'new wave', 'genre2': 'new romantic', 'genre3': 'pop', 'freq': 19}}, 'thrice': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'rock', 'genre3': 'hardcore', 'freq': 19}}, 'sandy leah': {'attr_dict': {'genre1': 'mpb', 'genre2': 'alternative', 'genre3': 'folk', 'freq': 19}}, 'shiny toy guns': {'attr_dict': {'genre1': 'electronic', 'genre2': 'indie', 'genre3': 'rock', 'freq': 19}}, 'keyshia cole': {'attr_dict': {'genre1': 'rnb', 'genre2': 'soul', 'genre3': 'hip-hop', 'freq': 19}}, 'staind': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 19}}, 'millencolin': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'pop punk', 'freq': 19}}, 'j dilla': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'instrumental', 'genre3': 'underground hip-hop', 'freq': 19}}, 'caetano veloso': {'attr_dict': {'genre1': 'mpb', 'genre2': 'bossa nova', 'genre3': 'world', 'freq': 19}}, 'alkaline trio': {'attr_dict': {'genre1': 'punk', 'genre2': 'emo', 'genre3': 'rock', 'freq': 19}}, 'burzum': {'attr_dict': {'genre1': 'black metal', 'genre2': 'dark ambient', 'genre3': 'ambient', 'freq': 19}}, 'frédéric chopin': {'attr_dict': {'genre1': 'classical', 'genre2': 'instrumental', 'genre3': 'composer', 'freq': 19}}, 'john frusciante': {'attr_dict': {'genre1': 'alternative', 'genre2': 'experimental', 'genre3': 'rock', 'freq': 19}}, 'sodom': {'attr_dict': {'genre1': 'thrash metal', 'genre2': 'black metal', 'genre3': 'metal', 'freq': 19}}, 'ratatat': {'attr_dict': {'genre1': 'electronic', 'genre2': 'instrumental', 'genre3': 'indie', 'freq': 19}}, 'faithless': {'attr_dict': {'genre1': 'electronic', 'genre2': 'trip-hop', 'genre3': 'dance', 'freq': 19}}, 'vanessa da mata': {'attr_dict': {'genre1': 'mpb', 'genre2': 'bossa nova', 'genre3': 'samba', 'freq': 19}}, 'josh groban': {'attr_dict': {'genre1': 'classical', 'genre2': 'pop', 'genre3': 'opera', 'freq': 19}}, 'converge': {'attr_dict': {'genre1': 'hardcore', 'genre2': 'mathcore', 'genre3': 'metalcore', 'freq': 19}}, 'bush': {'attr_dict': {'genre1': 'grunge', 'genre2': 'rock', 'genre3': 'alternative rock', 'freq': 19}}, 'static-x': {'attr_dict': {'genre1': 'industrial metal', 'genre2': 'metal', 'genre3': 'nu metal', 'freq': 19}}, 'stratovarius': {'attr_dict': {'genre1': 'power metal', 'genre2': 'metal', 'genre3': 'heavy metal', 'freq': 19}}, 'santigold': {'attr_dict': {'genre1': 'electronic', 'genre2': 'indie', 'genre3': 'alternative', 'freq': 19}}, 'five finger death punch': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'groove metal', 'genre3': 'metal', 'freq': 19}}, 'dirty pretty things': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'rock', 'freq': 19}}, 'cypress hill': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'rapcore', 'freq': 19}}, 'yngwie malmsteen': {'attr_dict': {'genre1': 'heavy metal', 'genre2': 'power metal', 'genre3': 'metal', 'freq': 19}}, '36 crazyfists': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'metal', 'genre3': 'hardcore', 'freq': 19}}, 'behemoth': {'attr_dict': {'genre1': 'death metal', 'genre2': 'black metal', 'genre3': 'metal', 'freq': 19}}, 'jefferson airplane': {'attr_dict': {'genre1': 'psychedelic rock', 'genre2': 'classic rock', 'genre3': 'psychedelic', 'freq': 19}}, 'thievery corporation': {'attr_dict': {'genre1': 'chillout', 'genre2': 'trip-hop', 'genre3': 'electronic', 'freq': 19}}, 'jessie james': {'attr_dict': {'genre1': 'pop', 'genre2': 'country', 'genre3': 'country pop', 'freq': 19}}, 'iced earth': {'attr_dict': {'genre1': 'power metal', 'genre2': 'heavy metal', 'genre3': 'thrash metal', 'freq': 19}}, 'the flashbulb': {'attr_dict': {'genre1': 'idm', 'genre2': 'breakcore', 'genre3': 'electronic', 'freq': 19}}, 'alexandre desplat': {'attr_dict': {'genre1': 'soundtrack', 'genre2': 'instrumental', 'genre3': 'classical', 'freq': 18}}, \"the b-52's\": {'attr_dict': {'genre1': 'new wave', 'genre2': 'pop', 'genre3': 'alternative', 'freq': 18}}, '+44': {'attr_dict': {'genre1': 'punk', 'genre2': 'pop punk', 'genre3': 'rock', 'freq': 18}}, 'cine': {'attr_dict': {'genre1': 'power pop', 'genre2': 'pop', 'genre3': 'rock', 'freq': 18}}, 'cassie': {'attr_dict': {'genre1': 'rnb', 'genre2': 'pop', 'genre3': 'hip-hop', 'freq': 18}}, 'a flock of seagulls': {'attr_dict': {'genre1': 'new wave', 'genre2': 'synth pop', 'genre3': 'new romantic', 'freq': 18}}, 'restart': {'attr_dict': {'genre1': 'power pop', 'genre2': 'rock', 'genre3': 'pop punk', 'freq': 18}}, 'diana vickers': {'attr_dict': {'genre1': 'pop', 'genre2': 'indie', 'genre3': 'folk', 'freq': 18}}, 'era': {'attr_dict': {'genre1': 'new age', 'genre2': 'ambient', 'genre3': 'celtic', 'freq': 18}}, 'deathstars': {'attr_dict': {'genre1': 'industrial metal', 'genre2': 'industrial', 'genre3': 'gothic metal', 'freq': 18}}, 'kristinia debarge': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'dance', 'freq': 18}}, 'boston': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'hard rock', 'freq': 18}}, 'mudvayne': {'attr_dict': {'genre1': 'nu metal', 'genre2': 'metal', 'genre3': 'alternative metal', 'freq': 18}}, 'protest the hero': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'mathcore', 'genre3': 'progressive metal', 'freq': 18}}, 'blue öyster cult': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'hard rock', 'genre3': 'rock', 'freq': 18}}, 'poison': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'glam metal', 'genre3': 'rock', 'freq': 18}}, 'moptop': {'attr_dict': {'genre1': 'indie', 'genre2': 'rock', 'genre3': 'indie rock', 'freq': 18}}, 'peter gabriel': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'rock', 'genre3': 'classic rock', 'freq': 18}}, 'attack attack!': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'electronic', 'genre3': 'trancecore', 'freq': 18}}, 'erykah badu': {'attr_dict': {'genre1': 'soul', 'genre2': 'neo soul', 'genre3': 'rnb', 'freq': 18}}, 'coil': {'attr_dict': {'genre1': 'industrial', 'genre2': 'experimental', 'genre3': 'dark ambient', 'freq': 18}}, 'sheryl crow': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop', 'genre3': 'alternative', 'freq': 18}}, 'jorge & mateus': {'attr_dict': {'genre1': 'pop', 'genre2': 'country', 'genre3': nan, 'freq': 18}}, 'senses fail': {'attr_dict': {'genre1': 'emo', 'genre2': 'screamo', 'genre3': 'rock', 'freq': 18}}, 'the wombats': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'britpop', 'freq': 18}}, 'shayne ward': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'britpop', 'freq': 18}}, 'lolene': {'attr_dict': {'genre1': 'pop', 'genre2': 'electropop', 'genre3': 'dance', 'freq': 18}}, 'yeasayer': {'attr_dict': {'genre1': 'experimental', 'genre2': 'psychedelic', 'genre3': 'indie', 'freq': 18}}, 'tokyo police club': {'attr_dict': {'genre1': 'indie rock', 'genre2': 'indie', 'genre3': 'post-punk', 'freq': 18}}, 'type o negative': {'attr_dict': {'genre1': 'gothic metal', 'genre2': 'doom metal', 'genre3': 'metal', 'freq': 18}}, 'die ärzte': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 18}}, 'katie melua': {'attr_dict': {'genre1': 'jazz', 'genre2': 'blues', 'genre3': 'pop', 'freq': 18}}, 'stars of the lid': {'attr_dict': {'genre1': 'ambient', 'genre2': 'drone', 'genre3': 'post-rock', 'freq': 18}}, 'the donnas': {'attr_dict': {'genre1': 'rock', 'genre2': 'punk', 'genre3': 'alternative', 'freq': 18}}, 'elvis costello': {'attr_dict': {'genre1': 'rock', 'genre2': 'new wave', 'genre3': 'classic rock', 'freq': 18}}, 'jónsi': {'attr_dict': {'genre1': 'ambient', 'genre2': 'experimental', 'genre3': 'indie', 'freq': 18}}, 'telefon tel aviv': {'attr_dict': {'genre1': 'idm', 'genre2': 'electronic', 'genre3': 'ambient', 'freq': 18}}, 'mesh': {'attr_dict': {'genre1': 'synth pop', 'genre2': 'electronic', 'genre3': 'futurepop', 'freq': 18}}, 'the roots': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'soul', 'freq': 18}}, 'vanessa carlton': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': 'pop rock', 'freq': 18}}, 'maria gadú': {'attr_dict': {'genre1': 'mpb', 'genre2': 'alternative', 'genre3': 'folk', 'freq': 18}}, 'dredg': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 18}}, 'camera obscura': {'attr_dict': {'genre1': 'indie pop', 'genre2': 'indie', 'genre3': 'twee pop', 'freq': 18}}, 'hooverphonic': {'attr_dict': {'genre1': 'trip-hop', 'genre2': 'electronic', 'genre3': 'chillout', 'freq': 18}}, 'bowling for soup': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'punk', 'genre3': 'rock', 'freq': 18}}, 'julieta venegas': {'attr_dict': {'genre1': 'pop', 'genre2': 'alternative', 'genre3': 'latin rock', 'freq': 18}}, 'jewel': {'attr_dict': {'genre1': 'pop', 'genre2': 'folk', 'genre3': 'rock', 'freq': 18}}, 'a skylit drive': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'screamo', 'genre3': 'emo', 'freq': 18}}, 'melanie c': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': 'dance', 'freq': 18}}, 'b.b. king': {'attr_dict': {'genre1': 'blues', 'genre2': 'blues rock', 'genre3': 'jazz', 'freq': 18}}, 'fugazi': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'punk', 'genre3': 'indie', 'freq': 17}}, 'mf doom': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'underground hip-hop', 'genre3': 'rap', 'freq': 17}}, 'guano apes': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'alternative', 'freq': 17}}, 'santana': {'attr_dict': {'genre1': 'rock', 'genre2': 'classic rock', 'genre3': 'blues', 'freq': 17}}, 'yui': {'attr_dict': {'genre1': 'j-pop', 'genre2': 'j-rock', 'genre3': 'j-pop ', 'freq': 17}}, \"howlin' wolf\": {'attr_dict': {'genre1': 'blues', 'genre2': 'chicago blues', 'genre3': 'rnb', 'freq': 17}}, 'alesha dixon': {'attr_dict': {'genre1': 'pop', 'genre2': 'rnb', 'genre3': 'dance', 'freq': 17}}, 'luan santana': {'attr_dict': {'genre1': 'pop', 'genre2': nan, 'genre3': nan, 'freq': 17}}, 'sick puppies': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 17}}, 'bloodhound gang': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'alternative rock', 'freq': 17}}, 'slowdive': {'attr_dict': {'genre1': 'shoegaze', 'genre2': 'dream pop', 'genre3': 'ambient', 'freq': 17}}, 'agalloch': {'attr_dict': {'genre1': 'doom metal', 'genre2': 'folk metal', 'genre3': 'black metal', 'freq': 17}}, 'syd barrett': {'attr_dict': {'genre1': 'psychedelic', 'genre2': 'psychedelic rock', 'genre3': 'classic rock', 'freq': 17}}, 'the cribs': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 17}}, 'noize mc': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rapcore', 'genre3': 'rap', 'freq': 17}}, 'say anything': {'attr_dict': {'genre1': 'indie', 'genre2': 'alternative', 'genre3': 'rock', 'freq': 17}}, 'pain': {'attr_dict': {'genre1': 'industrial metal', 'genre2': 'metal', 'genre3': 'industrial', 'freq': 17}}, 'automatic loveletter': {'attr_dict': {'genre1': 'pop rock', 'genre2': 'rock', 'genre3': 'indie', 'freq': 17}}, 'dixie chicks': {'attr_dict': {'genre1': 'country', 'genre2': 'folk', 'genre3': 'pop', 'freq': 17}}, 'eluveitie': {'attr_dict': {'genre1': 'folk metal', 'genre2': 'melodic death metal', 'genre3': 'pagan metal', 'freq': 17}}, 'dr. dre': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'gangsta rap', 'freq': 17}}, 'the dandy warhols': {'attr_dict': {'genre1': 'indie', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 17}}, 'the mountain goats': {'attr_dict': {'genre1': 'indie', 'genre2': 'folk', 'genre3': 'lo-fi', 'freq': 17}}, 'alejandro sanz': {'attr_dict': {'genre1': 'pop', 'genre2': 'latin pop', 'genre3': nan, 'freq': 17}}, 'the magnetic fields': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie pop', 'genre3': 'lo-fi', 'freq': 17}}, 'icehouse': {'attr_dict': {'genre1': 'new wave', 'genre2': 'pop', 'genre3': 'rock', 'freq': 17}}, 'melvins': {'attr_dict': {'genre1': 'sludge metal', 'genre2': 'grunge', 'genre3': 'stoner', 'freq': 17}}, 'savage garden': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 17}}, 'client': {'attr_dict': {'genre1': 'electronic', 'genre2': 'electroclash', 'genre3': 'synth pop', 'freq': 17}}, 'king diamond': {'attr_dict': {'genre1': 'heavy metal', 'genre2': 'metal', 'genre3': 'progressive metal', 'freq': 17}}, 'amiina': {'attr_dict': {'genre1': 'ambient', 'genre2': 'post-rock', 'genre3': 'instrumental', 'freq': 17}}, 'danny elfman': {'attr_dict': {'genre1': 'soundtrack', 'genre2': 'instrumental', 'genre3': 'classical', 'freq': 17}}, 'sonic syndicate': {'attr_dict': {'genre1': 'melodic death metal', 'genre2': 'metalcore', 'genre3': 'metal', 'freq': 17}}, 'bee gees': {'attr_dict': {'genre1': 'disco', 'genre2': 'pop', 'genre3': 'classic rock', 'freq': 17}}, 'anti-flag': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'hardcore punk', 'freq': 17}}, 'billie holiday': {'attr_dict': {'genre1': 'jazz', 'genre2': 'blues', 'genre3': 'swing', 'freq': 17}}, 'ayreon': {'attr_dict': {'genre1': 'progressive metal', 'genre2': 'progressive rock', 'genre3': 'symphonic metal', 'freq': 17}}, 'hammock': {'attr_dict': {'genre1': 'post-rock', 'genre2': 'ambient', 'genre3': 'instrumental', 'freq': 17}}, 'robert pattinson': {'attr_dict': {'genre1': 'rock', 'genre2': 'folk', 'genre3': 'indie', 'freq': 17}}, 'o teatro mágico': {'attr_dict': {'genre1': 'mpb', 'genre2': 'alternative', 'genre3': 'folk', 'freq': 17}}, 'digitalism': {'attr_dict': {'genre1': 'electronic', 'genre2': 'dance', 'genre3': 'new rave', 'freq': 17}}, 'stevie ray vaughan': {'attr_dict': {'genre1': 'blues', 'genre2': 'blues rock', 'genre3': 'classic rock', 'freq': 17}}, 'circa survive': {'attr_dict': {'genre1': 'indie', 'genre2': 'experimental', 'genre3': 'alternative', 'freq': 17}}, 'cat stevens': {'attr_dict': {'genre1': 'folk', 'genre2': 'classic rock', 'genre3': 'rock', 'freq': 17}}, 'josé gonzález': {'attr_dict': {'genre1': 'indie', 'genre2': 'folk', 'genre3': 'chillout', 'freq': 17}}, 'cinema bizarre': {'attr_dict': {'genre1': 'glam rock', 'genre2': 'rock', 'genre3': 'pop rock', 'freq': 17}}, 'heart': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'rock', 'genre3': 'hard rock', 'freq': 17}}, 'richard ashcroft': {'attr_dict': {'genre1': 'britpop', 'genre2': 'indie', 'genre3': 'rock', 'freq': 17}}, 'joe satriani': {'attr_dict': {'genre1': 'rock', 'genre2': 'instrumental', 'genre3': 'progressive rock', 'freq': 17}}, 'laura marling': {'attr_dict': {'genre1': 'folk', 'genre2': 'indie', 'genre3': 'indie folk', 'freq': 17}}, 'gnarls barkley': {'attr_dict': {'genre1': 'funk', 'genre2': 'soul', 'genre3': 'hip-hop', 'freq': 17}}, 'stereolab': {'attr_dict': {'genre1': 'electronic', 'genre2': 'indie', 'genre3': 'post-rock', 'freq': 17}}, 'ayria': {'attr_dict': {'genre1': 'ebm', 'genre2': 'industrial', 'genre3': 'electronic', 'freq': 17}}, 'the new pornographers': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'indie pop', 'freq': 16}}, 'crowded house': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop', 'genre3': 'alternative', 'freq': 16}}, 'plaid': {'attr_dict': {'genre1': 'idm', 'genre2': 'electronic', 'genre3': 'ambient', 'freq': 16}}, 'caliban': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'hardcore', 'genre3': 'metal', 'freq': 16}}, 'in this moment': {'attr_dict': {'genre1': 'metalcore', 'genre2': 'melodic metalcore', 'genre3': 'metal', 'freq': 16}}, 'дельфин': {'attr_dict': {'genre1': 'alternative', 'genre2': 'experimental', 'genre3': 'electronic', 'freq': 16}}, 'rouge': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'rnb', 'freq': 16}}, 'claudia leitte': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'latin pop', 'freq': 16}}, 'emarosa': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'screamo', 'genre3': 'emo', 'freq': 16}}, 'coheed and cambria': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'rock', 'genre3': 'alternative', 'freq': 16}}, 'eisley': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie pop', 'genre3': 'indie rock', 'freq': 16}}, 'john lee hooker': {'attr_dict': {'genre1': 'blues', 'genre2': 'jazz', 'genre3': 'electric blues', 'freq': 16}}, 'covenant': {'attr_dict': {'genre1': 'ebm', 'genre2': 'futurepop', 'genre3': 'industrial', 'freq': 16}}, 'pennywise': {'attr_dict': {'genre1': 'punk', 'genre2': 'hardcore', 'genre3': 'rock', 'freq': 16}}, 'camp rock': {'attr_dict': {'genre1': 'disney', 'genre2': 'soundtrack', 'genre3': 'pop', 'freq': 16}}, 'front 242': {'attr_dict': {'genre1': 'ebm', 'genre2': 'industrial', 'genre3': 'electronic', 'freq': 16}}, 'joan jett and the blackhearts': {'attr_dict': {'genre1': 'rock', 'genre2': 'classic rock', 'genre3': 'punk', 'freq': 16}}, 'mallu magalhães': {'attr_dict': {'genre1': 'folk', 'genre2': 'indie', 'genre3': 'mpb', 'freq': 16}}, 'kansas': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'progressive rock', 'genre3': 'rock', 'freq': 16}}, 'the dresden dolls': {'attr_dict': {'genre1': 'alternative', 'genre2': 'indie', 'genre3': 'rock', 'freq': 16}}, 'finch': {'attr_dict': {'genre1': 'emo', 'genre2': 'screamo', 'genre3': 'rock', 'freq': 16}}, 'therion': {'attr_dict': {'genre1': 'symphonic metal', 'genre2': 'gothic metal', 'genre3': 'death metal', 'freq': 16}}, 'motion city soundtrack': {'attr_dict': {'genre1': 'pop punk', 'genre2': 'emo', 'genre3': 'alternative', 'freq': 16}}, 'morbid angel': {'attr_dict': {'genre1': 'death metal', 'genre2': 'metal', 'genre3': 'brutal death metal', 'freq': 16}}, 'сплин': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative', 'genre3': 'indie rock', 'freq': 16}}, 'annie': {'attr_dict': {'genre1': 'pop', 'genre2': 'electronic', 'genre3': 'dance', 'freq': 16}}, 'the stone roses': {'attr_dict': {'genre1': 'britpop', 'genre2': 'indie', 'genre3': 'rock', 'freq': 16}}, 'delta goodrem': {'attr_dict': {'genre1': 'pop', 'genre2': 'rock', 'genre3': nan, 'freq': 16}}, 'édith piaf': {'attr_dict': {'genre1': 'chanson', 'genre2': 'jazz', 'genre3': nan, 'freq': 16}}, 'soda stereo': {'attr_dict': {'genre1': 'rock', 'genre2': 'latin rock', 'genre3': nan, 'freq': 16}}, 'iggy pop': {'attr_dict': {'genre1': 'punk', 'genre2': 'rock', 'genre3': 'classic rock', 'freq': 16}}, 'madness': {'attr_dict': {'genre1': 'ska', 'genre2': 'new wave', 'genre3': 'pop', 'freq': 16}}, 'ghostface killah': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'rap', 'genre3': 'east coast rap', 'freq': 16}}, 'buddy holly': {'attr_dict': {'genre1': 'rockabilly', 'genre2': 'rock n roll', 'genre3': 'rock', 'freq': 16}}, 'kid abelha': {'attr_dict': {'genre1': 'mpb', 'genre2': 'pop', 'genre3': 'rock', 'freq': 16}}, 'vangelis': {'attr_dict': {'genre1': 'electronic', 'genre2': 'new age', 'genre3': 'ambient', 'freq': 16}}, 'james horner': {'attr_dict': {'genre1': 'soundtrack', 'genre2': 'instrumental', 'genre3': 'classical', 'freq': 16}}, 'hinder': {'attr_dict': {'genre1': 'rock', 'genre2': 'alternative rock', 'genre3': 'post-grunge', 'freq': 16}}, 'copeland': {'attr_dict': {'genre1': 'indie', 'genre2': 'emo', 'genre3': 'indie rock', 'freq': 16}}, 'hypocrisy': {'attr_dict': {'genre1': 'death metal', 'genre2': 'melodic death metal', 'genre3': 'metal', 'freq': 16}}, 'captain beefheart & his magic band': {'attr_dict': {'genre1': 'experimental', 'genre2': 'psychedelic', 'genre3': 'avant-garde', 'freq': 16}}, 'mr. bungle': {'attr_dict': {'genre1': 'experimental', 'genre2': 'avant-garde', 'genre3': 'alternative', 'freq': 16}}, 'hawthorne heights': {'attr_dict': {'genre1': 'emo', 'genre2': 'screamo', 'genre3': 'rock', 'freq': 16}}, 'madlib': {'attr_dict': {'genre1': 'hip-hop', 'genre2': 'jazz', 'genre3': 'funk', 'freq': 16}}, 'strike': {'attr_dict': {'genre1': 'rock', 'genre2': 'pop punk', 'genre3': 'hardcore', 'freq': 16}}, 'the lonely island': {'attr_dict': {'genre1': 'rap', 'genre2': 'hip-hop', 'genre3': nan, 'freq': 16}}, 'paulina rubio': {'attr_dict': {'genre1': 'pop', 'genre2': 'latin pop', 'genre3': 'dance', 'freq': 16}}, 'from first to last': {'attr_dict': {'genre1': 'post-hardcore', 'genre2': 'screamo', 'genre3': 'emo', 'freq': 16}}, 'bombay bicycle club': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie rock', 'genre3': 'alternative', 'freq': 16}}, 'uriah heep': {'attr_dict': {'genre1': 'classic rock', 'genre2': 'hard rock', 'genre3': 'progressive rock', 'freq': 16}}, 'peter bjorn and john': {'attr_dict': {'genre1': 'indie', 'genre2': 'indie pop', 'genre3': 'indie rock', 'freq': 16}}, 'marillion': {'attr_dict': {'genre1': 'progressive rock', 'genre2': 'rock', 'genre3': 'classic rock', 'freq': 15}}, 'ratt': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'glam metal', 'genre3': 'heavy metal', 'freq': 15}}, 'crashdïet': {'attr_dict': {'genre1': 'hard rock', 'genre2': 'glam rock', 'genre3': 'sleaze rock', 'freq': 15}}, 'mono': {'attr_dict': {'genre1': 'post-rock', 'genre2': 'instrumental', 'genre3': 'ambient', 'freq': 15}}, 'thompson twins': {'attr_dict': {'genre1': 'new wave', 'genre2': 'pop', 'genre3': 'synth pop', 'freq': 15}}, 'blue october': {'attr_dict': {'genre1': 'alternative rock', 'genre2': 'alternative', 'genre3': 'rock', 'freq': 15}}, 'stevie ray vaughan and double trouble': {'attr_dict': {'genre1': 'blues', 'genre2': 'blues rock', 'genre3': 'classic rock', 'freq': 15}}, 'carla bruni': {'attr_dict': {'genre1': 'chanson', 'genre2': 'pop', 'genre3': 'folk', 'freq': 15}}, 'cash cash': {'attr_dict': {'genre1': 'power pop', 'genre2': 'electronic', 'genre3': 'pop', 'freq': 15}}, 'dannii minogue': {'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': 'electronic', 'freq': 15}}})"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G.nodes(data=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/home/luna/anaconda3/lib/python3.7/site-packages/networkx/drawing/nx_pylab.py:611: MatplotlibDeprecationWarning: isinstance(..., numbers.Number)\n",
      "  if cb.is_numlike(alpha):\n"
     ]
    },
    {
     "data": {
      "image/png": "[encoded data, 21128 characters]\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "#nx.draw(G, with_labels=True)\n",
    "pos = nx.layout.spring_layout(G)\n",
    "node_sizes = 3\n",
    "M = G.number_of_edges()\n",
    "#edge_colors = range(2, M + 2)\n",
    "nodes = nx.draw_networkx_nodes(G, pos, node_size=node_sizes, node_color='blue', with_labels = True)\n",
    "edges = nx.draw_networkx_edges(G, pos, node_size=node_sizes, arrowstyle='->',arrowsize=10, edge_color='yellow', \n",
    "                               edge_cmap=plt.cm.Blues, width=2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 73588 characters]\n",
      "text/plain": [
       "<Figure size 432x432 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "mplot = MatrixPlot(G)\n",
    "mplot.draw()\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [],
   "source": [
    "#G = generate_graph(m, df_artists, 0.25)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 3. Estadísticas del grafo\n",
    "\n",
    "https://networkx.github.io/documentation/networkx-1.7/reference/algorithms.clustering.html\n",
    "\n",
    "### 3.1. Estadísticas\n",
    "\n",
    "Vamos a obtener algunas métricas interesantes de nuestro grafo, que nos permitan tener una idea general de cómo es nuestro grafo.\n",
    "\n",
    "1. **Número de nodos**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "4562"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "nx.number_of_nodes(G)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "2. **Número de ejes**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "696740"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "nx.number_of_edges(G)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "3. **Grado máximo**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('the beatles', 3262),\n",
       " ('radiohead', 2908),\n",
       " ('muse', 2890),\n",
       " ('lady gaga', 2814),\n",
       " ('coldplay', 2749),\n",
       " ('nirvana', 2489),\n",
       " ('the killers', 2435),\n",
       " ('depeche mode', 2416),\n",
       " ('the cure', 2364),\n",
       " ('paramore', 2360),\n",
       " ('madonna', 2357),\n",
       " ('pink floyd', 2334),\n",
       " ('red hot chili peppers', 2322),\n",
       " ('linkin park', 2310),\n",
       " ('placebo', 2299),\n",
       " ('britney spears', 2277),\n",
       " ('michael jackson', 2268),\n",
       " ('green day', 2233),\n",
       " ('metallica', 2189),\n",
       " ('queen', 2185),\n",
       " ('katy perry', 2184),\n",
       " ('avril lavigne', 2116),\n",
       " ('kings of leon', 2114),\n",
       " ('arctic monkeys', 2084),\n",
       " ('system of a down', 2074),\n",
       " ('david bowie', 2042),\n",
       " ('rihanna', 2026),\n",
       " ('oasis', 2017),\n",
       " ('u2', 1984),\n",
       " ('björk', 1982),\n",
       " ('led zeppelin', 1970),\n",
       " ('30 seconds to mars', 1961),\n",
       " ('evanescence', 1959),\n",
       " ('daft punk', 1945),\n",
       " ('eminem', 1911),\n",
       " ('ac/dc', 1879),\n",
       " ('beyoncé', 1877),\n",
       " ('foo fighters', 1871),\n",
       " ('nine inch nails', 1852),\n",
       " ('the smiths', 1850),\n",
       " ('lily allen', 1847),\n",
       " (\"guns n' roses\", 1835),\n",
       " ('ke$ha', 1819),\n",
       " ('sigur rós', 1808),\n",
       " ('franz ferdinand', 1807),\n",
       " ('christina aguilera', 1788),\n",
       " ('amy winehouse', 1784),\n",
       " ('iron maiden', 1769),\n",
       " ('marilyn manson', 1757),\n",
       " ('p!nk', 1754),\n",
       " ('gorillaz', 1754),\n",
       " ('rammstein', 1751),\n",
       " ('kylie minogue', 1748),\n",
       " ('black eyed peas', 1745),\n",
       " ('the doors', 1738),\n",
       " ('blink-182', 1713),\n",
       " ('the strokes', 1699),\n",
       " ('the rolling stones', 1677),\n",
       " ('joy division', 1667),\n",
       " ('shakira', 1665),\n",
       " ('glee cast', 1650),\n",
       " ('my chemical romance', 1644),\n",
       " ('death cab for cutie', 1619),\n",
       " ('florence + the machine', 1608),\n",
       " ('keane', 1602),\n",
       " ('pearl jam', 1601),\n",
       " ('taylor swift', 1591),\n",
       " ('arcade fire', 1584),\n",
       " ('the smashing pumpkins', 1577),\n",
       " ('massive attack', 1559),\n",
       " ('mgmt', 1553),\n",
       " ('crystal castles', 1542),\n",
       " ('kelly clarkson', 1539),\n",
       " ('maroon 5', 1528),\n",
       " ('yeah yeah yeahs', 1525),\n",
       " ('portishead', 1525),\n",
       " ('queens of the stone age', 1518),\n",
       " ('the kooks', 1515),\n",
       " ('kanye west', 1494),\n",
       " ('alanis morissette', 1475),\n",
       " ('korn', 1475),\n",
       " ('slipknot', 1474),\n",
       " ('nightwish', 1473),\n",
       " ('incubus', 1468),\n",
       " ('blur', 1457),\n",
       " ('ramones', 1457),\n",
       " ('interpol', 1455),\n",
       " ('miley cyrus', 1447),\n",
       " ('snow patrol', 1445),\n",
       " ('elvis presley', 1442),\n",
       " ('fall out boy', 1432),\n",
       " ('black sabbath', 1430),\n",
       " ('bob dylan', 1428),\n",
       " ('avenged sevenfold', 1424),\n",
       " ('r.e.m.', 1398),\n",
       " ('panic! at the disco', 1395),\n",
       " ('weezer', 1392),\n",
       " ('mariah carey', 1382),\n",
       " ('regina spektor', 1368),\n",
       " ('garbage', 1353)]"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sorted(G.degree, key=lambda x: x[1], reverse=True)[0:100]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "4. **Grado promedio**\n",
    "\n",
    "Es el número de ejes esperado en un nodo cualquiera. Depende de la densidad de la red y se calcula según la siguiente fórmula: \n",
    "\n",
    "k = 2E/N"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "305.4537483559842"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "2*nx.number_of_edges(G)/nx.number_of_nodes(G)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "5. **Asortatividad**\n",
    "\n",
    "La asortatividad es el coeficiente de correlación de Pearson entre pares de nodos. Un valor positivo de r indica una correlación entre nodos de grado parecido, mientras que valores negativos indican correlación entre nodos de grado distinto.\n",
    "\n",
    "(230-231)  \n",
    "En una red \"asortativa\" encontramos un corazón con nodos con gran densidad y, cuanto más nos alejamos del corazón, más dispersos encontramos los nodos.\n",
    "\n",
    "En una red \"disasortativa\" los nodos no se encuentran ordenados según su grado, ni se pueden ordenar mediante él."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "-0.1670364672174702"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "nx.degree_assortativity_coefficient(G)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "6. **Número de triángulos (3-clique)**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'lady gaga': 463359,\n",
       " 'britney spears': 367368,\n",
       " 'rihanna': 322509,\n",
       " 'the beatles': 530300,\n",
       " 'katy perry': 354191,\n",
       " 'madonna': 383410,\n",
       " 'avril lavigne': 346111,\n",
       " 'christina aguilera': 279295,\n",
       " 'muse': 485050,\n",
       " 'paramore': 395984,\n",
       " 'beyoncé': 297677,\n",
       " 'radiohead': 467386,\n",
       " 'coldplay': 461733,\n",
       " 'ke$ha': 291558,\n",
       " 'shakira': 260663,\n",
       " 'p!nk': 279298,\n",
       " 'the killers': 414452,\n",
       " 'black eyed peas': 275900,\n",
       " 'kylie minogue': 275636,\n",
       " 'miley cyrus': 221553,\n",
       " 'depeche mode': 378829,\n",
       " 'linkin park': 381743,\n",
       " 'michael jackson': 374060,\n",
       " 'kelly clarkson': 237188,\n",
       " 'nirvana': 417018,\n",
       " 'pink floyd': 369229,\n",
       " 'glee cast': 265500,\n",
       " 'arctic monkeys': 351413,\n",
       " 'taylor swift': 247946,\n",
       " 'lily allen': 309614,\n",
       " 'placebo': 384128,\n",
       " 'mariah carey': 202892,\n",
       " 'green day': 379237,\n",
       " 'kings of leon': 366443,\n",
       " 'the pussycat dolls': 188967,\n",
       " 'the cure': 381338,\n",
       " 'evanescence': 320323,\n",
       " 'metallica': 345067,\n",
       " 'red hot chili peppers': 388916,\n",
       " '30 seconds to mars': 327532,\n",
       " 'oasis': 342942,\n",
       " 'jennifer lopez': 166796,\n",
       " 'queen': 353537,\n",
       " 'eminem': 302958,\n",
       " 'david bowie': 319079,\n",
       " 'led zeppelin': 303924,\n",
       " 'amy winehouse': 294809,\n",
       " 'u2': 326839,\n",
       " 'the strokes': 284616,\n",
       " 'ashley tisdale': 136955,\n",
       " 'system of a down': 329975,\n",
       " 'ac/dc': 297430,\n",
       " 'iron maiden': 261040,\n",
       " 'franz ferdinand': 294678,\n",
       " 'björk': 314000,\n",
       " 'hilary duff': 161056,\n",
       " 'foo fighters': 314019,\n",
       " 'the smiths': 286107,\n",
       " 'nelly furtado': 186763,\n",
       " \"guns n' roses\": 290651,\n",
       " 'leona lewis': 150285,\n",
       " 'florence + the machine': 269496,\n",
       " 'my chemical romance': 268389,\n",
       " 'david guetta': 195894,\n",
       " 'sigur rós': 275453,\n",
       " 'adam lambert': 184025,\n",
       " '3oh!3': 192411,\n",
       " 'daft punk': 321664,\n",
       " 'blink-182': 267693,\n",
       " 'alicia keys': 181904,\n",
       " 'gwen stefani': 172782,\n",
       " 'selena gomez & the scene': 128537,\n",
       " 'mgmt': 257054,\n",
       " 'joy division': 243861,\n",
       " 'rammstein': 275434,\n",
       " 'justin timberlake': 190869,\n",
       " 'maroon 5': 255605,\n",
       " 'the doors': 259486,\n",
       " 'nine inch nails': 283174,\n",
       " 'panic! at the disco': 227983,\n",
       " 'death cab for cutie': 253749,\n",
       " 'kanye west': 230555,\n",
       " 'marilyn manson': 287665,\n",
       " 'alanis morissette': 247866,\n",
       " 'the rolling stones': 254996,\n",
       " 'fall out boy': 231191,\n",
       " 'the kooks': 246093,\n",
       " 'keane': 268018,\n",
       " 'yeah yeah yeahs': 239470,\n",
       " 'demi lovato': 149416,\n",
       " 'ashlee simpson': 149767,\n",
       " 'arcade fire': 247151,\n",
       " 'cheryl cole': 126241,\n",
       " 'black sabbath': 196072,\n",
       " 'adele': 195878,\n",
       " 'the veronicas': 182016,\n",
       " 'lindsay lohan': 122159,\n",
       " 'interpol': 218930,\n",
       " 'gorillaz': 282268,\n",
       " 'the smashing pumpkins': 254839,\n",
       " 'pearl jam': 253062,\n",
       " 'the pretty reckless': 181236,\n",
       " 'enrique iglesias': 149428,\n",
       " 'pixie lott': 121633,\n",
       " 'avenged sevenfold': 217544,\n",
       " 'snow patrol': 234971,\n",
       " 'queens of the stone age': 230506,\n",
       " 'blur': 227863,\n",
       " 'nickelback': 212349,\n",
       " 'slipknot': 226663,\n",
       " 'massive attack': 220821,\n",
       " 'duran duran': 184636,\n",
       " 'crystal castles': 227339,\n",
       " 'bob dylan': 201593,\n",
       " 't.a.t.u.': 194929,\n",
       " 'portishead': 226932,\n",
       " 'the white stripes': 208410,\n",
       " 'new order': 183773,\n",
       " 'cobra starship': 170983,\n",
       " 'ciara': 102617,\n",
       " 'nicole scherzinger': 88950,\n",
       " 'timbaland': 148977,\n",
       " 'megadeth': 155572,\n",
       " 'ramones': 220670,\n",
       " 'nightwish': 219133,\n",
       " 'justin bieber': 117639,\n",
       " 'within temptation': 198448,\n",
       " 'a-ha': 190755,\n",
       " 'korn': 222362,\n",
       " 'fergie': 106252,\n",
       " 'r.e.m.': 214284,\n",
       " 'elvis presley': 223049,\n",
       " 'incubus': 233166,\n",
       " 'backstreet boys': 144344,\n",
       " 'los hermanos': 182505,\n",
       " 'pet shop boys': 169011,\n",
       " 'regina spektor': 211675,\n",
       " 'the who': 196247,\n",
       " 'the clash': 192051,\n",
       " 'good charlotte': 189199,\n",
       " 'usher': 113548,\n",
       " 'mika': 179705,\n",
       " 'aerosmith': 201603,\n",
       " 'janet jackson': 115966,\n",
       " 'la roux': 172699,\n",
       " 'jordin sparks': 96844,\n",
       " 'kasabian': 186314,\n",
       " 'owl city': 178368,\n",
       " 'three days grace': 185664,\n",
       " 'weezer': 215306,\n",
       " 'nicki minaj': 109708,\n",
       " 'pitty': 137868,\n",
       " 'simple plan': 158055,\n",
       " 'judas priest': 134001,\n",
       " 'moby': 191674,\n",
       " 'robyn': 143655,\n",
       " 'the offspring': 199097,\n",
       " 'bloc party': 193708,\n",
       " 'beck': 195259,\n",
       " 'bon jovi': 180773,\n",
       " 'jay-z': 158734,\n",
       " 'garbage': 216258,\n",
       " \"destiny's child\": 118378,\n",
       " 'sum 41': 175298,\n",
       " 'kiss': 149765,\n",
       " 'boys like girls': 136017,\n",
       " 'the xx': 183058,\n",
       " 'goldfrapp': 174179,\n",
       " 'bullet for my valentine': 157904,\n",
       " 'onerepublic': 162861,\n",
       " 'jonas brothers': 115674,\n",
       " 'céline dion': 127301,\n",
       " 'cansei de ser sexy': 165320,\n",
       " 'sugababes': 108455,\n",
       " 'natasha bedingfield': 95993,\n",
       " 'rise against': 162630,\n",
       " 'cascada': 107385,\n",
       " 'slayer': 122122,\n",
       " 'alice in chains': 165693,\n",
       " 'm.i.a.': 155735,\n",
       " 'duffy': 153728,\n",
       " 'the ting tings': 164117,\n",
       " 'kate nash': 194700,\n",
       " 'tool': 186532,\n",
       " 'belle and sebastian': 157940,\n",
       " 'chris brown': 88659,\n",
       " 'john mayer': 196911,\n",
       " 'vampire weekend': 167088,\n",
       " 'papa roach': 171110,\n",
       " 'the fray': 180341,\n",
       " 'all time low': 129352,\n",
       " 'klaxons': 162284,\n",
       " 'pixies': 162007,\n",
       " 'robbie williams': 182424,\n",
       " 'a day to remember': 143129,\n",
       " 'ellie goulding': 140183,\n",
       " 'scorpions': 155978,\n",
       " 'deep purple': 118004,\n",
       " 'carrie underwood': 105868,\n",
       " 'the prodigy': 190206,\n",
       " 'dream theater': 153129,\n",
       " 'vanessa hudgens': 87994,\n",
       " 'keri hilson': 92871,\n",
       " 'kaiser chiefs': 177052,\n",
       " 'elliott smith': 160659,\n",
       " 'the all-american rejects': 168261,\n",
       " 'air': 161596,\n",
       " 'beirut': 164446,\n",
       " 'johnny cash': 184816,\n",
       " 'rbd': 97813,\n",
       " 'abba': 168298,\n",
       " 'the used': 165510,\n",
       " 'him': 180474,\n",
       " 'jack johnson': 196786,\n",
       " 'pantera': 133169,\n",
       " 'bring me the horizon': 139401,\n",
       " 'bruno mars': 96845,\n",
       " 'motörhead': 109521,\n",
       " 'porcupine tree': 161131,\n",
       " 'röyksopp': 152468,\n",
       " 'flyleaf': 163545,\n",
       " 'the cranberries': 194002,\n",
       " 'hurts': 149567,\n",
       " 'jessie j': 76071,\n",
       " 'jimi hendrix': 155508,\n",
       " 'lifehouse': 154912,\n",
       " 'mcfly': 122725,\n",
       " 'breaking benjamin': 154139,\n",
       " 'phoenix': 167153,\n",
       " 'boards of canada': 129965,\n",
       " 'escape the fate': 133544,\n",
       " 'colbie caillat': 112535,\n",
       " 'taio cruz': 93039,\n",
       " 'yann tiersen': 175529,\n",
       " 'travis': 168002,\n",
       " 'rage against the machine': 159755,\n",
       " 'little boots': 123178,\n",
       " 'kerli': 102504,\n",
       " 'opeth': 135518,\n",
       " 'the velvet underground': 136190,\n",
       " 'deftones': 170184,\n",
       " 'anahí': 75082,\n",
       " 'girls aloud': 104241,\n",
       " 'in flames': 123942,\n",
       " 'sophie ellis-bextor': 116140,\n",
       " 'iamx': 157715,\n",
       " 'ozzy osbourne': 118185,\n",
       " 'creedence clearwater revival': 139450,\n",
       " 'aphex twin': 123876,\n",
       " 'belinda': 84865,\n",
       " 'jessica simpson': 80659,\n",
       " 'john lennon': 145883,\n",
       " 'tori amos': 167946,\n",
       " 'fresno': 114606,\n",
       " 'boa': 85026,\n",
       " 'marina & the diamonds': 129598,\n",
       " 'kelly rowland': 67397,\n",
       " 'a perfect circle': 159219,\n",
       " 'b.o.b': 96825,\n",
       " 'feist': 136384,\n",
       " 'james blunt': 156319,\n",
       " 'legião urbana': 138125,\n",
       " 'the saturdays': 81684,\n",
       " 'jojo': 85741,\n",
       " 'disturbed': 133732,\n",
       " 'jason mraz': 144037,\n",
       " 'morrissey': 137073,\n",
       " 'spice girls': 97953,\n",
       " 'sufjan stevens': 120310,\n",
       " 'modest mouse': 135293,\n",
       " 'sonic youth': 123567,\n",
       " 'cyndi lauper': 107879,\n",
       " 'no doubt': 139095,\n",
       " 'the police': 147785,\n",
       " 'the libertines': 123064,\n",
       " 'dave gahan': 111531,\n",
       " 'bat for lashes': 139509,\n",
       " 'cat power': 134819,\n",
       " 'leighton meester': 78778,\n",
       " 'dido': 133319,\n",
       " 'explosions in the sky': 125589,\n",
       " 't.i.': 85836,\n",
       " 'ne-yo': 74090,\n",
       " 'ladytron': 139873,\n",
       " 'apocalyptica': 130862,\n",
       " 'sia': 137372,\n",
       " 'manic street preachers': 139302,\n",
       " 'the beach boys': 137396,\n",
       " '3 doors down': 137019,\n",
       " 'the national': 124734,\n",
       " 'animal collective': 105987,\n",
       " 'cher': 91057,\n",
       " 'van halen': 100652,\n",
       " 'metric': 138116,\n",
       " 'norah jones': 147643,\n",
       " 'the kinks': 115315,\n",
       " 'jesse mccartney': 76582,\n",
       " 'eric clapton': 104597,\n",
       " 'children of bodom': 102293,\n",
       " 'justice': 124760,\n",
       " 'damien rice': 151930,\n",
       " 'limp bizkit': 125945,\n",
       " 'tegan and sara': 142153,\n",
       " 'lacuna coil': 137256,\n",
       " 'paul mccartney': 130822,\n",
       " 'tears for fears': 101471,\n",
       " 'faith no more': 117898,\n",
       " 'the last shadow puppets': 108940,\n",
       " 'emily osment': 58719,\n",
       " 'alice cooper': 84728,\n",
       " 'the mars volta': 133297,\n",
       " 'mötley crüe': 103825,\n",
       " 'david archuleta': 73696,\n",
       " 'whitney houston': 89112,\n",
       " 'white lies': 140294,\n",
       " 'the fratellis': 103564,\n",
       " 'editors': 119724,\n",
       " 'tom waits': 113837,\n",
       " 'kings of convenience': 111751,\n",
       " 'hannah montana': 71482,\n",
       " 'misfits': 121172,\n",
       " 'bob marley': 135617,\n",
       " 'erasure': 86423,\n",
       " 'roxette': 121925,\n",
       " 'lady antebellum': 84172,\n",
       " 'atreyu': 107218,\n",
       " 'god is an astronaut': 114328,\n",
       " 'm83': 124484,\n",
       " 'inxs': 96898,\n",
       " 'jimmy eat world': 132344,\n",
       " 'alexisonfire': 113382,\n",
       " 'afi': 129228,\n",
       " 'anathema': 111573,\n",
       " 'enya': 128157,\n",
       " 'scissor sisters': 117872,\n",
       " 'shania twain': 87298,\n",
       " 'audioslave': 124111,\n",
       " 'billy talent': 115029,\n",
       " 'bruce springsteen': 113878,\n",
       " 'michael bublé': 122074,\n",
       " 'mogwai': 98073,\n",
       " 'yellowcard': 106359,\n",
       " 'killswitch engage': 94727,\n",
       " 'aly & aj': 67716,\n",
       " 'bad religion': 109454,\n",
       " 'stone sour': 107913,\n",
       " 'blind guardian': 90114,\n",
       " 'lostprophets': 103176,\n",
       " 'kraftwerk': 89877,\n",
       " \"lil' wayne\": 103913,\n",
       " 'skillet': 99633,\n",
       " 'blondie': 116496,\n",
       " 'hans zimmer': 128883,\n",
       " 'hot chip': 109037,\n",
       " 'patrick wolf': 109707,\n",
       " 'kelis': 76318,\n",
       " 'nx zero': 83575,\n",
       " 'pj harvey': 110882,\n",
       " 'rush': 92397,\n",
       " 'frank sinatra': 131177,\n",
       " 'she wants revenge': 112764,\n",
       " 'bonobo': 84193,\n",
       " 'kid cudi': 110584,\n",
       " 'far east movement': 62838,\n",
       " 'the knife': 104858,\n",
       " 'jeffree star': 78000,\n",
       " 'george michael': 97991,\n",
       " 'sepultura': 88835,\n",
       " 'paris hilton': 60441,\n",
       " 'siouxsie and the banshees': 87863,\n",
       " 'the human league': 69965,\n",
       " 'underoath': 97503,\n",
       " 'the devil wears prada': 81216,\n",
       " 'kat deluna': 57755,\n",
       " 'bright eyes': 105276,\n",
       " 'tokio hotel': 90765,\n",
       " 'thom yorke': 106062,\n",
       " 'alexandra burke': 53139,\n",
       " 'pendulum': 123112,\n",
       " 'the jimi hendrix experience': 81550,\n",
       " 'martin l. gore': 75099,\n",
       " 'metro station': 90305,\n",
       " 'as i lay dying': 82820,\n",
       " 'whitesnake': 69361,\n",
       " 'the chemical brothers': 116270,\n",
       " 'band of horses': 121568,\n",
       " 'alesana': 84318,\n",
       " 'she & him': 112367,\n",
       " 'girlicious': 42946,\n",
       " 'fleetwood mac': 98016,\n",
       " 'daughtry': 96299,\n",
       " 'dire straits': 105134,\n",
       " 'calvin harris': 97564,\n",
       " 'kate bush': 101927,\n",
       " 'enigma': 102657,\n",
       " 'flo rida': 61562,\n",
       " 'orchestral manoeuvres in the dark': 64789,\n",
       " 'hey monday': 85939,\n",
       " 'janis joplin': 95987,\n",
       " 'my bloody valentine': 86597,\n",
       " 'cut copy': 92702,\n",
       " 'jethro tull': 83708,\n",
       " 'enter shikari': 88577,\n",
       " 'babyshambles': 98223,\n",
       " 'helloween': 76299,\n",
       " 'simon & garfunkel': 94621,\n",
       " 'lykke li': 94400,\n",
       " 'joss stone': 98116,\n",
       " 'def leppard': 84796,\n",
       " 'neil young': 90577,\n",
       " 'miranda cosgrove': 45754,\n",
       " 'jeff buckley': 101395,\n",
       " 'the verve': 101604,\n",
       " 'arch enemy': 81661,\n",
       " 'pink': 83994,\n",
       " 'mindless self indulgence': 100470,\n",
       " 'the rasmus': 98894,\n",
       " 'ana carolina': 67376,\n",
       " 'fleet foxes': 83902,\n",
       " 'elton john': 104648,\n",
       " 'the kills': 93827,\n",
       " 'natalia kills': 53504,\n",
       " 'suede': 85166,\n",
       " 'dio': 58948,\n",
       " 'creed': 96393,\n",
       " 'laura pausini': 74649,\n",
       " 'skid row': 68755,\n",
       " 'imogen heap': 106872,\n",
       " 'cocteau twins': 76750,\n",
       " 'the birthday massacre': 95076,\n",
       " 'the black keys': 97539,\n",
       " 'selena gomez': 51840,\n",
       " 'iron & wine': 98865,\n",
       " 'the cardigans': 102732,\n",
       " 'sonata arctica': 73695,\n",
       " '宇多田ヒカル': 74633,\n",
       " 'brandy': 55521,\n",
       " 'anberlin': 96221,\n",
       " 'death': 66635,\n",
       " 'willow smith': 41494,\n",
       " '浜崎あゆみ': 65078,\n",
       " 'genesis': 85297,\n",
       " 'katatonia': 82107,\n",
       " 'taking back sunday': 86915,\n",
       " 'a fine frenzy': 93943,\n",
       " 'akon': 60783,\n",
       " 'city and colour': 103104,\n",
       " 'gary numan': 69831,\n",
       " 'epica': 91627,\n",
       " 'kreator': 52945,\n",
       " 'múm': 71222,\n",
       " '50 cent': 67192,\n",
       " 'foals': 85695,\n",
       " 'fiona apple': 98380,\n",
       " 'two door cinema club': 84582,\n",
       " 'silverchair': 99557,\n",
       " 'broken social scene': 67632,\n",
       " 'of montreal': 79646,\n",
       " 'lynyrd skynyrd': 77077,\n",
       " 'soundgarden': 84733,\n",
       " 'angels & airwaves': 89889,\n",
       " 'simple minds': 54940,\n",
       " 'the shins': 80972,\n",
       " 'dashboard confessional': 99380,\n",
       " 'rainbow': 52719,\n",
       " 'kris allen': 65211,\n",
       " 'mew': 102642,\n",
       " 'george harrison': 81471,\n",
       " 'drake': 71313,\n",
       " 'eurythmics': 65696,\n",
       " \"plain white t's\": 90194,\n",
       " 'saosin': 76487,\n",
       " 'asking alexandria': 62268,\n",
       " 'new found glory': 76759,\n",
       " 'tiësto': 78194,\n",
       " 'stereophonics': 103579,\n",
       " 'chico buarque': 82455,\n",
       " 'lamb of god': 65727,\n",
       " 'akira yamaoka': 88964,\n",
       " 'black label society': 65717,\n",
       " 'sex pistols': 82367,\n",
       " 'danity kane': 41488,\n",
       " 'the subways': 90485,\n",
       " 'charlie brown jr.': 70766,\n",
       " 'pitbull': 60010,\n",
       " 'matanza': 74103,\n",
       " 'jamiroquai': 108809,\n",
       " 'the hives': 80149,\n",
       " 'empire of the sun': 87071,\n",
       " 'cream': 66940,\n",
       " 'de/vision': 55533,\n",
       " 'kt tunstall': 84307,\n",
       " 'engenheiros do hawaii': 87026,\n",
       " 'blessthefall': 59189,\n",
       " 'ultravox': 48932,\n",
       " 'prince': 77938,\n",
       " 'tenacious d': 83027,\n",
       " 'recoil': 62244,\n",
       " 'jason derülo': 49996,\n",
       " 'nofx': 68761,\n",
       " 'black rebel motorcycle club': 78964,\n",
       " 'simon curtis': 53644,\n",
       " 'camouflage': 56871,\n",
       " '65daysofstatic': 69231,\n",
       " 'trivium': 65233,\n",
       " 'hole': 95642,\n",
       " 'sara bareilles': 74595,\n",
       " 'beastie boys': 87403,\n",
       " 'katharine mcphee': 48674,\n",
       " 'ladyhawke': 77576,\n",
       " 'and one': 57824,\n",
       " 'eagles': 72505,\n",
       " 'funeral for a friend': 83747,\n",
       " 'sting': 84690,\n",
       " 'anastacia': 58356,\n",
       " 'tarja': 76167,\n",
       " 'silverstein': 72894,\n",
       " 'johann sebastian bach': 73830,\n",
       " 'mastodon': 79812,\n",
       " 'alphaville': 51370,\n",
       " 'king crimson': 50089,\n",
       " 'the script': 82770,\n",
       " 'the sisters of mercy': 66670,\n",
       " 'marisa monte': 75944,\n",
       " 'atb': 85277,\n",
       " 'emilie autumn': 85874,\n",
       " 'amy macdonald': 76911,\n",
       " 'ludwig van beethoven': 77683,\n",
       " 'wanessa': 36955,\n",
       " 'frank zappa': 57541,\n",
       " 'gossip': 84674,\n",
       " 'armin van buuren': 82048,\n",
       " 'bauhaus': 60823,\n",
       " 'wolfmother': 81437,\n",
       " 'bon iver': 70790,\n",
       " 'brand new': 74764,\n",
       " '2pac': 48364,\n",
       " 'electric light orchestra': 61418,\n",
       " 'nick drake': 61998,\n",
       " 'yazoo': 42378,\n",
       " 'wilco': 60544,\n",
       " 'ricky martin': 52937,\n",
       " '*nsync': 56652,\n",
       " 'lcd soundsystem': 67870,\n",
       " 'sade': 73743,\n",
       " 'deerhunter': 52487,\n",
       " 'seether': 73057,\n",
       " 'clint mansell': 75392,\n",
       " 'echo & the bunnymen': 68782,\n",
       " '倖田來未': 44446,\n",
       " 'róisín murphy': 63133,\n",
       " 'antony and the johnsons': 66520,\n",
       " 'spoon': 60105,\n",
       " 'james morrison': 79560,\n",
       " 'grizzly bear': 61906,\n",
       " 'cássia eller': 71514,\n",
       " 'mando diao': 74357,\n",
       " 'sublime': 74901,\n",
       " 'anthrax': 42983,\n",
       " 'cocorosie': 67967,\n",
       " 'wolfgang amadeus mozart': 68668,\n",
       " 'switchfoot': 70125,\n",
       " 'high school musical': 44475,\n",
       " 'we the kings': 61548,\n",
       " 'pulp': 68702,\n",
       " 'heidi montag': 39020,\n",
       " 'hadouken!': 73177,\n",
       " 'september': 58805,\n",
       " 'bob marley & the wailers': 70409,\n",
       " 'amon amarth': 46228,\n",
       " 'devendra banhart': 61066,\n",
       " 'nas': 36921,\n",
       " 'gloria': 58658,\n",
       " 'miles davis': 50183,\n",
       " 'ulver': 45067,\n",
       " 'beach house': 52819,\n",
       " 'dead can dance': 62443,\n",
       " 'skank': 68503,\n",
       " 'alphabeat': 63648,\n",
       " 'pain of salvation': 59161,\n",
       " 'sky ferreira': 48668,\n",
       " 'mandy moore': 48788,\n",
       " 'maxïmo park': 68768,\n",
       " 'hoobastank': 64862,\n",
       " 'the postal service': 67666,\n",
       " 'billy idol': 60958,\n",
       " 'goo goo dolls': 80678,\n",
       " 'parkway drive': 45253,\n",
       " 'infected mushroom': 66406,\n",
       " 'talking heads': 61129,\n",
       " 'dimmu borgir': 48625,\n",
       " 'cradle of filth': 57708,\n",
       " 'yelle': 60014,\n",
       " 'nouvelle vague': 74203,\n",
       " 'thalía': 41867,\n",
       " 'bruce dickinson': 36943,\n",
       " 'flying lotus': 40837,\n",
       " '安室奈美恵': 46797,\n",
       " 'the academy is...': 72053,\n",
       " 'toni braxton': 47920,\n",
       " 'razorlight': 66720,\n",
       " \"jack's mannequin\": 72843,\n",
       " 'darin': 52207,\n",
       " 'the red jumpsuit apparatus': 58606,\n",
       " 'blackfield': 54907,\n",
       " 'amon tobin': 28492,\n",
       " 'stevie wonder': 57048,\n",
       " 'ace of base': 67227,\n",
       " 'sarah mclachlan': 67373,\n",
       " 'zz top': 49979,\n",
       " 'p.o.d.': 60630,\n",
       " 'kate voegele': 58027,\n",
       " 'the maine': 58088,\n",
       " 'paradise lost': 62165,\n",
       " 'natalie imbruglia': 64065,\n",
       " 'kamelot': 57425,\n",
       " 'unkle': 52361,\n",
       " 'sarah brightman': 60253,\n",
       " 'lenny kravitz': 76825,\n",
       " 'john williams': 68761,\n",
       " 'matchbox twenty': 77265,\n",
       " 'pavement': 53051,\n",
       " 'cute is what we aim for': 52283,\n",
       " 'manu chao': 68231,\n",
       " 'raimundos': 58570,\n",
       " 'blonde redhead': 56248,\n",
       " 'all that remains': 51239,\n",
       " 'dulce maría': 33521,\n",
       " 'ok go': 77377,\n",
       " 'august burns red': 40078,\n",
       " 'jet': 60953,\n",
       " 'bryan adams': 64251,\n",
       " 'inna': 42631,\n",
       " 'talk talk': 41495,\n",
       " 'apparat': 41308,\n",
       " 'w.a.s.p.': 45187,\n",
       " 'archive': 53855,\n",
       " 'shontelle': 35535,\n",
       " 'corinne bailey rae': 62876,\n",
       " 'angra': 54900,\n",
       " 'the horrors': 62202,\n",
       " 'neutral milk hotel': 49495,\n",
       " 'little joy': 53635,\n",
       " 'westlife': 50046,\n",
       " 'red': 51824,\n",
       " 'capital inicial': 58987,\n",
       " 'ryan adams': 62552,\n",
       " '4minute': 33288,\n",
       " 'testament': 33655,\n",
       " 'combichrist': 43637,\n",
       " 'burial': 55578,\n",
       " 'the flaming lips': 59481,\n",
       " 'forfun': 53580,\n",
       " 'autechre': 26533,\n",
       " '소녀시대': 37325,\n",
       " 'phil collins': 63803,\n",
       " 'david gilmour': 48894,\n",
       " 'ivete sangalo': 34119,\n",
       " 'you me at six': 56979,\n",
       " 'dark tranquillity': 40681,\n",
       " 'lupe fiasco': 46462,\n",
       " 'relient k': 62369,\n",
       " 'uffie': 56224,\n",
       " 'breathe carolina': 41642,\n",
       " 'cpm 22': 48792,\n",
       " 'the runaways': 66582,\n",
       " 'journey': 61949,\n",
       " 'venetian snares': 28289,\n",
       " 'soft cell': 43462,\n",
       " 'godsmack': 51837,\n",
       " 'machine head': 44322,\n",
       " 'slash': 58879,\n",
       " 'the decemberists': 48445,\n",
       " 'dragonette': 48741,\n",
       " 'brandon flowers': 67103,\n",
       " 'the distillers': 67837,\n",
       " 'soilwork': 50293,\n",
       " 'the corrs': 71800,\n",
       " 'alter bridge': 55498,\n",
       " 'sandy e junior': 43620,\n",
       " 'billy joel': 60179,\n",
       " 'snoop dogg': 37048,\n",
       " 'camel': 43337,\n",
       " 'basshunter': 53041,\n",
       " '2ne1': 38221,\n",
       " 'apoptygma berzerk': 48554,\n",
       " 'eyes set to kill': 50701,\n",
       " 'tricky': 49209,\n",
       " 'mylène farmer': 58444,\n",
       " 'jay sean': 40501,\n",
       " 'morcheeba': 55220,\n",
       " 'we are scientists': 60048,\n",
       " 'clan of xymox': 39129,\n",
       " 'the sounds': 68959,\n",
       " 'fear factory': 43663,\n",
       " 'japan': 40133,\n",
       " 'yes': 43360,\n",
       " 'mayday parade': 44421,\n",
       " 'móveis coloniais de acaju': 52248,\n",
       " 'nina simone': 57744,\n",
       " 'janelle monáe': 55543,\n",
       " 'oomph!': 62069,\n",
       " 'the raconteurs': 49313,\n",
       " 'vnv nation': 44023,\n",
       " 'stone temple pilots': 61002,\n",
       " 'the album leaf': 42569,\n",
       " 'suicide silence': 44621,\n",
       " 'brian eno': 47040,\n",
       " 'jennifer hudson': 31617,\n",
       " 'eels': 60441,\n",
       " 'amorphis': 42305,\n",
       " 'rufus wainwright': 60306,\n",
       " 'aaliyah': 38356,\n",
       " 'christina milian': 34364,\n",
       " 'at the drive-in': 53254,\n",
       " 'frankmusik': 50062,\n",
       " '[unknown]': 54811,\n",
       " 'mary j. blige': 34575,\n",
       " 'versaemerge': 45392,\n",
       " 'jamie cullum': 64810,\n",
       " 'aretha franklin': 54888,\n",
       " 'christian chávez': 33282,\n",
       " 'the dillinger escape plan': 43450,\n",
       " 'the bravery': 61935,\n",
       " 'chiodos': 48049,\n",
       " 't. rex': 45233,\n",
       " 'adriana calcanhotto': 55775,\n",
       " 'eddie vedder': 53015,\n",
       " 'stars': 47492,\n",
       " 'serj tankian': 50666,\n",
       " 'avantasia': 41129,\n",
       " 'david cook': 55856,\n",
       " 'the radio dept.': 47537,\n",
       " 'dave matthews band': 60834,\n",
       " 'hammerfall': 42400,\n",
       " 'deadmau5': 54257,\n",
       " 'the presets': 50772,\n",
       " 'zемфира': 48368,\n",
       " 'poets of the fall': 62952,\n",
       " 'forever the sickest kids': 41203,\n",
       " 'dead kennedys': 47734,\n",
       " 'story of the year': 46472,\n",
       " 'roxy music': 42759,\n",
       " 'nitzer ebb': 37810,\n",
       " 'ashanti': 27477,\n",
       " 'michelle branch': 44629,\n",
       " 'take that': 56302,\n",
       " 'four year strong': 34973,\n",
       " 'rilo kiley': 51765,\n",
       " 'the yardbirds': 33980,\n",
       " 'rascal flatts': 46658,\n",
       " 'the 69 eyes': 49791,\n",
       " 'edguy': 34514,\n",
       " 'nelly': 41029,\n",
       " 'zero 7': 50346,\n",
       " 'os mutantes': 46931,\n",
       " 'the dead weather': 54541,\n",
       " 'rancid': 43673,\n",
       " 'spandau ballet': 36007,\n",
       " 'shinedown': 53189,\n",
       " 'dead by april': 41186,\n",
       " 'raul seixas': 48458,\n",
       " 'cazuza': 55328,\n",
       " 'amerie': 28661,\n",
       " 'biffy clyro': 55844,\n",
       " 'paolo nutini': 58782,\n",
       " 'andrew bird': 45471,\n",
       " 'sneaker pimps': 54582,\n",
       " 'chevelle': 50160,\n",
       " 'the jesus and mary chain': 47299,\n",
       " 'brad paisley': 36256,\n",
       " 'brokencyde': 39639,\n",
       " 'squarepusher': 29828,\n",
       " 'isis': 38327,\n",
       " 'blutengel': 39902,\n",
       " 'cake': 56083,\n",
       " 'chuck berry': 38937,\n",
       " 'passion pit': 56828,\n",
       " 'dj shadow': 40408,\n",
       " 'hellogoodbye': 59044,\n",
       " 'riverside': 44214,\n",
       " 'mr. big': 44175,\n",
       " 'wu-tang clan': 31838,\n",
       " 'ólafur arnalds': 35252,\n",
       " 'exodus': 26202,\n",
       " 'the vines': 43887,\n",
       " 'adema': 39464,\n",
       " 'leonard cohen': 47743,\n",
       " 'europe': 37227,\n",
       " 'hatebreed': 35762,\n",
       " 'fever ray': 53398,\n",
       " 'vive la fête': 52566,\n",
       " 'cannibal corpse': 31203,\n",
       " 'queensrÿche': 34524,\n",
       " 'prefuse 73': 24611,\n",
       " '植松伸夫': 51072,\n",
       " 'skinny puppy': 35289,\n",
       " 'tina turner': 40452,\n",
       " 'lights': 42127,\n",
       " 'hollywood undead': 49061,\n",
       " 'manowar': 30021,\n",
       " 'howard shore': 49785,\n",
       " 'abc': 28207,\n",
       " 'thrice': 45278,\n",
       " 'sandy leah': 34834,\n",
       " 'shiny toy guns': 63059,\n",
       " 'keyshia cole': 24981,\n",
       " 'staind': 43451,\n",
       " 'millencolin': 45985,\n",
       " 'j dilla': 27798,\n",
       " 'caetano veloso': 46017,\n",
       " 'alkaline trio': 49515,\n",
       " 'burzum': 24907,\n",
       " 'frédéric chopin': 45660,\n",
       " 'john frusciante': 45903,\n",
       " 'sodom': 26042,\n",
       " 'ratatat': 50611,\n",
       " 'faithless': 47380,\n",
       " 'vanessa da mata': 48116,\n",
       " 'josh groban': 48351,\n",
       " 'converge': 31341,\n",
       " 'bush': 53637,\n",
       " 'static-x': 41554,\n",
       " 'stratovarius': 33464,\n",
       " 'santigold': 50538,\n",
       " 'five finger death punch': 36944,\n",
       " 'dirty pretty things': 45268,\n",
       " 'cypress hill': 34836,\n",
       " 'yngwie malmsteen': 30437,\n",
       " '36 crazyfists': 40541,\n",
       " 'behemoth': 21990,\n",
       " 'jefferson airplane': 35944,\n",
       " 'thievery corporation': 38558,\n",
       " 'jessie james': 38488,\n",
       " 'iced earth': 29722,\n",
       " 'the flashbulb': 23133,\n",
       " 'alexandre desplat': 46628,\n",
       " \"the b-52's\": 40456,\n",
       " '+44': 47564,\n",
       " 'cine': 35143,\n",
       " 'cassie': 24491,\n",
       " 'a flock of seagulls': 26144,\n",
       " 'restart': 29935,\n",
       " 'diana vickers': 33445,\n",
       " 'era': 43504,\n",
       " 'deathstars': 31697,\n",
       " 'kristinia debarge': 24516,\n",
       " 'boston': 33929,\n",
       " 'mudvayne': 38153,\n",
       " 'protest the hero': 37356,\n",
       " 'blue öyster cult': 31231,\n",
       " 'poison': 30304,\n",
       " 'moptop': 41624,\n",
       " 'peter gabriel': 40271,\n",
       " 'attack attack!': 33513,\n",
       " 'erykah badu': 35853,\n",
       " 'coil': 29119,\n",
       " 'sheryl crow': 50903,\n",
       " 'jorge & mateus': 33074,\n",
       " 'senses fail': 40044,\n",
       " 'the wombats': 44007,\n",
       " 'shayne ward': 32709,\n",
       " 'lolene': 24957,\n",
       " 'yeasayer': 44930,\n",
       " 'tokyo police club': 43483,\n",
       " 'type o negative': 46635,\n",
       " 'die ärzte': 46375,\n",
       " 'katie melua': 46559,\n",
       " 'stars of the lid': 30151,\n",
       " 'the donnas': 49244,\n",
       " 'elvis costello': 38341,\n",
       " 'jónsi': 44744,\n",
       " 'telefon tel aviv': 25560,\n",
       " 'mesh': 30058,\n",
       " 'the roots': 33876,\n",
       " 'vanessa carlton': 39507,\n",
       " 'maria gadú': 40506,\n",
       " 'dredg': 36814,\n",
       " 'camera obscura': 38997,\n",
       " 'hooverphonic': 44624,\n",
       " 'bowling for soup': 43751,\n",
       " 'julieta venegas': 43234,\n",
       " 'jewel': 42171,\n",
       " 'a skylit drive': 32450,\n",
       " 'melanie c': 33550,\n",
       " 'b.b. king': 24132,\n",
       " 'fugazi': 32370,\n",
       " 'mf doom': 24517,\n",
       " 'guano apes': 44109,\n",
       " 'santana': 45382,\n",
       " 'yui': 33957,\n",
       " \"howlin' wolf\": 21469,\n",
       " 'alesha dixon': 25019,\n",
       " 'luan santana': 26703,\n",
       " 'sick puppies': 46626,\n",
       " 'bloodhound gang': 44789,\n",
       " 'slowdive': 28387,\n",
       " 'agalloch': 28007,\n",
       " 'syd barrett': 38249,\n",
       " 'the cribs': 39522,\n",
       " 'noize mc': 34217,\n",
       " 'say anything': 32663,\n",
       " 'pain': 33310,\n",
       " 'automatic loveletter': 43234,\n",
       " 'dixie chicks': 33958,\n",
       " 'eluveitie': 35806,\n",
       " 'dr. dre': 27087,\n",
       " 'the dandy warhols': 50932,\n",
       " 'the mountain goats': 33765,\n",
       " 'alejandro sanz': 42683,\n",
       " 'the magnetic fields': 40700,\n",
       " 'icehouse': 25622,\n",
       " 'melvins': 26016,\n",
       " 'savage garden': 46618,\n",
       " 'client': 33852,\n",
       " 'king diamond': 29047,\n",
       " 'amiina': 33214,\n",
       " 'danny elfman': 45869,\n",
       " 'sonic syndicate': 33807,\n",
       " 'bee gees': 43000,\n",
       " 'anti-flag': 37408,\n",
       " 'billie holiday': 38434,\n",
       " 'ayreon': 34114,\n",
       " 'hammock': 27573,\n",
       " 'robert pattinson': 40364,\n",
       " 'o teatro mágico': 51373,\n",
       " 'digitalism': 31444,\n",
       " 'stevie ray vaughan': 24577,\n",
       " 'circa survive': 40506,\n",
       " 'cat stevens': 41738,\n",
       " 'josé gonzález': 41480,\n",
       " 'cinema bizarre': 40601,\n",
       " 'heart': 35650,\n",
       " 'richard ashcroft': 43816,\n",
       " 'joe satriani': 37317,\n",
       " 'laura marling': 41244,\n",
       " 'gnarls barkley': 50242,\n",
       " 'stereolab': 29816,\n",
       " 'ayria': 28162,\n",
       " 'the new pornographers': 29523,\n",
       " 'crowded house': 37273,\n",
       " 'plaid': 13331,\n",
       " 'caliban': 33768,\n",
       " 'in this moment': 37418,\n",
       " 'дельфин': 28905,\n",
       " 'rouge': 22802,\n",
       " 'claudia leitte': 21206,\n",
       " 'emarosa': 34587,\n",
       " 'coheed and cambria': 45968,\n",
       " 'eisley': 45790,\n",
       " 'john lee hooker': 16740,\n",
       " 'covenant': 24715,\n",
       " 'pennywise': 30798,\n",
       " 'camp rock': 19933,\n",
       " 'front 242': 27693,\n",
       " 'joan jett and the blackhearts': 44254,\n",
       " 'mallu magalhães': 45320,\n",
       " 'kansas': 32408,\n",
       " 'the dresden dolls': 40579,\n",
       " 'finch': 37633,\n",
       " 'therion': 39438,\n",
       " 'motion city soundtrack': 40294,\n",
       " 'morbid angel': 23339,\n",
       " 'сплин': 33629,\n",
       " 'annie': 31027,\n",
       " 'the stone roses': 39001,\n",
       " 'delta goodrem': 30951,\n",
       " 'édith piaf': 42884,\n",
       " 'soda stereo': 36283,\n",
       " 'iggy pop': 40693,\n",
       " 'madness': 36422,\n",
       " 'ghostface killah': 18296,\n",
       " 'buddy holly': 22910,\n",
       " 'kid abelha': 41558,\n",
       " 'vangelis': 30728,\n",
       " 'james horner': 35869,\n",
       " 'hinder': 44768,\n",
       " 'copeland': 34717,\n",
       " 'hypocrisy': 24376,\n",
       " 'captain beefheart & his magic band': 28608,\n",
       " 'mr. bungle': 29943,\n",
       " 'hawthorne heights': 37504,\n",
       " 'madlib': 19041,\n",
       " 'strike': 36482,\n",
       " 'the lonely island': 45005,\n",
       " 'paulina rubio': 28734,\n",
       " 'from first to last': 35105,\n",
       " 'bombay bicycle club': 44708,\n",
       " 'uriah heep': 24591,\n",
       " 'peter bjorn and john': 46373,\n",
       " 'marillion': 30172,\n",
       " 'ratt': 19521,\n",
       " 'crashdïet': 22690,\n",
       " 'mono': 20240,\n",
       " 'thompson twins': 21564,\n",
       " 'blue october': 43212,\n",
       " 'stevie ray vaughan and double trouble': 15373,\n",
       " 'carla bruni': 44306,\n",
       " 'cash cash': 31852,\n",
       " 'dannii minogue': 27663,\n",
       " ...}"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "nx.triangles(G)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "7. **Promedio de triángulos formados por un eje**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0.2815371315722328"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "nx.transitivity(G)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "8. **Coeficiente de clustering local promedio**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 99,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'lady gaga': 0.11707219829954893,\n",
       " 'britney spears': 0.14177381671841824,\n",
       " 'rihanna': 0.15721984570948047,\n",
       " 'the beatles': 0.09970498380146543,\n",
       " 'katy perry': 0.1485802714616274,\n",
       " 'madonna': 0.1380888341125989,\n",
       " 'avril lavigne': 0.15467472862397047,\n",
       " 'christina aguilera': 0.17482401485248295,\n",
       " 'muse': 0.11619063360485603,\n",
       " 'paramore': 0.14225504918056345,\n",
       " 'beyoncé': 0.1690745223573888,\n",
       " 'radiohead': 0.1105773712269724,\n",
       " 'coldplay': 0.12224453195366,\n",
       " 'ke$ha': 0.17633088212614553,\n",
       " 'shakira': 0.18816629129129128,\n",
       " 'p!nk': 0.18167129683533229,\n",
       " 'the killers': 0.13985715707828353,\n",
       " 'black eyed peas': 0.18131752582739677,\n",
       " 'kylie minogue': 0.1805226088790329,\n",
       " 'miley cyrus': 0.21177310618334685,\n",
       " 'depeche mode': 0.12985514101984014,\n",
       " 'linkin park': 0.14314136852032044,\n",
       " 'michael jackson': 0.1455045904391589,\n",
       " 'kelly clarkson': 0.20041386035043782,\n",
       " 'nirvana': 0.13468198982274418,\n",
       " 'pink floyd': 0.1356157747103791,\n",
       " 'glee cast': 0.19515960086002537,\n",
       " 'arctic monkeys': 0.1619052138553301,\n",
       " 'taylor swift': 0.19602876241752942,\n",
       " 'lily allen': 0.1816151165457616,\n",
       " 'placebo': 0.1454175974645199,\n",
       " 'mariah carey': 0.21261465558525827,\n",
       " 'green day': 0.15218007181299728,\n",
       " 'kings of leon': 0.1640710455301931,\n",
       " 'the pussycat dolls': 0.22311444227588137,\n",
       " 'the cure': 0.13653025026977522,\n",
       " 'evanescence': 0.16702096763008373,\n",
       " 'metallica': 0.14409215764713545,\n",
       " 'red hot chili peppers': 0.1443272877197709,\n",
       " '30 seconds to mars': 0.17043157905691597,\n",
       " 'oasis': 0.16867636990343982,\n",
       " 'jennifer lopez': 0.23340843257161248,\n",
       " 'queen': 0.14817017460038054,\n",
       " 'eminem': 0.16600392875635958,\n",
       " 'david bowie': 0.15311913798473123,\n",
       " 'led zeppelin': 0.15670507072826784,\n",
       " 'amy winehouse': 0.18536363613499696,\n",
       " 'u2': 0.16614967140045223,\n",
       " 'the strokes': 0.19731415486557255,\n",
       " 'ashley tisdale': 0.290216695697872,\n",
       " 'system of a down': 0.15349809112988272,\n",
       " 'ac/dc': 0.16857470126917032,\n",
       " 'iron maiden': 0.16692714394972233,\n",
       " 'franz ferdinand': 0.1805933734995137,\n",
       " 'björk': 0.15994531296560513,\n",
       " 'hilary duff': 0.2542822182751135,\n",
       " 'foo fighters': 0.17950251088239583,\n",
       " 'the smiths': 0.16728224167921302,\n",
       " 'nelly furtado': 0.23621361077489114,\n",
       " \"guns n' roses\": 0.1727294607757199,\n",
       " 'leona lewis': 0.24683176317552918,\n",
       " 'florence + the machine': 0.20858371490401137,\n",
       " 'my chemical romance': 0.19872629292152952,\n",
       " 'david guetta': 0.23671818073062242,\n",
       " 'sigur rós': 0.16862459657869347,\n",
       " 'adam lambert': 0.24748181121316853,\n",
       " '3oh!3': 0.24067018562065343,\n",
       " 'daft punk': 0.17014398002687062,\n",
       " 'blink-182': 0.1825601093343372,\n",
       " 'alicia keys': 0.24462943288640246,\n",
       " 'gwen stefani': 0.2633530716294383,\n",
       " 'selena gomez & the scene': 0.298190954307561,\n",
       " 'mgmt': 0.21330016396598536,\n",
       " 'joy division': 0.1756150570606167,\n",
       " 'rammstein': 0.17977253814147018,\n",
       " 'justin timberlake': 0.2575298217776896,\n",
       " 'maroon 5': 0.21909726150923858,\n",
       " 'the doors': 0.17190730681909275,\n",
       " 'nine inch nails': 0.1652098626275214,\n",
       " 'panic! at the disco': 0.2344744244406391,\n",
       " 'death cab for cutie': 0.19373539343900575,\n",
       " 'kanye west': 0.20672554024985856,\n",
       " 'marilyn manson': 0.1864750564938424,\n",
       " 'alanis morissette': 0.22801186670652898,\n",
       " 'the rolling stones': 0.18144971344727132,\n",
       " 'fall out boy': 0.22564113074811926,\n",
       " 'the kooks': 0.2145807447323332,\n",
       " 'keane': 0.2089970297902138,\n",
       " 'yeah yeah yeahs': 0.2060754700744374,\n",
       " 'demi lovato': 0.2797732843251988,\n",
       " 'ashlee simpson': 0.28762074859326686,\n",
       " 'arcade fire': 0.1971316130349611,\n",
       " 'cheryl cole': 0.2922346840746785,\n",
       " 'black sabbath': 0.19190103108927462,\n",
       " 'adele': 0.2465642032652342,\n",
       " 'the veronicas': 0.25771593139128884,\n",
       " 'lindsay lohan': 0.3202062379915125,\n",
       " 'interpol': 0.2069702255184182,\n",
       " 'gorillaz': 0.18360315367498362,\n",
       " 'the smashing pumpkins': 0.2050727623290383,\n",
       " 'pearl jam': 0.19758119925046846,\n",
       " 'the pretty reckless': 0.278177958622341,\n",
       " 'enrique iglesias': 0.24721316899660847,\n",
       " 'pixie lott': 0.3166487038107288,\n",
       " 'avenged sevenfold': 0.21471491626331457,\n",
       " 'snow patrol': 0.22522117532038072,\n",
       " 'queens of the stone age': 0.20019576117137092,\n",
       " 'blur': 0.2148240400642597,\n",
       " 'nickelback': 0.23285796529319847,\n",
       " 'slipknot': 0.20879033825503107,\n",
       " 'massive attack': 0.18182634106817758,\n",
       " 'duran duran': 0.21600462342268986,\n",
       " 'crystal castles': 0.19134491642615883,\n",
       " 'bob dylan': 0.1978578397021037,\n",
       " 't.a.t.u.': 0.2330095114461295,\n",
       " 'portishead': 0.1952859171292113,\n",
       " 'the white stripes': 0.23335154671957506,\n",
       " 'new order': 0.21499500455088924,\n",
       " 'cobra starship': 0.26710000531128836,\n",
       " 'ciara': 0.3276028298152192,\n",
       " 'nicole scherzinger': 0.35440223757500416,\n",
       " 'timbaland': 0.2684604031852609,\n",
       " 'megadeth': 0.21589231196225367,\n",
       " 'ramones': 0.2080426436981001,\n",
       " 'nightwish': 0.2021283464683137,\n",
       " 'justin bieber': 0.3291199798564774,\n",
       " 'within temptation': 0.22658381916042683,\n",
       " 'a-ha': 0.23086698416348464,\n",
       " 'korn': 0.20455074396890738,\n",
       " 'fergie': 0.35517848845566286,\n",
       " 'r.e.m.': 0.21944018605165574,\n",
       " 'elvis presley': 0.21468467055067514,\n",
       " 'incubus': 0.21654045680725276,\n",
       " 'backstreet boys': 0.2816039705176578,\n",
       " 'los hermanos': 0.2623668434898866,\n",
       " 'pet shop boys': 0.21930654334396057,\n",
       " 'regina spektor': 0.2263835949297775,\n",
       " 'the who': 0.2227224648405226,\n",
       " 'the clash': 0.21894886849455622,\n",
       " 'good charlotte': 0.24829428014619517,\n",
       " 'usher': 0.32223168170724786,\n",
       " 'mika': 0.27390505803363896,\n",
       " 'aerosmith': 0.2294920174165457,\n",
       " 'janet jackson': 0.2971308220125754,\n",
       " 'la roux': 0.27510354275519305,\n",
       " 'jordin sparks': 0.33666016595923676,\n",
       " 'kasabian': 0.2538801361556469,\n",
       " 'owl city': 0.2504391193183015,\n",
       " 'three days grace': 0.24927699681798043,\n",
       " 'weezer': 0.22239230851863787,\n",
       " 'nicki minaj': 0.3188861598383885,\n",
       " 'pitty': 0.32970549198263804,\n",
       " 'simple plan': 0.2789632532034311,\n",
       " 'judas priest': 0.23874605804692928,\n",
       " 'moby': 0.22527090238112027,\n",
       " 'robyn': 0.2813702735258689,\n",
       " 'the offspring': 0.2294000596840891,\n",
       " 'bloc party': 0.23226768794680006,\n",
       " 'beck': 0.213800647339906,\n",
       " 'bon jovi': 0.25339108373106817,\n",
       " 'jay-z': 0.23984285876175726,\n",
       " 'garbage': 0.23644366890145502,\n",
       " \"destiny's child\": 0.2972245516950472,\n",
       " 'sum 41': 0.24125293312139165,\n",
       " 'kiss': 0.2437636925320564,\n",
       " 'boys like girls': 0.30623906626770503,\n",
       " 'the xx': 0.2578877374492136,\n",
       " 'goldfrapp': 0.24496784936739482,\n",
       " 'bullet for my valentine': 0.24067613190364054,\n",
       " 'onerepublic': 0.2874457269935402,\n",
       " 'jonas brothers': 0.320581999584286,\n",
       " 'céline dion': 0.2632165512906401,\n",
       " 'cansei de ser sexy': 0.28906393432590505,\n",
       " 'sugababes': 0.3245668900174471,\n",
       " 'natasha bedingfield': 0.35977362592058165,\n",
       " 'rise against': 0.23065533175052974,\n",
       " 'cascada': 0.29972284324315274,\n",
       " 'slayer': 0.2179928634032534,\n",
       " 'alice in chains': 0.233816650085727,\n",
       " 'm.i.a.': 0.28063849379472405,\n",
       " 'duffy': 0.2958071157805615,\n",
       " 'the ting tings': 0.2918517596429143,\n",
       " 'kate nash': 0.2534562211981567,\n",
       " 'tool': 0.2142716015346796,\n",
       " 'belle and sebastian': 0.2365823334681466,\n",
       " 'chris brown': 0.3444365450286127,\n",
       " 'john mayer': 0.24093426862976136,\n",
       " 'vampire weekend': 0.27098061157467096,\n",
       " 'papa roach': 0.24724163242187275,\n",
       " 'the fray': 0.2802305977049002,\n",
       " 'all time low': 0.2943477459478033,\n",
       " 'klaxons': 0.26897112957465885,\n",
       " 'pixies': 0.25129831854563506,\n",
       " 'robbie williams': 0.27044167811889863,\n",
       " 'a day to remember': 0.2526192241166296,\n",
       " 'ellie goulding': 0.3077326659861482,\n",
       " 'scorpions': 0.24539195881868012,\n",
       " 'deep purple': 0.2510910386943709,\n",
       " 'carrie underwood': 0.31682492750326946,\n",
       " 'the prodigy': 0.2095061230693992,\n",
       " 'dream theater': 0.22353456392739057,\n",
       " 'vanessa hudgens': 0.38454546249115046,\n",
       " 'keri hilson': 0.31614475713249884,\n",
       " 'kaiser chiefs': 0.27609242793297134,\n",
       " 'elliott smith': 0.23982427306639917,\n",
       " 'the all-american rejects': 0.2763559856517797,\n",
       " 'air': 0.24247826119576552,\n",
       " 'beirut': 0.23842255971582876,\n",
       " 'johnny cash': 0.22542935206869633,\n",
       " 'rbd': 0.3789424339747638,\n",
       " 'abba': 0.24821615562733212,\n",
       " 'the used': 0.2674571932750296,\n",
       " 'him': 0.2447088494315293,\n",
       " 'jack johnson': 0.23163393584413505,\n",
       " 'pantera': 0.23459908921949457,\n",
       " 'bring me the horizon': 0.25506326218814895,\n",
       " 'bruno mars': 0.3731121898597627,\n",
       " 'motörhead': 0.2529849970548491,\n",
       " 'porcupine tree': 0.22286352892035027,\n",
       " 'röyksopp': 0.22957622626963478,\n",
       " 'flyleaf': 0.27555791442363586,\n",
       " 'the cranberries': 0.2513295064276211,\n",
       " 'hurts': 0.28893293383791846,\n",
       " 'jessie j': 0.42902825559754104,\n",
       " 'jimi hendrix': 0.23053898873456172,\n",
       " 'lifehouse': 0.2940337970317984,\n",
       " 'mcfly': 0.35415608551112754,\n",
       " 'breaking benjamin': 0.27988378955013843,\n",
       " 'phoenix': 0.2710860275216711,\n",
       " 'boards of canada': 0.2126860481290861,\n",
       " 'escape the fate': 0.28474443278833933,\n",
       " 'colbie caillat': 0.3343186476931761,\n",
       " 'taio cruz': 0.3792092928469533,\n",
       " 'yann tiersen': 0.22378113613589368,\n",
       " 'travis': 0.26954239305872424,\n",
       " 'rage against the machine': 0.23642783885819657,\n",
       " 'little boots': 0.31418550968614095,\n",
       " 'kerli': 0.3769180704018709,\n",
       " 'opeth': 0.2304453551447957,\n",
       " 'the velvet underground': 0.2530457838399266,\n",
       " 'deftones': 0.22011883913258298,\n",
       " 'anahí': 0.42062038173027905,\n",
       " 'girls aloud': 0.33532454498079556,\n",
       " 'in flames': 0.24275935011898817,\n",
       " 'sophie ellis-bextor': 0.31080068507814174,\n",
       " 'iamx': 0.24550482479285068,\n",
       " 'ozzy osbourne': 0.2638464406348299,\n",
       " 'creedence clearwater revival': 0.24566410344493478,\n",
       " 'aphex twin': 0.231055900621118,\n",
       " 'belinda': 0.4086137994125861,\n",
       " 'jessica simpson': 0.34530750986788594,\n",
       " 'john lennon': 0.27105571689492625,\n",
       " 'tori amos': 0.2430829353017803,\n",
       " 'fresno': 0.3568046176693099,\n",
       " 'boa': 0.3426257253384913,\n",
       " 'marina & the diamonds': 0.33815525114155254,\n",
       " 'kelly rowland': 0.3959033341948824,\n",
       " 'a perfect circle': 0.25272736796491446,\n",
       " 'b.o.b': 0.33482605989349196,\n",
       " 'feist': 0.2791516396965814,\n",
       " 'james blunt': 0.2938349160520004,\n",
       " 'legião urbana': 0.33916263354720527,\n",
       " 'the saturdays': 0.3982254290171607,\n",
       " 'jojo': 0.37692493680624245,\n",
       " 'disturbed': 0.2538326775501992,\n",
       " 'jason mraz': 0.29721637571705667,\n",
       " 'morrissey': 0.2596679535801833,\n",
       " 'spice girls': 0.3423182571135015,\n",
       " 'sufjan stevens': 0.2680238283007855,\n",
       " 'modest mouse': 0.249451933306414,\n",
       " 'sonic youth': 0.25445990053644424,\n",
       " 'cyndi lauper': 0.32048661655922284,\n",
       " 'no doubt': 0.32618789661043185,\n",
       " 'the police': 0.25223458490569256,\n",
       " 'the libertines': 0.2968938854778591,\n",
       " 'dave gahan': 0.2763055213538428,\n",
       " 'bat for lashes': 0.2855479095966563,\n",
       " 'cat power': 0.29782670165858144,\n",
       " 'leighton meester': 0.4255142165759226,\n",
       " 'dido': 0.29144204999059997,\n",
       " 'explosions in the sky': 0.22760907978795705,\n",
       " 't.i.': 0.3297820432532532,\n",
       " 'ne-yo': 0.36007795452005,\n",
       " 'ladytron': 0.2696757674903744,\n",
       " 'apocalyptica': 0.25682128173174107,\n",
       " 'sia': 0.27066881039075674,\n",
       " 'manic street preachers': 0.2623562758373904,\n",
       " 'the beach boys': 0.2654210445993745,\n",
       " '3 doors down': 0.3131290278349102,\n",
       " 'the national': 0.2732458542355802,\n",
       " 'animal collective': 0.27973395621362684,\n",
       " 'cher': 0.3233271193963604,\n",
       " 'van halen': 0.28631653206880564,\n",
       " 'metric': 0.30383144038136217,\n",
       " 'norah jones': 0.2640475862599324,\n",
       " 'the kinks': 0.2733742511634082,\n",
       " 'jesse mccartney': 0.40429732868757257,\n",
       " 'eric clapton': 0.2632125943037752,\n",
       " 'children of bodom': 0.2699842960264988,\n",
       " 'justice': 0.2863365854890053,\n",
       " 'damien rice': 0.2839308907764042,\n",
       " 'limp bizkit': 0.26798804166267703,\n",
       " 'tegan and sara': 0.28803840160803695,\n",
       " 'lacuna coil': 0.281505728314239,\n",
       " 'paul mccartney': 0.29579668528274583,\n",
       " 'tears for fears': 0.3096979963069786,\n",
       " 'faith no more': 0.25558879639264653,\n",
       " 'the last shadow puppets': 0.33747823770314056,\n",
       " 'emily osment': 0.45417910678650436,\n",
       " 'alice cooper': 0.29299398298637525,\n",
       " 'the mars volta': 0.25202398913984714,\n",
       " 'mötley crüe': 0.30919622383037015,\n",
       " 'david archuleta': 0.4227021136252832,\n",
       " 'whitney houston': 0.3189657023817194,\n",
       " 'white lies': 0.29245585874799357,\n",
       " 'the fratellis': 0.3356963420365958,\n",
       " 'editors': 0.32262706452056233,\n",
       " 'tom waits': 0.235377432614611,\n",
       " 'kings of convenience': 0.26608267894644105,\n",
       " 'hannah montana': 0.39383371073756357,\n",
       " 'misfits': 0.2411368688346139,\n",
       " 'bob marley': 0.2544275347636522,\n",
       " 'erasure': 0.2957362351572392,\n",
       " 'roxette': 0.3109895295302955,\n",
       " 'lady antebellum': 0.340149359886202,\n",
       " 'atreyu': 0.29162824728752385,\n",
       " 'god is an astronaut': 0.22842757242757242,\n",
       " 'm83': 0.25949844697838276,\n",
       " 'inxs': 0.32728623781939775,\n",
       " 'jimmy eat world': 0.2923592149793671,\n",
       " 'alexisonfire': 0.29584344422700587,\n",
       " 'afi': 0.2784090174635798,\n",
       " 'anathema': 0.2528108218340018,\n",
       " 'enya': 0.2784084984358707,\n",
       " 'scissor sisters': 0.3393357342937175,\n",
       " 'shania twain': 0.3439258080274832,\n",
       " 'audioslave': 0.3067877889012483,\n",
       " 'billy talent': 0.3064081766384043,\n",
       " 'bruce springsteen': 0.27233442144659276,\n",
       " 'michael bublé': 0.3163514140369699,\n",
       " 'mogwai': 0.24679530733342392,\n",
       " 'yellowcard': 0.3167426069865094,\n",
       " 'killswitch engage': 0.2688205914070038,\n",
       " 'aly & aj': 0.4046829338257705,\n",
       " 'bad religion': 0.26816707337390605,\n",
       " 'stone sour': 0.3091797266710598,\n",
       " 'blind guardian': 0.29284414402703757,\n",
       " 'lostprophets': 0.33614825240441004,\n",
       " 'kraftwerk': 0.2819219513113196,\n",
       " \"lil' wayne\": 0.28798725143767756,\n",
       " 'skillet': 0.3125241137888526,\n",
       " 'blondie': 0.2931557729764008,\n",
       " 'hans zimmer': 0.28115653693365883,\n",
       " 'hot chip': 0.30006494614423546,\n",
       " 'patrick wolf': 0.32198106977767993,\n",
       " 'kelis': 0.4095301977408709,\n",
       " 'nx zero': 0.4049117503137067,\n",
       " 'pj harvey': 0.28866049160952395,\n",
       " 'rush': 0.2758358186231047,\n",
       " 'frank sinatra': 0.2559161727580973,\n",
       " 'she wants revenge': 0.2928912242242268,\n",
       " 'bonobo': 0.24354635286494491,\n",
       " 'kid cudi': 0.29388909263895313,\n",
       " 'far east movement': 0.4465622001918772,\n",
       " 'the knife': 0.2806090772853779,\n",
       " 'jeffree star': 0.4038709476987123,\n",
       " 'george michael': 0.31682460854017735,\n",
       " 'sepultura': 0.26979706377214774,\n",
       " 'paris hilton': 0.45137898329387693,\n",
       " 'siouxsie and the banshees': 0.2783866419530124,\n",
       " 'the human league': 0.3121834772326707,\n",
       " 'underoath': 0.2998053631223076,\n",
       " 'the devil wears prada': 0.2994513598017816,\n",
       " 'kat deluna': 0.41512132712322464,\n",
       " 'bright eyes': 0.30748470988206017,\n",
       " 'tokio hotel': 0.3908561241231413,\n",
       " 'thom yorke': 0.3120388349514563,\n",
       " 'alexandra burke': 0.45274772088267873,\n",
       " 'pendulum': 0.2783638953580392,\n",
       " 'the jimi hendrix experience': 0.2827473822897164,\n",
       " 'martin l. gore': 0.32434568541072817,\n",
       " 'metro station': 0.36389829142488717,\n",
       " 'as i lay dying': 0.29964254186022954,\n",
       " 'whitesnake': 0.3189451418586472,\n",
       " 'the chemical brothers': 0.2854982038192475,\n",
       " 'band of horses': 0.28757155698538106,\n",
       " 'alesana': 0.3397727272727273,\n",
       " 'she & him': 0.33958916984747245,\n",
       " 'girlicious': 0.5023452761109356,\n",
       " 'fleetwood mac': 0.2801529728524635,\n",
       " 'daughtry': 0.3227416230419133,\n",
       " 'dire straits': 0.28595985888868036,\n",
       " 'calvin harris': 0.3445932581729818,\n",
       " 'kate bush': 0.3270507452150615,\n",
       " 'enigma': 0.25432118339852994,\n",
       " 'flo rida': 0.459750715069864,\n",
       " 'orchestral manoeuvres in the dark': 0.32186095034650636,\n",
       " 'hey monday': 0.3733540127117356,\n",
       " 'janis joplin': 0.3127264315687961,\n",
       " 'my bloody valentine': 0.28213373471994163,\n",
       " 'cut copy': 0.3020238746839732,\n",
       " 'jethro tull': 0.30204228909576386,\n",
       " 'enter shikari': 0.30231573917643645,\n",
       " 'babyshambles': 0.33611538856380246,\n",
       " 'helloween': 0.30143886597449393,\n",
       " 'simon & garfunkel': 0.29680270764520816,\n",
       " 'lykke li': 0.340622068268745,\n",
       " 'joss stone': 0.3667257219319295,\n",
       " 'def leppard': 0.33406873946136756,\n",
       " 'neil young': 0.2935997795821786,\n",
       " 'miranda cosgrove': 0.5054294393813864,\n",
       " 'jeff buckley': 0.3141050662007522,\n",
       " 'the verve': 0.3676030043850128,\n",
       " 'arch enemy': 0.2838792884680231,\n",
       " 'pink': 0.40316797465620274,\n",
       " 'mindless self indulgence': 0.2851183381576707,\n",
       " 'the rasmus': 0.3305822143332297,\n",
       " 'ana carolina': 0.4082775337070141,\n",
       " 'fleet foxes': 0.31968755953514955,\n",
       " 'elton john': 0.3101315528211694,\n",
       " 'the kills': 0.3594862894296234,\n",
       " 'natalia kills': 0.4654140570633264,\n",
       " 'suede': 0.34514676619939777,\n",
       " 'dio': 0.3335766629884277,\n",
       " 'creed': 0.3431882510013351,\n",
       " 'laura pausini': 0.36166625485094694,\n",
       " 'skid row': 0.34048927846283367,\n",
       " 'imogen heap': 0.31214622434852707,\n",
       " 'cocteau twins': 0.282217883237177,\n",
       " 'the birthday massacre': 0.29972951331311515,\n",
       " 'the black keys': 0.317782860270545,\n",
       " 'selena gomez': 0.4703534001723903,\n",
       " 'iron & wine': 0.31011508746835803,\n",
       " 'the cardigans': 0.3364170140583094,\n",
       " 'sonata arctica': 0.30470106673282066,\n",
       " '宇多田ヒカル': 0.3232825088798406,\n",
       " 'brandy': 0.40673831344366057,\n",
       " 'anberlin': 0.32840492158569257,\n",
       " 'death': 0.2929332893724585,\n",
       " 'willow smith': 0.5359527776701412,\n",
       " '浜崎あゆみ': 0.3492152075340077,\n",
       " 'genesis': 0.30046744938900455,\n",
       " 'katatonia': 0.26479466456826994,\n",
       " 'taking back sunday': 0.3386043648660231,\n",
       " 'a fine frenzy': 0.3753546056784855,\n",
       " 'akon': 0.39113144533889305,\n",
       " 'city and colour': 0.33166702051687863,\n",
       " 'gary numan': 0.29123188949778545,\n",
       " 'epica': 0.30005141287155623,\n",
       " 'kreator': 0.2976009802929637,\n",
       " 'múm': 0.29278981143089705,\n",
       " '50 cent': 0.3175800543542479,\n",
       " 'foals': 0.3059159092694002,\n",
       " 'fiona apple': 0.3402033335638703,\n",
       " 'two door cinema club': 0.3901185825442436,\n",
       " 'silverchair': 0.37313119577235165,\n",
       " 'broken social scene': 0.310994619947579,\n",
       " 'of montreal': 0.3111536508184553,\n",
       " 'lynyrd skynyrd': 0.3097141020231853,\n",
       " 'soundgarden': 0.3301037064740578,\n",
       " 'angels & airwaves': 0.35314153711975677,\n",
       " 'simple minds': 0.36258043227190234,\n",
       " 'the shins': 0.3328715370416809,\n",
       " 'dashboard confessional': 0.3188782467792912,\n",
       " 'rainbow': 0.3161502341786954,\n",
       " 'kris allen': 0.4319324391455539,\n",
       " 'mew': 0.3071706673290379,\n",
       " 'george harrison': 0.3292342881158671,\n",
       " 'drake': 0.3000063103426516,\n",
       " 'eurythmics': 0.3525314587749188,\n",
       " \"plain white t's\": 0.37507225403479005,\n",
       " 'saosin': 0.3189908999157554,\n",
       " 'asking alexandria': 0.3773246477806393,\n",
       " 'new found glory': 0.33445750164485866,\n",
       " 'tiësto': 0.3196157776415287,\n",
       " 'stereophonics': 0.32984001426624376,\n",
       " 'chico buarque': 0.3690153325635724,\n",
       " 'lamb of god': 0.30781010719754975,\n",
       " 'akira yamaoka': 0.27018884427787865,\n",
       " 'black label society': 0.3380921512943985,\n",
       " 'sex pistols': 0.3357122478092521,\n",
       " 'danity kane': 0.4670441625108352,\n",
       " 'the subways': 0.3751995521738229,\n",
       " 'charlie brown jr.': 0.4045250834590936,\n",
       " 'pitbull': 0.4154292399604023,\n",
       " 'matanza': 0.34492180227145786,\n",
       " 'jamiroquai': 0.3095200844282744,\n",
       " 'the hives': 0.35234201560611056,\n",
       " 'empire of the sun': 0.3336015294843354,\n",
       " 'cream': 0.3466041184481,\n",
       " 'de/vision': 0.3295922606682889,\n",
       " 'kt tunstall': 0.4034194496150368,\n",
       " 'engenheiros do hawaii': 0.39896392059780866,\n",
       " 'blessthefall': 0.3586668686562642,\n",
       " 'ultravox': 0.3571001123874301,\n",
       " 'prince': 0.3044809938664687,\n",
       " 'tenacious d': 0.3137498677388636,\n",
       " 'recoil': 0.37849572212999616,\n",
       " 'jason derülo': 0.42247403689338436,\n",
       " 'nofx': 0.31144578313253013,\n",
       " 'black rebel motorcycle club': 0.36200430935680555,\n",
       " 'simon curtis': 0.49512206377774703,\n",
       " 'camouflage': 0.3261980555794545,\n",
       " '65daysofstatic': 0.2689595692357898,\n",
       " 'trivium': 0.3455046211699902,\n",
       " 'hole': 0.3715652109726771,\n",
       " 'sara bareilles': 0.39637921048296676,\n",
       " 'beastie boys': 0.26349617883360216,\n",
       " 'katharine mcphee': 0.5085942969394899,\n",
       " 'ladyhawke': 0.3805711314210586,\n",
       " 'and one': 0.3143958547419816,\n",
       " 'eagles': 0.32255266143203504,\n",
       " 'funeral for a friend': 0.34526872144989196,\n",
       " 'sting': 0.33085908504902917,\n",
       " 'anastacia': 0.40852672477160556,\n",
       " 'tarja': 0.3588957055214724,\n",
       " 'silverstein': 0.3413743203562949,\n",
       " 'johann sebastian bach': 0.25002031859557866,\n",
       " 'mastodon': 0.2856774692352297,\n",
       " 'alphaville': 0.31020531400966184,\n",
       " 'king crimson': 0.2882737187419067,\n",
       " 'the script': 0.41907587617591363,\n",
       " 'the sisters of mercy': 0.318039574865953,\n",
       " 'marisa monte': 0.367940388463346,\n",
       " 'atb': 0.3416943475003105,\n",
       " 'emilie autumn': 0.3392673714818502,\n",
       " 'amy macdonald': 0.33611128106071864,\n",
       " 'ludwig van beethoven': 0.2935554816572698,\n",
       " 'wanessa': 0.5562998645190426,\n",
       " 'frank zappa': 0.2736451140405943,\n",
       " 'gossip': 0.3700366217125676,\n",
       " 'armin van buuren': 0.3152285414609595,\n",
       " 'bauhaus': 0.30600457827082234,\n",
       " 'wolfmother': 0.37109084860995295,\n",
       " 'bon iver': 0.3255161631489401,\n",
       " 'brand new': 0.34693915432305006,\n",
       " '2pac': 0.2971948259440194,\n",
       " 'electric light orchestra': 0.3252985884907709,\n",
       " 'nick drake': 0.33598153125812885,\n",
       " 'yazoo': 0.37017496353106627,\n",
       " 'wilco': 0.35564745412251225,\n",
       " 'ricky martin': 0.4382709916712202,\n",
       " '*nsync': 0.474806396459821,\n",
       " 'lcd soundsystem': 0.3414585062762559,\n",
       " 'sade': 0.32418067919551596,\n",
       " 'deerhunter': 0.34388840841785256,\n",
       " 'seether': 0.37465128205128206,\n",
       " 'clint mansell': 0.3064080211013164,\n",
       " 'echo & the bunnymen': 0.3096739918329124,\n",
       " '倖田來未': 0.4228482271122908,\n",
       " 'róisín murphy': 0.3839015877069765,\n",
       " 'antony and the johnsons': 0.32028504020415044,\n",
       " 'spoon': 0.37457700001869615,\n",
       " 'james morrison': 0.40410812787614664,\n",
       " 'grizzly bear': 0.3491399244261463,\n",
       " 'cássia eller': 0.43335252234509924,\n",
       " 'mando diao': 0.3788872413388976,\n",
       " 'sublime': 0.3026841135393767,\n",
       " 'anthrax': 0.35877467551437753,\n",
       " 'cocorosie': 0.3441262543922716,\n",
       " 'wolfgang amadeus mozart': 0.32060134930083806,\n",
       " 'switchfoot': 0.3607698481293987,\n",
       " 'high school musical': 0.5278618479615453,\n",
       " 'we the kings': 0.40325497287522605,\n",
       " 'pulp': 0.3511923322683706,\n",
       " 'heidi montag': 0.5362026081818306,\n",
       " 'hadouken!': 0.3406116179482406,\n",
       " 'september': 0.4116699919493157,\n",
       " 'bob marley & the wailers': 0.28292045888333034,\n",
       " 'amon amarth': 0.32362350799817985,\n",
       " 'devendra banhart': 0.3562673200898457,\n",
       " 'nas': 0.2811357821637427,\n",
       " 'gloria': 0.4537072846247854,\n",
       " 'miles davis': 0.280193857097392,\n",
       " 'ulver': 0.26564222265447707,\n",
       " 'beach house': 0.3576197053406998,\n",
       " 'dead can dance': 0.30065482209061584,\n",
       " 'skank': 0.4165556913609525,\n",
       " 'alphabeat': 0.43897897110855155,\n",
       " 'pain of salvation': 0.3416432787036716,\n",
       " 'sky ferreira': 0.49264095556230386,\n",
       " 'mandy moore': 0.4426620695912535,\n",
       " 'maxïmo park': 0.3865412071543399,\n",
       " 'hoobastank': 0.4027995131281516,\n",
       " 'the postal service': 0.3178628134424412,\n",
       " 'billy idol': 0.34964008144770425,\n",
       " 'goo goo dolls': 0.3884539457845828,\n",
       " 'parkway drive': 0.31798666301269757,\n",
       " 'infected mushroom': 0.31678020111817123,\n",
       " 'talking heads': 0.35300809627756025,\n",
       " 'dimmu borgir': 0.33043838725680075,\n",
       " 'cradle of filth': 0.332122816609594,\n",
       " 'yelle': 0.4232955747718264,\n",
       " 'nouvelle vague': 0.32814600580202363,\n",
       " 'thalía': 0.4646725860155383,\n",
       " 'bruce dickinson': 0.4158795915840191,\n",
       " 'flying lotus': 0.29021070959030665,\n",
       " '安室奈美恵': 0.4053794178794179,\n",
       " 'the academy is...': 0.4118820597246993,\n",
       " 'toni braxton': 0.4221059492979582,\n",
       " 'razorlight': 0.4293353410165827,\n",
       " \"jack's mannequin\": 0.3883344528676071,\n",
       " 'darin': 0.4637530535198756,\n",
       " 'the red jumpsuit apparatus': 0.3784792632680211,\n",
       " 'blackfield': 0.3507986199846665,\n",
       " 'amon tobin': 0.2607295155475027,\n",
       " 'stevie wonder': 0.2953849977476428,\n",
       " 'ace of base': 0.35839490771838917,\n",
       " 'sarah mclachlan': 0.37491930996104617,\n",
       " 'zz top': 0.32627414627140444,\n",
       " 'p.o.d.': 0.3454149765279613,\n",
       " 'kate voegele': 0.4384194023648521,\n",
       " 'the maine': 0.42554376094298296,\n",
       " 'paradise lost': 0.33140880060561473,\n",
       " 'natalie imbruglia': 0.40930871454127266,\n",
       " 'kamelot': 0.372188735498088,\n",
       " 'unkle': 0.3405925781377045,\n",
       " 'sarah brightman': 0.339817269189555,\n",
       " 'lenny kravitz': 0.36648253095960465,\n",
       " 'john williams': 0.33627249608763693,\n",
       " 'matchbox twenty': 0.38383963834173723,\n",
       " 'pavement': 0.3578723691311387,\n",
       " 'cute is what we aim for': 0.3579311289107962,\n",
       " 'manu chao': 0.32051691579214386,\n",
       " 'raimundos': 0.3922159498027871,\n",
       " 'blonde redhead': 0.3725649942043385,\n",
       " 'all that remains': 0.3826575954235529,\n",
       " 'dulce maría': 0.5583948293381753,\n",
       " 'ok go': 0.408494351177278,\n",
       " 'august burns red': 0.3500842934635442,\n",
       " 'jet': 0.4770711853794075,\n",
       " 'bryan adams': 0.35399414885704367,\n",
       " 'inna': 0.4219846572630537,\n",
       " 'talk talk': 0.3520851894276866,\n",
       " 'apparat': 0.2796825912685516,\n",
       " 'w.a.s.p.': 0.34814129974190067,\n",
       " 'archive': 0.32521135265700485,\n",
       " 'shontelle': 0.5094550615761781,\n",
       " 'corinne bailey rae': 0.4179862523765838,\n",
       " 'angra': 0.362316449430787,\n",
       " 'the horrors': 0.3743139803581745,\n",
       " 'neutral milk hotel': 0.34910211739480035,\n",
       " 'little joy': 0.44045790869747314,\n",
       " 'westlife': 0.43352390852390854,\n",
       " 'red': 0.3946150097465887,\n",
       " 'capital inicial': 0.45091579011741684,\n",
       " 'ryan adams': 0.3996422182468694,\n",
       " '4minute': 0.5450347932869423,\n",
       " 'testament': 0.3752955082742317,\n",
       " 'combichrist': 0.3375230109988707,\n",
       " 'burial': 0.2953276192804119,\n",
       " 'the flaming lips': 0.3706882046104661,\n",
       " 'forfun': 0.450903827380752,\n",
       " 'autechre': 0.2903652958042417,\n",
       " '소녀시대': 0.4821043386161377,\n",
       " 'phil collins': 0.38394834392451377,\n",
       " 'david gilmour': 0.3286218368787176,\n",
       " 'ivete sangalo': 0.5650899334194575,\n",
       " 'you me at six': 0.44245911568746216,\n",
       " 'dark tranquillity': 0.33138644509612253,\n",
       " 'lupe fiasco': 0.29057819193845963,\n",
       " 'relient k': 0.3651153260742302,\n",
       " 'uffie': 0.45250340037504727,\n",
       " 'breathe carolina': 0.42342342342342343,\n",
       " 'cpm 22': 0.4140002545500827,\n",
       " 'the runaways': 0.4178874035021653,\n",
       " 'journey': 0.3187070420216488,\n",
       " 'venetian snares': 0.270312365627359,\n",
       " 'soft cell': 0.3483927855711423,\n",
       " 'godsmack': 0.3754263986963607,\n",
       " 'machine head': 0.36995117065231,\n",
       " 'slash': 0.38161254779959813,\n",
       " 'the decemberists': 0.38833667334669336,\n",
       " 'dragonette': 0.43849184929288565,\n",
       " 'brandon flowers': 0.4167163474675212,\n",
       " 'the distillers': 0.38003282857991183,\n",
       " 'soilwork': 0.34946079657578033,\n",
       " 'the corrs': 0.42908964866043947,\n",
       " 'alter bridge': 0.38706932626586693,\n",
       " 'sandy e junior': 0.5305601167670133,\n",
       " 'billy joel': 0.36339975845410627,\n",
       " 'snoop dogg': 0.334715634458147,\n",
       " 'camel': 0.35302215705441514,\n",
       " 'basshunter': 0.3900618468756665,\n",
       " '2ne1': 0.45363479912171384,\n",
       " 'apoptygma berzerk': 0.3239568182121459,\n",
       " 'eyes set to kill': 0.41300912349299446,\n",
       " 'tricky': 0.32594138102334824,\n",
       " 'mylène farmer': 0.36294309064262115,\n",
       " 'jay sean': 0.44530571406581565,\n",
       " 'morcheeba': 0.3288666547555238,\n",
       " 'we are scientists': 0.464458642080349,\n",
       " 'clan of xymox': 0.34905130195091927,\n",
       " 'the sounds': 0.3915433139716445,\n",
       " 'fear factory': 0.3377241155268165,\n",
       " 'japan': 0.3937464434982242,\n",
       " 'yes': 0.3353804742972944,\n",
       " 'mayday parade': 0.44166600381800825,\n",
       " 'móveis coloniais de acaju': 0.49491332764990054,\n",
       " 'nina simone': 0.31709004645645944,\n",
       " 'janelle monáe': 0.35359689330277566,\n",
       " 'oomph!': 0.3854547035298209,\n",
       " 'the raconteurs': 0.4307527013216167,\n",
       " 'vnv nation': 0.32374375831917696,\n",
       " 'stone temple pilots': 0.39537235076803423,\n",
       " 'the album leaf': 0.33583420114235224,\n",
       " 'suicide silence': 0.3947014595311809,\n",
       " 'brian eno': 0.3127118982090862,\n",
       " 'jennifer hudson': 0.5176749897666804,\n",
       " 'eels': 0.3550424117108015,\n",
       " 'amorphis': 0.3432287272019212,\n",
       " 'rufus wainwright': 0.3908613649620844,\n",
       " 'aaliyah': 0.45970564264825736,\n",
       " 'christina milian': 0.4553573794821509,\n",
       " 'at the drive-in': 0.29438201004969566,\n",
       " 'frankmusik': 0.4391287948562757,\n",
       " '[unknown]': 0.33681138046517345,\n",
       " 'mary j. blige': 0.4184771426150736,\n",
       " 'versaemerge': 0.4414233062014373,\n",
       " 'jamie cullum': 0.3489192172063851,\n",
       " 'aretha franklin': 0.3729995311002834,\n",
       " 'christian chávez': 0.5608695652173913,\n",
       " 'the dillinger escape plan': 0.29418535369949084,\n",
       " 'the bravery': 0.4193410789730257,\n",
       " 'chiodos': 0.3479920333152272,\n",
       " 't. rex': 0.35685095774558995,\n",
       " 'adriana calcanhotto': 0.41492772706645537,\n",
       " 'eddie vedder': 0.38987064369286883,\n",
       " 'stars': 0.3746725993246868,\n",
       " 'serj tankian': 0.3600611164410333,\n",
       " 'avantasia': 0.3947272448078621,\n",
       " 'david cook': 0.4320344043438578,\n",
       " 'the radio dept.': 0.36197155214424953,\n",
       " 'dave matthews band': 0.36735507246376814,\n",
       " 'hammerfall': 0.40162925073411004,\n",
       " 'deadmau5': 0.3187163702154656,\n",
       " 'the presets': 0.36217854977351355,\n",
       " 'zемфира': 0.37411630029546894,\n",
       " 'poets of the fall': 0.38014492753623186,\n",
       " 'forever the sickest kids': 0.4682691214910785,\n",
       " 'dead kennedys': 0.32438346482912345,\n",
       " 'story of the year': 0.4704119850187266,\n",
       " 'roxy music': 0.3798267821452365,\n",
       " 'nitzer ebb': 0.3726040896772604,\n",
       " 'ashanti': 0.5520795660036166,\n",
       " 'michelle branch': 0.4861229113565562,\n",
       " 'take that': 0.41563561198877896,\n",
       " 'four year strong': 0.35084920897663546,\n",
       " 'rilo kiley': 0.3895913298713028,\n",
       " 'the yardbirds': 0.3736077668194962,\n",
       " 'rascal flatts': 0.40926993149303087,\n",
       " 'the 69 eyes': 0.3511898884171028,\n",
       " 'edguy': 0.40371501093682377,\n",
       " 'nelly': 0.4061271962385548,\n",
       " 'zero 7': 0.34594928880643167,\n",
       " 'os mutantes': 0.40654019404019404,\n",
       " 'the dead weather': 0.4533937403882123,\n",
       " 'rancid': 0.34868662674650697,\n",
       " 'spandau ballet': 0.4358092978782634,\n",
       " 'shinedown': 0.4569383950585466,\n",
       " 'dead by april': 0.37689196361573235,\n",
       " 'raul seixas': 0.3822935403452302,\n",
       " 'cazuza': 0.495646253628122,\n",
       " 'amerie': 0.5443684710351377,\n",
       " 'biffy clyro': 0.3808991139818977,\n",
       " 'paolo nutini': 0.4749945455867737,\n",
       " 'andrew bird': 0.3719052876947614,\n",
       " 'sneaker pimps': 0.35761459234216525,\n",
       " 'chevelle': 0.3972974899606346,\n",
       " 'the jesus and mary chain': 0.3791503006012024,\n",
       " 'brad paisley': 0.4062160375561606,\n",
       " 'brokencyde': 0.4218665190877066,\n",
       " 'squarepusher': 0.35059592374056747,\n",
       " 'isis': 0.29528872452713895,\n",
       " 'blutengel': 0.35897297491813307,\n",
       " 'cake': 0.4108554390745991,\n",
       " 'chuck berry': 0.35937975910286585,\n",
       " 'passion pit': 0.42936043217105513,\n",
       " 'dj shadow': 0.2882476727181938,\n",
       " 'hellogoodbye': 0.39251193277757834,\n",
       " 'riverside': 0.3601661779081134,\n",
       " 'mr. big': 0.39406428131774024,\n",
       " 'wu-tang clan': 0.2951242120875046,\n",
       " 'ólafur arnalds': 0.30537075537075536,\n",
       " 'exodus': 0.4054781801299907,\n",
       " 'the vines': 0.49405050038837794,\n",
       " 'adema': 0.4219485073988538,\n",
       " 'leonard cohen': 0.35110052139637155,\n",
       " 'europe': 0.3802437106115237,\n",
       " 'hatebreed': 0.3258615348167587,\n",
       " 'fever ray': 0.4568382868778126,\n",
       " 'vive la fête': 0.4230629934567931,\n",
       " 'cannibal corpse': 0.35631658882506767,\n",
       " 'queensrÿche': 0.3942401023169771,\n",
       " 'prefuse 73': 0.3244479599235383,\n",
       " '植松伸夫': 0.3149384885764499,\n",
       " 'skinny puppy': 0.31479647817593065,\n",
       " 'tina turner': 0.398640059127864,\n",
       " 'lights': 0.4283549915604092,\n",
       " 'hollywood undead': 0.4095071157297275,\n",
       " 'manowar': 0.39173495485150583,\n",
       " 'howard shore': 0.3578359496291185,\n",
       " 'abc': 0.41770820992773366,\n",
       " 'thrice': 0.3557912934150558,\n",
       " 'sandy leah': 0.5301736602590444,\n",
       " 'shiny toy guns': 0.3902262432238422,\n",
       " 'keyshia cole': 0.47741084737988765,\n",
       " 'staind': 0.4301014600346449,\n",
       " 'millencolin': 0.36422896881658257,\n",
       " 'j dilla': 0.3144214455378351,\n",
       " 'caetano veloso': 0.4555011135857461,\n",
       " 'alkaline trio': 0.38449890509248474,\n",
       " 'burzum': 0.3105610972568579,\n",
       " 'frédéric chopin': 0.30914852128696785,\n",
       " 'john frusciante': 0.38948708158330153,\n",
       " 'sodom': 0.3963593747621874,\n",
       " 'ratatat': 0.3187773200811257,\n",
       " 'faithless': 0.3797995991983968,\n",
       " 'vanessa da mata': 0.5097303882620902,\n",
       " 'josh groban': 0.36816977339181284,\n",
       " 'converge': 0.2917721754673419,\n",
       " 'bush': 0.4116265684355934,\n",
       " 'static-x': 0.3970645848661768,\n",
       " 'stratovarius': 0.40503019813364644,\n",
       " 'santigold': 0.45273587272010607,\n",
       " 'five finger death punch': 0.38958135611093536,\n",
       " 'dirty pretty things': 0.4561696981911624,\n",
       " 'cypress hill': 0.3257131637261227,\n",
       " 'yngwie malmsteen': 0.3891701828410689,\n",
       " '36 crazyfists': 0.345411945130783,\n",
       " 'behemoth': 0.383829920929989,\n",
       " 'jefferson airplane': 0.420441917862699,\n",
       " 'thievery corporation': 0.334009009009009,\n",
       " 'jessie james': 0.5179732184913532,\n",
       " 'iced earth': 0.4284066995301104,\n",
       " 'the flashbulb': 0.2732265608390617,\n",
       " 'alexandre desplat': 0.4072990277862702,\n",
       " \"the b-52's\": 0.39516302330578834,\n",
       " '+44': 0.41547505699635745,\n",
       " 'cine': 0.5408279470606341,\n",
       " 'cassie': 0.5015769640370279,\n",
       " 'a flock of seagulls': 0.4160738441951142,\n",
       " 'restart': 0.5650778669183577,\n",
       " 'diana vickers': 0.5476054031927957,\n",
       " 'era': 0.36761561926973746,\n",
       " 'deathstars': 0.3707641740066206,\n",
       " 'kristinia debarge': 0.6367296054852869,\n",
       " 'boston': 0.35290874860881416,\n",
       " 'mudvayne': 0.3491370632698256,\n",
       " 'protest the hero': 0.3346472211273157,\n",
       " 'blue öyster cult': 0.38555362147080974,\n",
       " 'poison': 0.40995670995670996,\n",
       " 'moptop': 0.5242251357035805,\n",
       " 'peter gabriel': 0.3459618738348668,\n",
       " 'attack attack!': 0.4137254175771268,\n",
       " 'erykah badu': 0.3425893189875111,\n",
       " 'coil': 0.3127846524018218,\n",
       " 'sheryl crow': 0.4427887961029923,\n",
       " 'jorge & mateus': 0.5876687988628287,\n",
       " 'senses fail': 0.4127396413110699,\n",
       " 'the wombats': 0.48613090306545154,\n",
       " 'shayne ward': 0.5544274188080548,\n",
       " 'lolene': 0.6528802385810705,\n",
       " 'yeasayer': 0.39911170330890516,\n",
       " 'tokyo police club': 0.42100014522922014,\n",
       " 'type o negative': 0.36645450259311646,\n",
       " 'die ärzte': 0.39511800289682203,\n",
       " 'katie melua': 0.40669630768424453,\n",
       " 'stars of the lid': 0.3426639390839868,\n",
       " 'the donnas': 0.43928243280613016,\n",
       " 'elvis costello': 0.356939375884412,\n",
       " 'jónsi': 0.3957894736842105,\n",
       " 'telefon tel aviv': 0.34398761859901755,\n",
       " 'mesh': 0.38432425521033114,\n",
       " 'the roots': 0.34290920133616765,\n",
       " 'vanessa carlton': 0.5077041701471439,\n",
       " 'maria gadú': 0.5508322454308094,\n",
       " 'dredg': 0.3047869786233504,\n",
       " 'camera obscura': 0.39121798537334096,\n",
       " 'hooverphonic': 0.38655578655578654,\n",
       " 'bowling for soup': 0.44286871140803724,\n",
       " 'julieta venegas': 0.44764961689790844,\n",
       " 'jewel': 0.4615005800083171,\n",
       " 'a skylit drive': 0.39275728930901344,\n",
       " 'melanie c': 0.5653859116953152,\n",
       " 'b.b. king': 0.37975639694079877,\n",
       " 'fugazi': 0.33669298218241955,\n",
       " 'mf doom': 0.31991492249073544,\n",
       " 'guano apes': 0.39181878747501664,\n",
       " 'santana': 0.4100103898450558,\n",
       " 'yui': 0.42981912079288126,\n",
       " \"howlin' wolf\": 0.3378497466402291,\n",
       " 'alesha dixon': 0.6269954640002005,\n",
       " 'luan santana': 0.6328474937788837,\n",
       " 'sick puppies': 0.43034750103834973,\n",
       " 'bloodhound gang': 0.4063784421358254,\n",
       " 'slowdive': 0.3704133827444021,\n",
       " 'agalloch': 0.3635950563431479,\n",
       " 'syd barrett': 0.40520154669209174,\n",
       " 'the cribs': 0.45785449490268765,\n",
       " 'noize mc': 0.39260840131722374,\n",
       " 'say anything': 0.38022233862988186,\n",
       " 'pain': 0.39342829471098195,\n",
       " 'automatic loveletter': 0.46440233737217496,\n",
       " 'dixie chicks': 0.43419000127860885,\n",
       " 'eluveitie': 0.38107299837166486,\n",
       " 'dr. dre': 0.3741815167840862,\n",
       " 'the dandy warhols': 0.3955023373557595,\n",
       " 'the mountain goats': 0.3643770571413155,\n",
       " 'alejandro sanz': 0.48278475285601175,\n",
       " 'the magnetic fields': 0.3646038628301143,\n",
       " 'icehouse': 0.43684040032052923,\n",
       " 'melvins': 0.35194805194805195,\n",
       " 'savage garden': 0.395553858555004,\n",
       " 'client': 0.40972634076082354,\n",
       " 'king diamond': 0.3676695821677658,\n",
       " 'amiina': 0.4039895396217235,\n",
       " 'danny elfman': 0.3647605188030314,\n",
       " 'sonic syndicate': 0.40518481231123255,\n",
       " 'bee gees': 0.4020457584172487,\n",
       " 'anti-flag': 0.39996578564707896,\n",
       " 'billie holiday': 0.3399734630694383,\n",
       " 'ayreon': 0.38770314808500966,\n",
       " 'hammock': 0.3387096774193548,\n",
       " 'robert pattinson': 0.48141212952471824,\n",
       " 'o teatro mágico': 0.46021607481993765,\n",
       " 'digitalism': 0.3960151635369832,\n",
       " 'stevie ray vaughan': 0.3431056386201505,\n",
       " 'circa survive': 0.3367222245313604,\n",
       " 'cat stevens': 0.3970849863477657,\n",
       " 'josé gonzález': 0.382851077576261,\n",
       " 'cinema bizarre': 0.4548978745812466,\n",
       " 'heart': 0.4445137157107232,\n",
       " 'richard ashcroft': 0.4475450190494673,\n",
       " 'joe satriani': 0.36938381588715663,\n",
       " 'laura marling': 0.39932226363944423,\n",
       " 'gnarls barkley': 0.35570564830154483,\n",
       " 'stereolab': 0.35910777087247675,\n",
       " 'ayria': 0.327827251033118,\n",
       " 'the new pornographers': 0.45687093779015786,\n",
       " 'crowded house': 0.413684794672586,\n",
       " 'plaid': 0.3564343199379696,\n",
       " 'caliban': 0.39308538501833423,\n",
       " 'in this moment': 0.37876303269561695,\n",
       " 'дельфин': 0.37910682667715917,\n",
       " 'rouge': 0.642110895215567,\n",
       " 'claudia leitte': 0.6652236652236653,\n",
       " 'emarosa': 0.3875163860038318,\n",
       " 'coheed and cambria': 0.43353767801565596,\n",
       " 'eisley': 0.4154606904686295,\n",
       " 'john lee hooker': 0.3610871440897325,\n",
       " 'covenant': 0.37409560136832865,\n",
       " 'pennywise': 0.429953511747707,\n",
       " 'camp rock': 0.6252901687684297,\n",
       " 'front 242': 0.39072464586037586,\n",
       " 'joan jett and the blackhearts': 0.46881720430107526,\n",
       " 'mallu magalhães': 0.5006351836509252,\n",
       " 'kansas': 0.38277466751706707,\n",
       " 'the dresden dolls': 0.38438003220611916,\n",
       " 'finch': 0.47396128512235364,\n",
       " 'therion': 0.3703411555906133,\n",
       " 'motion city soundtrack': 0.3800245213618787,\n",
       " 'morbid angel': 0.407376376743293,\n",
       " 'сплин': 0.46700458269684764,\n",
       " 'annie': 0.4520579879070445,\n",
       " 'the stone roses': 0.4767265615450434,\n",
       " 'delta goodrem': 0.5276967930029155,\n",
       " 'édith piaf': 0.3841688465259612,\n",
       " 'soda stereo': 0.41831534772182255,\n",
       " 'iggy pop': 0.4175311150101066,\n",
       " 'madness': 0.41196697206198396,\n",
       " 'ghostface killah': 0.2879174141566739,\n",
       " 'buddy holly': 0.36875482874066445,\n",
       " 'kid abelha': 0.523393911915467,\n",
       " 'vangelis': 0.40508865598839894,\n",
       " 'james horner': 0.4341390203459169,\n",
       " 'hinder': 0.47645299645597644,\n",
       " 'copeland': 0.39834543848175047,\n",
       " 'hypocrisy': 0.41078530502190763,\n",
       " 'captain beefheart & his magic band': 0.36764120028272185,\n",
       " 'mr. bungle': 0.3678230105889001,\n",
       " 'hawthorne heights': 0.5153701337071086,\n",
       " 'madlib': 0.32463812592706254,\n",
       " 'strike': 0.5258439274698031,\n",
       " 'the lonely island': 0.40316945569212026,\n",
       " 'paulina rubio': 0.5045212719259741,\n",
       " 'from first to last': 0.4557433660487096,\n",
       " 'bombay bicycle club': 0.4824691091566395,\n",
       " 'uriah heep': 0.44754850216576275,\n",
       " 'peter bjorn and john': 0.4017065142065142,\n",
       " 'marillion': 0.3780952380952381,\n",
       " 'ratt': 0.4926932687211327,\n",
       " 'crashdïet': 0.4501716167688431,\n",
       " 'mono': 0.3046816197501129,\n",
       " 'thompson twins': 0.4776079734219269,\n",
       " 'blue october': 0.43741269359246887,\n",
       " 'stevie ray vaughan and double trouble': 0.40216083294093025,\n",
       " 'carla bruni': 0.5284274554236985,\n",
       " 'cash cash': 0.4377018317736461,\n",
       " 'dannii minogue': 0.5558167570825798,\n",
       " ...}"
      ]
     },
     "execution_count": 99,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "nx.clustering(G)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "9. **Coeficiente global de clustering**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 100,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0.5201677718488529"
      ]
     },
     "execution_count": 100,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "nx.average_clustering(G)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 10. Diametro"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 101,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Diameter: 3\n"
     ]
    }
   ],
   "source": [
    "print(\"Diameter: %d\" % nx.diameter(G))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 11. Distribución del grado"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 112,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 16216 characters]\n",
      "text/plain": [
       "<Figure size 576x576 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "degree_sequence = sorted((d for n, d in G.degree()), reverse=True)\n",
    "plt.figure(figsize=(8,8))\n",
    "plt.plot(degree_sequence,'b-',marker='o')\n",
    "plt.title(\"Distribución de grado\")\n",
    "plt.ylabel(\"grado\")\n",
    "plt.xlabel(\"número del nodo\")\n",
    "plt.savefig(\"distribucion_grado.jpg\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 12. Diagrama de fuerza (strength plot)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 113,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 15688 characters]\n",
      "text/plain": [
       "<Figure size 576x576 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "strength_sequence = sorted((d for n, d in G.degree(weight='weight')), reverse=True)\n",
    "plt.figure(figsize=(8,8))\n",
    "plt.plot(strength_sequence,'b-',marker='o')\n",
    "plt.title(\"Diagrama de fuerza\")\n",
    "plt.ylabel(\"fuerza\")\n",
    "plt.xlabel(\"número del nodo\")\n",
    "plt.savefig(\"diagrama_fuerza.jpg\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 13. Comunidades por random walks"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 4. Visualización: Heatmap\n",
    "\n",
    "Para poder tener una idea de lo que nos muestra el grafo vamos a realizar un heatmap. El heatmap del grafo, pero, no nos resulta muy útil, tiene demasiados artistas y eso hace que al final solo veamos un cuadrado con muchos puntitos que poco nos dice de nuestra red. \n",
    "\n",
    "Por eso vamos a realizar un heatmap con los géneros musicales en lugar de con los artistas. Lo que vamos a hacer es agrupar los artistas según su género musical, de manera que lo que veamos representado sean las relaciones entre géneros.\n",
    "\n",
    "Esto lo conseguiremos de la siguiente manera:\n",
    "\n",
    "1. Filtramos las filas según el género x. (Gx)\n",
    "2. Sumamos el valor de las columnas.  (opt. normalizar)\n",
    "3. Para cada género y, filtramos por columnas según Gy.\n",
    "4. Repetimos el proceso para cada x pertenece a TODOX\n",
    "\n",
    "Por último rellenamos la matriz completa para poder hacer la visualización.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "metadata": {},
   "outputs": [],
   "source": [
    "import networkx as nx\n",
    "import matplotlib.pyplot as plt\n",
    "import pandas as pd\n",
    "import numpy as np\n",
    "import csv\n",
    "from nxviz import MatrixPlot\n",
    "import seaborn as sns\n",
    "from matplotlib import pyplot as plt\n",
    "\n",
    "df_artists = pd.read_csv('artists-v2.dat', header=0, sep='\\t', usecols=[0,2])\n",
    "df_tags = pd.read_csv('artist_tags-v2.dat', header=0, sep= '\\t')\n",
    "df_users = pd.read_csv('user_artists.dat', header=0, sep='\\t', usecols=[0,1])\n",
    "df_artists = df_artists.join(df_tags.set_index('artistID'), on='artistID')\n",
    "\n",
    "list_tags = pd.read_csv('tags-sorted.dat')\n",
    "list_tags = list_tags.tag.tolist()\n",
    "\n",
    "list_tags_original = pd.read_csv('tags-v3.dat')\n",
    "list_tags_original = list_tags_original.tag.tolist()\n",
    "\n",
    "m = np.loadtxt('matrix.txt')\n",
    "m_perc = np.loadtxt('matrix_percentage.txt')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 4.1. Matriz agrupada por géneros"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[  0., 436., 414., 103., 396., 310., 299., 345., 128., 222.],\n",
       "       [  0.,   0., 413.,  59., 380., 310., 298., 360.,  86., 205.],\n",
       "       [  0.,   0.,   0.,  46., 358., 277., 283., 350.,  68., 189.],\n",
       "       [  0.,   0.,   0.,   0.,  61.,  83.,  61.,  42., 162.,  80.],\n",
       "       [  0.,   0.,   0.,   0.,   0., 243., 298., 316.,  80., 220.],\n",
       "       [  0.,   0.,   0.,   0.,   0.,   0., 192., 267.,  71., 106.],\n",
       "       [  0.,   0.,   0.,   0.,   0.,   0.,   0., 246.,  83., 218.],\n",
       "       [  0.,   0.,   0.,   0.,   0.,   0.,   0.,   0.,  52., 150.],\n",
       "       [  0.,   0.,   0.,   0.,   0.,   0.,   0.,   0.,   0., 116.],\n",
       "       [  0.,   0.,   0.,   0.,   0.,   0.,   0.,   0.,   0.,   0.]])"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "m[:10, :10]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0      True\n",
       "1      True\n",
       "2      True\n",
       "3     False\n",
       "4      True\n",
       "5      True\n",
       "6      True\n",
       "7      True\n",
       "8     False\n",
       "9     False\n",
       "10    False\n",
       "11    False\n",
       "12    False\n",
       "13     True\n",
       "Name: tag1, dtype: bool"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "mask = (df_artists['tag1'] == 'pop')\n",
    "mask[:14]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "m_copy = m.copy()\n",
    "m_rows = m_copy * mask[:, None]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "m_sum = m_rows.sum(axis = 0) "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([   0.,  436.,  827.,  208., 1134., 1140., 1370., 1884.,  568.,\n",
       "       1310., 2110.,  244.,  600., 1915.])"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "m_sum[0:14]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "mask = (df_artists['tag1'] == 'rock')\n",
    "m_cols = m_sum * mask"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0       0.0\n",
       "1       0.0\n",
       "2       0.0\n",
       "3       0.0\n",
       "4       0.0\n",
       "5       0.0\n",
       "6       0.0\n",
       "7       0.0\n",
       "8       0.0\n",
       "9    1310.0\n",
       "Name: tag1, dtype: float64"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "m_cols[:10]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "33406.0"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "w1 = m_cols.sum()\n",
    "w1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "maskA = (df_artists['tag1'] == 'rock')\n",
    "m_rows = m_copy*maskA[:, None]\n",
    "m_sum = m_rows.sum(axis = 0)             \n",
    "maskB = (df_artists['tag1'] == 'pop')\n",
    "m_cols = m_sum*maskB\n",
    "w2 = m_cols.sum()\n",
    "w = w1+w2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "33406.0 22335.0 55741.0\n"
     ]
    }
   ],
   "source": [
    "print(w1,w2,w)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {},
   "outputs": [],
   "source": [
    "def create_genre_matrix(matrix, df, tags, colA=1, colB=1):\n",
    "    str_colA = 'tag'+str(colA)\n",
    "    str_colB = 'tag'+str(colB)\n",
    "    coef = 1./colA * 1./colB\n",
    "    \n",
    "    num_tags = len(tags)\n",
    "    genre_matrix = np.zeros((num_tags, num_tags))\n",
    "    i = 0\n",
    "    for tagA in tags:\n",
    "        j = 0\n",
    "        mask = (df[str_colA] == tagA)\n",
    "        matrix_rows = matrix*mask[:, None]\n",
    "        matrix_sum = matrix_rows.sum(axis = 0) \n",
    "        \n",
    "        for tagB in tags:\n",
    "            mask = (df[str_colB] == tagB)\n",
    "            matrix_cols = matrix_sum*mask\n",
    "            weight1 = matrix_cols.sum()\n",
    "            weight2 = genre_matrix[j,i]\n",
    "            weight = weight1+weight2\n",
    "            genre_matrix[i,j] = weight\n",
    "            genre_matrix[j,i] = weight\n",
    "\n",
    "            j += 1\n",
    "            \n",
    "        i+=1\n",
    "        \n",
    "    genre_matrix = genre_matrix*coef\n",
    "    return genre_matrix\n",
    "            \n",
    "m_genres = create_genre_matrix(m, df_artists, list_tags)            "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "m_genres[:4,:4]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "total_weight = (m.sum(axis = 0)).sum()\n",
    "total_weight_genres = (m_genres.sum(axis = 0)).sum()\n",
    "\n",
    "print(total_weight,total_weight_genres)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "fig = plt.figure(figsize=(15.0, 15.0))\n",
    "ax = sns.heatmap(m_genres)\n",
    "plt.savefig('m_genres1.png')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 4.2. Matriz con porcentajes (% usuarios comunes entre artistas)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [],
   "source": [
    "def matrix_to_percentage(matrix, df):\n",
    "    matrix_perc = matrix.copy()\n",
    "    i=0\n",
    "    for idx,artistA in df.iterrows():\n",
    "        listenersA = artistA['freq']\n",
    "        j=0\n",
    "        for idx,artistB in df.iterrows():\n",
    "            listenersB = artistB['freq']\n",
    "            listeners = min(listenersA, listenersB)\n",
    "            matrix_perc[i,j] = matrix[i,j]/listeners\n",
    "            j+=1\n",
    "        i+=1\n",
    "    return matrix\n",
    "\n",
    "#m_perc = matrix_to_percentage(m, df_artists)\n",
    "#np.savetxt('matrix_percentage.txt',m_perc,fmt='%.6f')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [],
   "source": [
    "def matrix_threshold(matrix, threshold):\n",
    "    matrix[matrix > threshold] = 1\n",
    "    matrix[matrix <= threshold] = 0\n",
    "    return matrix"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "m_perc = matrix_threshold(m_perc, 0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "m_perc[:5,:5]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "m_genres_perc = create_genre_matrix(m_perc, df_artists, list_tags)            "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "fig = plt.figure(figsize=(15.0, 15.0))\n",
    "ax = sns.heatmap(m_genres_perc)\n",
    "plt.savefig('m_genres2.png')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 4.3. Matriz normalizada según número de artistas\n",
    "\n",
    "Número de oyentes comunes entre artistas, agrupados por género, dividido entre el número de artistas que se está considerando.\n",
    "\n",
    "??? Sería num_artistsA+num_artistsB o (num_artistsA+num_artistsB)/2?"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [],
   "source": [
    "def create_genre_matrix_normalized(matrix, df, tags, colA=1, colB=1):\n",
    "    str_colA = 'tag'+str(colA)\n",
    "    str_colB = 'tag'+str(colB)\n",
    "    coef = 1./colA * 1./colB\n",
    "    \n",
    "    num_tags = len(tags)\n",
    "    genre_matrix = np.zeros((num_tags, num_tags))\n",
    "    i = 0\n",
    "    for tagA in tags:\n",
    "        j = 0\n",
    "        maskA = (df[str_colA] == tagA)\n",
    "        num_artistsA = maskA.sum()\n",
    "        matrix_rows = matrix*maskA[:, None]\n",
    "        matrix_sum = matrix_rows.sum(axis = 0) \n",
    "        \n",
    "        for tagB in tags:\n",
    "            maskB = (df[str_colB] == tagB)\n",
    "            num_artistsB = maskB.sum()\n",
    "            num_artists = num_artistsA*num_artistsB\n",
    "            if num_artists == 0:\n",
    "                num_artists = 1\n",
    "            matrix_cols = matrix_sum*maskB\n",
    "            weight1 = matrix_cols.sum()\n",
    "            weight2 = genre_matrix[j,i]\n",
    "            weight = (weight1+weight2)/num_artists\n",
    "            genre_matrix[i,j] = weight\n",
    "            genre_matrix[j,i] = weight\n",
    "\n",
    "            j += 1\n",
    "            \n",
    "        i+=1\n",
    "    genre_matrix[np.isnan(genre_matrix)] = 0\n",
    "    genre_matrix = genre_matrix*coef\n",
    "    \n",
    "    return genre_matrix"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "m_genres_norm = create_genre_matrix_normalized(m, df_artists, list_tags)            "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "m_genres_norm[:5,:5]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "fig = plt.figure(figsize=(15.0, 15.0))\n",
    "ax = sns.heatmap(m_genres_norm)\n",
    "plt.savefig('m_genres3.png')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    " ### 4.4 Matriz con porcentajes normalizada según número de artistas\n",
    " \n",
    " Número de grupos que tienen al menos x% oyentes en común, divido entre el número de artistas de los géneros que se están contemplando. "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "m_genres_perc_norm = create_genre_matrix_normalized(m_perc, df_artists, list_tags)            "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "m_genres_perc_norm"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "fig = plt.figure(figsize=(15.0, 15.0))\n",
    "ax = sns.heatmap(m_genres_perc_norm)\n",
    "plt.savefig('m_genres4.png')\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 5. Matriz final: combinacion de los 3 tags más representativos\n",
    "\n",
    "Ahora vamos a calcular la matriz resultante de sumar las 9 posibles combinaciones de tags (3 tags de cada artista). \n",
    "Todas las combinaciones no tienen el mismo peso. El tag más representativo tiene un peso de 1, el segundo más representativo de 1/2 y el tercero de 1/3.\n",
    "Los pesos de cada tag se multiplican para obtener el peso de la matriz.\n",
    "De esta manera, la matriz resultante es la suma de las 9 matrices cada una multiplicada por el peso correspondiente (1, 0.5, 0.3, 0.25, 0.16 0.11)\n",
    "\n",
    "\n",
    "Esta matriz la vamos a calcular tanto sólo normalizada, como normalizada con porcentajes."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {},
   "outputs": [],
   "source": [
    "def compute_complete_matrix(matrix, df, tags):\n",
    "    num_tags = len(tags)\n",
    "    genre_matrix = np.zeros((num_tags, num_tags))\n",
    "    \n",
    "    for i in range(1,4):\n",
    "        for j in range(1,4):\n",
    "            genre_matrix = np.add(genre_matrix, create_genre_matrix_normalized(matrix, df, tags, i, j))\n",
    "    return genre_matrix"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### A. Normalizada"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "final_matrix = compute_complete_matrix(m, df_artists, list_tags)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "fig = plt.figure(figsize=(15.0, 15.0))\n",
    "ax = sns.heatmap(final_matrix)\n",
    "plt.savefig('m_genres5.png')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### B. Normalizada con porcentajes"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 75,
   "metadata": {},
   "outputs": [],
   "source": [
    "final_matrix = compute_complete_matrix(m_perc, df_artists, list_tags)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 76,
   "metadata": {},
   "outputs": [],
   "source": [
    "np.savetxt('final_matrix.txt',final_matrix,fmt='%.9f')\n",
    "final_matrix = np.loadtxt('final_matrix.txt')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 77,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 149504 characters]\n",
      "text/plain": [
       "<Figure size 1080x1080 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig = plt.figure(figsize=(15.0, 15.0))\n",
    "ax = sns.heatmap(final_matrix)\n",
    "plt.savefig('m_genres6.png')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 78,
   "metadata": {},
   "outputs": [],
   "source": [
    "final_matrix_not_sorted = compute_complete_matrix(m_perc, df_artists, list_tags_original)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 79,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 250712 characters]\n",
      "text/plain": [
       "<Figure size 1152x1008 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "font = {'family' : 'serif',\n",
    "        'size'   : 6}\n",
    "plt.rc('font', **font)\n",
    "\n",
    "fig = plt.figure(figsize=(16.0, 14.0))\n",
    "ax = sns.heatmap(final_matrix_not_sorted, xticklabels=list_tags, yticklabels=list_tags_original)\n",
    "plt.savefig('m_genres_final_not_sorted2.png')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 80,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 254780 characters]\n",
      "text/plain": [
       "<Figure size 1152x1008 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "font = {'family' : 'serif',\n",
    "        'size'   : 6}\n",
    "plt.rc('font', **font)\n",
    "\n",
    "fig = plt.figure(figsize=(16.0, 14.0))\n",
    "ax = sns.heatmap(final_matrix, xticklabels=list_tags, yticklabels=list_tags)\n",
    "plt.savefig('m_genres_final2.png')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 94,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 144280 characters]\n",
      "text/plain": [
       "<Figure size 864x720 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "font = {'family' : 'serif',\n",
    "        'size'   : 18}\n",
    "plt.rc('font', **font)\n",
    "\n",
    "fig = plt.figure(figsize=(12.0, 10.0))\n",
    "ax = sns.heatmap(final_matrix[158:191, 158:191], xticklabels=list_tags[158:191], yticklabels=list_tags[158:191])\n",
    "plt.savefig('m_genres_metal2.png')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 95,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 188960 characters]\n",
      "text/plain": [
       "<Figure size 1152x1008 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "font = {'family' : 'serif',\n",
    "        'size'   : 15}\n",
    "plt.rc('font', **font)\n",
    "\n",
    "fig = plt.figure(figsize=(16.0, 14.0))\n",
    "ax = sns.heatmap(final_matrix[135:191, 135:191], xticklabels=list_tags[135:191], yticklabels=list_tags[135:191])\n",
    "plt.savefig('m_genres_metalrock.png')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 96,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 124104 characters]\n",
      "text/plain": [
       "<Figure size 1152x936 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "font = {'family' : 'serif',\n",
    "        'size'   : 15}\n",
    "plt.rc('font', **font)\n",
    "\n",
    "fig = plt.figure(figsize=(16.0, 13.0))\n",
    "ax = sns.heatmap(final_matrix[70:113, 70:113], xticklabels=list_tags[70:113], yticklabels=list_tags[70:113])\n",
    "plt.savefig('m_genres_electro.png')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 6. Power Law Distribution\n",
    "\n",
    "Vamos a dibujar un diagrama para ver el grado de los géneros musicales (cuantos artistas hay de cada género musical) y ver si este sigue una distribucion \"power law\"."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 128,
   "metadata": {},
   "outputs": [],
   "source": [
    "import networkx as nx\n",
    "import matplotlib.pyplot as plt\n",
    "import pandas as pd\n",
    "import numpy as np\n",
    "import csv\n",
    "from nxviz import MatrixPlot\n",
    "import seaborn as sns\n",
    "from matplotlib import pyplot as plt\n",
    "import random\n",
    "\n",
    "df_artists = pd.read_csv('artists-v2.dat', header=0, sep='\\t', usecols=[0,2])\n",
    "df_tags = pd.read_csv('artist_tags-v2.dat', header=0, sep= '\\t')\n",
    "df_users = pd.read_csv('user_artists.dat', header=0, sep='\\t', usecols=[0,1])\n",
    "df_artists = df_artists.join(df_tags.set_index('artistID'), on='artistID')\n",
    "\n",
    "list_tags = pd.read_csv('tags-sorted.dat')\n",
    "list_tags = list_tags.tag.tolist()\n",
    "\n",
    "m = np.loadtxt('matrix.txt')\n",
    "m_perc = np.loadtxt('matrix_percentage.txt')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "G = generate_graph(m, df_artists, 0)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Obtenemos tres pares de listas, un par para cada uno de los géneros de los nodos del grafo (genero1, genero2 y genero3).\n",
    "\n",
    "**Para cada atributo:**  \n",
    "Primero obtenemos todas las apariciones de los géneros (valores que aparecen en cada uno de los atributos ['pop', 'pop', 'rock', 'alternative', 'pop', ...]) y los contamos de manera que obtenemos dos listas:\n",
    "    - Una lista con los géneros. Ej. ['rock', 'pop', 'alternative']\n",
    "    - Una lista con el número de apariciones (count). Ej. [10, 12, 8]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_genres_counts(graph):\n",
    "    pl_genres = []\n",
    "    pl_counts = []\n",
    "    name_genre = ['genre1', 'genre2', 'genre3']\n",
    "    for i in range (3):\n",
    "        pl_genres_apparitions = []\n",
    "        for k, v in graph.nodes(data=True):\n",
    "            pl_genres_apparitions.append(v['attr_dict'][name_genre[i]])\n",
    "\n",
    "        pl_g, pl_c = np.unique(pl_genres_apparitions, return_counts=True)\n",
    "        pl_genres.append(pl_g)\n",
    "        pl_counts.append(pl_c)\n",
    "    \n",
    "    return pl_genres, pl_counts"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[array(['8-bit', 'acid jazz', 'acoustic rock', 'alt-country',\n",
      "       'alternative', 'alternative metal', 'alternative rock', 'ambient',\n",
      "       'anime', 'avant-garde', 'avant-garde metal', 'black metal',\n",
      "       'blues', 'blues rock', 'bossa nova', 'breakcore', 'britpop',\n",
      "       'brutal death metal', 'celtic', 'chanson', 'chillout', 'christian',\n",
      "       'christian rock', 'classic rock', 'classical',\n",
      "       'contemporary classical', 'country', 'dance', 'dancehall',\n",
      "       'dark ambient', 'dark electro', 'darkwave', 'death metal',\n",
      "       'deathcore', 'deathrock', 'disco', 'disney', 'doom metal',\n",
      "       'dream pop', 'drone', 'drum and bass', 'dub', 'dubstep', 'ebm',\n",
      "       'electroclash', 'electronic', 'electropop', 'emo', 'ethereal',\n",
      "       'ethnic', 'eurodance', 'experimental', 'folk', 'folk metal',\n",
      "       'folk punk', 'folk rock', 'funk', 'futurepop', 'garage rock',\n",
      "       'glam metal', 'glam rock', 'glitch', 'gospel', 'gothic',\n",
      "       'gothic metal', 'gothic rock', 'grime', 'grindcore',\n",
      "       'groove metal', 'grunge', 'hard rock', 'hardcore', 'hardcore punk',\n",
      "       'heavy metal', 'hip-hop', 'horror punk', 'house', 'idm', 'indie',\n",
      "       'indie pop', 'indie rock', 'industrial', 'industrial metal',\n",
      "       'industrial rock', 'instrumental', 'j-pop', 'j-rock', 'jazz',\n",
      "       'k-pop', 'latin pop', 'lo-fi', 'lounge', 'math rock', 'mathcore',\n",
      "       'medieval', 'melodic death metal', 'melodic hardcore', 'metal',\n",
      "       'metalcore', 'minimal', 'minimalism', 'mpb', 'musical', 'nan',\n",
      "       'neo soul', 'neoclassical', 'neofolk', 'new age', 'new rave',\n",
      "       'new wave', 'noise', 'noise rock', 'nu metal', 'opera',\n",
      "       'orchestral', 'pagan metal', 'piano rock', 'pop', 'pop punk',\n",
      "       'pop rock', 'post-grunge', 'post-hardcore', 'post-metal',\n",
      "       'post-punk', 'post-rock', 'power metal', 'power pop',\n",
      "       'progressive metal', 'progressive rock', 'proto-punk',\n",
      "       'psychedelic', 'psychedelic rock', 'psychobilly', 'psytrance',\n",
      "       'punk', 'rap', 'rapcore', 'reggae', 'reggaeton', 'rnb', 'rock',\n",
      "       'rock n roll', 'rockabilly', 'samba', 'screamo', 'shoegaze', 'ska',\n",
      "       'ska-punk', 'sleaze rock', 'sludge metal', 'soft rock', 'soul',\n",
      "       'soundtrack', 'southern rap', 'southern rock', 'space rock',\n",
      "       'stoner', 'surf rock', 'swing', 'symphonic metal', 'synth pop',\n",
      "       'technical death metal', 'techno', 'thrash metal', 'trance',\n",
      "       'trip-hop', 'twee pop', 'underground hip-hop', 'viking metal',\n",
      "       'world'], dtype='<U22'), array(['8-bit', 'acid jazz', 'alt-country', 'alternative',\n",
      "       'alternative hip-hop', 'alternative metal', 'alternative rock',\n",
      "       'ambient', 'anime', 'art rock', 'atmospheric black metal',\n",
      "       'avant-garde', 'avant-garde metal', 'bebop', 'black metal',\n",
      "       'blues', 'blues rock', 'bossa nova', 'breakbeat', 'breakcore',\n",
      "       'britpop', 'brutal death metal', 'celtic', 'chanson',\n",
      "       'chicago blues', 'chillout', 'christian', 'christian rock',\n",
      "       'classic rock', 'classical', 'composer', 'contemporary classical',\n",
      "       'contemporary country', 'country', 'country pop', 'crunk', 'dance',\n",
      "       'dancehall', 'dark ambient', 'dark electro', 'darkwave',\n",
      "       'death metal', 'deathcore', 'deathrock', 'disco', 'disney',\n",
      "       'doom metal', 'dream pop', 'drone', 'drum and bass', 'dub',\n",
      "       'dubstep', 'easy listening', 'ebm', 'edm', 'electroclash',\n",
      "       'electronic', 'electropop', 'emo', 'ethereal', 'ethnic',\n",
      "       'eurodance', 'experimental', 'folk', 'folk metal', 'folk punk',\n",
      "       'folk rock', 'funk', 'futurepop', 'garage rock', 'glam metal',\n",
      "       'glam rock', 'goa trance', 'gospel', 'gothic', 'gothic metal',\n",
      "       'gothic rock', 'grime', 'grindcore', 'groove metal', 'grunge',\n",
      "       'hard rock', 'hardcore', 'hardcore punk', 'heavy metal', 'hip-hop',\n",
      "       'horror punk', 'house', 'idm', 'indie', 'indie folk', 'indie pop',\n",
      "       'indie rock', 'indietronica', 'industrial', 'industrial metal',\n",
      "       'industrial rock', 'instrumental', 'j-pop', 'j-rock', 'jazz',\n",
      "       'jazz hop', 'k-pop', 'latin pop', 'latin rock', 'lo-fi', 'lounge',\n",
      "       'math rock', 'mathcore', 'medieval', 'melodic death metal',\n",
      "       'melodic hardcore', 'melodic metalcore', 'metal', 'metalcore',\n",
      "       'minimal', 'minimal techno', 'mpb', 'musical', 'nan', 'neo soul',\n",
      "       'neoclassical', 'new age', 'new rave', 'new romantic', 'new wave',\n",
      "       'noise', 'noise pop', 'noise rock', 'noisecore', 'nu metal',\n",
      "       'opera', 'orchestral', 'pagan metal', 'piano rock', 'pop',\n",
      "       'pop punk', 'pop rock', 'post-hardcore', 'post-metal', 'post-punk',\n",
      "       'post-rock', 'power metal', 'power pop', 'progressive metal',\n",
      "       'progressive rock', 'progressive trance', 'proto-punk', 'psybient',\n",
      "       'psychedelic', 'psychedelic rock', 'psychobilly', 'punk', 'ragga',\n",
      "       'rap', 'rapcore', 'reggae', 'reggaeton', 'rnb', 'rock',\n",
      "       'rock n roll', 'rockabilly', 'roots reggae', 'samba', 'screamo',\n",
      "       'shoegaze', 'ska', 'ska-punk', 'sleaze rock', 'sludge metal',\n",
      "       'soft rock', 'soul', 'soundtrack', 'southern rock', 'space rock',\n",
      "       'speed metal', 'stoner', 'swing', 'symphonic black metal',\n",
      "       'symphonic metal', 'synth pop', 'technical death metal', 'techno',\n",
      "       'teen pop', 'thrash metal', 'trance', 'trancecore', 'trip-hop',\n",
      "       'twee pop', 'underground hip-hop', 'urban', 'viking metal',\n",
      "       'vocal trance', 'world', 'worship'], dtype='<U23'), array(['8-bit', 'acid jazz', 'acoustic rock', 'alt-country',\n",
      "       'alternative', 'alternative hip-hop', 'alternative metal',\n",
      "       'alternative rock', 'ambient', 'anime', 'art rock',\n",
      "       'atmospheric black metal', 'avant-garde', 'avant-garde metal',\n",
      "       'black metal', 'blues', 'blues rock', 'bossa nova', 'breakbeat',\n",
      "       'britpop', 'brutal death metal', 'celtic', 'chillout', 'christian',\n",
      "       'christian metalcore', 'christian rock', 'classic rock',\n",
      "       'classical', 'classical crossover', 'composer',\n",
      "       'contemporary christian', 'contemporary classical',\n",
      "       'contemporary country', 'country', 'country pop', 'country rock',\n",
      "       'crunk', 'dance', 'dancehall', 'dark ambient', 'dark electro',\n",
      "       'darkwave', 'death metal', 'deathcore', 'disco', 'disney',\n",
      "       'doom metal', 'dream pop', 'drone', 'drum and bass', 'dub',\n",
      "       'dubstep', 'east coast rap', 'easy listening', 'ebm',\n",
      "       'electric blues', 'electro house', 'electro-industrial',\n",
      "       'electroclash', 'electronic', 'electropop', 'emo', 'ethereal',\n",
      "       'ethnic', 'eurodance', 'experimental', 'folk', 'folk metal',\n",
      "       'folk punk', 'folk rock', 'freak folk', 'funk', 'futurepop',\n",
      "       'gangsta rap', 'garage rock', 'glam metal', 'glam rock', 'glitch',\n",
      "       'goa trance', 'gospel', 'gothic', 'gothic metal', 'gothic rock',\n",
      "       'grime', 'grindcore', 'groove metal', 'grunge', 'hard rock',\n",
      "       'hardcore', 'hardcore punk', 'heavy metal', 'hip-hop',\n",
      "       'horror punk', 'house', 'idm', 'indie', 'indie folk', 'indie pop',\n",
      "       'indie rock', 'indietronica', 'industrial', 'industrial metal',\n",
      "       'industrial rock', 'instrumental', 'j-pop', 'j-rock', 'jazz',\n",
      "       'jazz hop', 'latin pop', 'latin rock', 'lo-fi', 'lounge',\n",
      "       'math rock', 'mathcore', 'medieval', 'melodic death metal',\n",
      "       'melodic hardcore', 'melodic metalcore', 'metal', 'metalcore',\n",
      "       'minimal', 'minimal techno', 'minimalism', 'mpb', 'musical', 'nan',\n",
      "       'neo soul', 'neoclassical', 'neofolk', 'new age', 'new rave',\n",
      "       'new romantic', 'new wave', 'noise', 'noise pop', 'noise rock',\n",
      "       'noisecore', 'nu jazz', 'nu metal', 'opera', 'orchestral',\n",
      "       'pagan metal', 'piano rock', 'pop', 'pop punk', 'pop rock',\n",
      "       'post-grunge', 'post-hardcore', 'post-metal', 'post-punk',\n",
      "       'post-rock', 'power metal', 'power pop', 'progressive metal',\n",
      "       'progressive rock', 'progressive trance', 'proto-punk',\n",
      "       'psychedelic', 'psychedelic rock', 'psychobilly', 'psytrance',\n",
      "       'punk', 'ragga', 'rap', 'rapcore', 'reggae', 'reggaeton', 'rnb',\n",
      "       'rock', 'rock n roll', 'rockabilly', 'roots reggae', 'samba',\n",
      "       'screamo', 'shoegaze', 'ska', 'ska-punk', 'sleaze rock',\n",
      "       'sludge metal', 'soft rock', 'soul', 'soundtrack', 'southern rap',\n",
      "       'southern rock', 'space rock', 'speed metal', 'stoner',\n",
      "       'surf rock', 'swing', 'symphonic black metal', 'symphonic metal',\n",
      "       'synth pop', 'technical death metal', 'techno', 'teen pop',\n",
      "       'thrash metal', 'trance', 'trancecore', 'trip-hop', 'twee pop',\n",
      "       'underground hip-hop', 'urban', 'viking metal', 'vocal trance',\n",
      "       'world', 'worship'], dtype='<U23')] \n",
      " [array([  4,   3,   1,   9,  86,   4,  55,  60,   2,   3,   1,  42,  39,\n",
      "         8,   9,   5,  26,   2,   4,  10,  10,  13,  16,  92,  30,   2,\n",
      "        60,  28,   6,   6,   7,  17,  32,  27,   6,   9,   1,  13,   6,\n",
      "         3,  11,   7,   7,  32,   7, 215,   9,  36,   3,   2,   1,  44,\n",
      "        93,  17,   1,   1,  18,  10,  10,   4,  13,   3,   7,   6,  22,\n",
      "        10,   4,  12,   1,  20,  71,  58,   1,  39, 172,   6,  14,  35,\n",
      "       333,  17,  29,  54,  21,   1,  18,  37,  35,  66,  32,   5,  17,\n",
      "         3,   8,   2,   3,  24,   6,   9,  58,  13,   2,  42,   6,  12,\n",
      "         2,   1,   5,  14,   3,  71,   1,   6,  17,   5,   1,   1,   5,\n",
      "       438,  45,  18,   1,  73,   1,  38,  39,  28,  17,  40,  59,   1,\n",
      "        12,   3,   6,  10,  96,  42,   7,  29,   7,  74, 327,   4,   7,\n",
      "         3,   8,  23,  23,   1,   1,   7,   1,  57,  76,   2,   2,   2,\n",
      "         9,   2,   2,  13,  26,   5,   2,  37,  15,  38,   1,   2,   1,\n",
      "        17]), array([  2,   3,   7, 167,   1,   3,  90,  66,  13,   8,   9,  11,   2,\n",
      "         8,  11,  32,  25,  15,   2,   2,  24,  10,   5,  10,   8,  24,\n",
      "        17,  10,  74,  21,  11,  10,  27,   6,   1,   1, 136,   8,   1,\n",
      "         5,   8,  37,  10,   4,   5,  19,  13,  13,   9,   2,   1,   3,\n",
      "         5,  25,   1,  10, 235,  13,  31,   4,   5,   1,  86,  83,   8,\n",
      "         2,   4,  23,  12,   6,  15,   6,   3,   2,  21,  11,   6,   2,\n",
      "        12,   6,   6,  61,  41,  26,  37,  92,   3,   7,  15, 234,   1,\n",
      "        52, 152,   2,  43,   5,  11,  81,  15,   5,  30,   1,   3,  28,\n",
      "         6,   4,   2,   4,   6,   3,  17,  15,   3,  89,  37,   7,   6,\n",
      "        12,   9,  52,   4,   1,   7,   8,   5,  53,   3,   3,   4,   2,\n",
      "        15,   6,   1,   1,   5, 228,  28,  61,  14,   5,  34,  11,  17,\n",
      "        16,  19,  23,   3,   2,   6,  17,  12,   6,  49,   3, 121,   4,\n",
      "        20,   1,  62, 386,   6,  10,   4,   4,  34,  11,   5,  12,   2,\n",
      "         2,   7,  63,  25,   6,   2,  13,   5,  11,   8,  16,  42,  10,\n",
      "        11,   3,  12,   8,   5,  30,   2,  24,   1,  12,   2,  12,   5]), array([  2,   3,   2,  10, 374,   3,   6,  92,  61,  13,   5,   1,   7,\n",
      "         2,   4,  27,   8,   8,   2,  24,  15,   3,  52,  15,   1,   8,\n",
      "        59,  16,   3,  20,   1,   6,   4,   5,   9,   6,   4, 113,   4,\n",
      "         7,  15,   9,  34,   7,  14,   8,   6,   3,   1,   2,   5,   4,\n",
      "        18,   6,  16,   7,   1,   1,   5, 198,  19,  43,   7,   5,  10,\n",
      "        89,  62,   6,   2,  12,   8,  11,   4,  25,  10,  16,   8,   1,\n",
      "         2,   3,  23,  11,  14,   1,  12,   4,   4,  45,  53,  17,  23,\n",
      "        51,   3,  19,  17, 147,  14,  54,  89,   2,  37,  10,   7,  56,\n",
      "        12,   3,  24,   2,   5,   3,  10,  11,   2,   6,   4,   9,  14,\n",
      "         3, 180,  16,   5,   3,   6,  13,   3, 249,  10,   3,   1,   9,\n",
      "         8,  10,  25,   8,   1,   3,   3,   4,   9,   2,   3,   4,   2,\n",
      "       207,  17,  54,   9,  15,   2,  19,  22,   8,  12,  19,  15,   4,\n",
      "         1,  29,   7,   1,   1,  63,  13,  56,   6,   4,   1,  64, 424,\n",
      "         9,   6,   3,  12,  22,   7,  15,   4,   2,   3,  13,  38,  11,\n",
      "        17,   9,   1,  11,   3,   1,   6,   4,   5,  48,   7,  22,   8,\n",
      "         9,   7,   2,  16,   4,  27,   6,   2,   5,   8,   7])]\n"
     ]
    }
   ],
   "source": [
    "G_pl_genres, G_pl_counts = get_genres_counts(G)\n",
    "print(G_pl_genres,'\\n',G_pl_counts)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([626.])"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "index0 = np.where(G_pl_genres[0] == 'rock')\n",
    "index1 = np.where(G_pl_genres[1] == 'rock')\n",
    "index2 = np.where(G_pl_genres[2] == 'rock')\n",
    "\n",
    "G_pl_counts[0][index0]+G_pl_counts[1][index1]*0.5+G_pl_counts[2][index2]*0.25"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Sumamos los tres arrays de counts que hemos obtenido (para los atributos genero1, genero2 y genero 3) recorriendo la lista \"list_tags\" que es la lista de etiquetas disponibles en nuestro grafo."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_complete_genres_counts(graph, tags):\n",
    "    pl_genres, pl_counts = get_genres_counts(graph)\n",
    "    pl_total_counts = np.zeros(len(tags))\n",
    "    num_tag = 0\n",
    "    weight = [1.0, 0.5, 0.25]\n",
    "    for tag in tags:\n",
    "        for i in range(3):\n",
    "            index = np.where(pl_genres[i] == tag)[0]\n",
    "            if len(index) > 0:\n",
    "                pl_total_counts[num_tag] += pl_counts[i][index[0]]*weight[i]\n",
    "        num_tag += 1\n",
    "\n",
    "    pl_total_counts, pl_total_genres = zip(*sorted(zip(pl_total_counts, tags), reverse = True))\n",
    "    \n",
    "    return pl_total_genres, pl_total_counts"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "('rock', 'pop', 'indie', 'electronic', 'alternative', 'hip-hop', 'folk', 'classic rock', 'punk', 'indie rock', 'dance', 'alternative rock', 'rnb', 'rap', 'hard rock', 'experimental', 'ambient', 'new wave', 'metal', 'soul', 'hardcore', 'soundtrack', 'jazz', 'industrial', 'post-hardcore', 'metalcore', 'progressive rock', 'instrumental', 'country', 'pop punk', 'heavy metal', 'emo', 'pop rock', 'blues', 'post-punk', 'synth pop', 'death metal', 'trip-hop', 'indie pop', 'progressive metal', 'mpb', 'post-rock', 'ebm', 'black metal', 'j-pop', 'idm', 'thrash metal', 'classical', 'britpop', 'reggae', 'power metal', 'j-rock', 'chillout', 'melodic death metal', 'deathcore', 'k-pop', 'funk', 'screamo', 'shoegaze', 'gothic metal', 'ska', 'power pop', 'psychedelic', 'nu metal', 'industrial metal', 'christian', 'world', 'grunge', 'darkwave', 'christian rock', 'folk metal', 'blues rock', 'symphonic metal', 'house', 'gothic', 'lo-fi', 'grindcore', 'doom metal', 'underground hip-hop', 'trance', 'latin pop', 'electropop', 'new age', 'bossa nova', 'hardcore punk', 'glam rock', 'minimal', 'melodic hardcore', 'futurepop', 'gothic rock', 'glam metal', 'garage rock', 'disco', 'chanson', 'alt-country', 'contemporary country', 'rockabilly', 'electroclash', 'dream pop', 'dark electro', 'techno', 'drum and bass', 'disney', 'stoner', 'technical death metal', 'anime', 'musical', 'dancehall', 'psychedelic rock', 'brutal death metal', 'rapcore', 'math rock', 'composer', 'psytrance', 'avant-garde', 'dubstep', 'speed metal', 'rock n roll', 'psychobilly', 'swing', 'new rave', 'sludge metal', 'noise rock', 'gospel', 'dub', 'opera', 'contemporary classical', 'industrial rock', 'horror punk', 'dark ambient', 'ska-punk', 'samba', 'piano rock', 'deathrock', 'soft rock', 'reggaeton', 'drone', 'viking metal', 'southern rock', 'celtic', 'alternative metal', 'lounge', 'ethereal', 'neo soul', 'mathcore', 'southern rap', 'gangsta rap', 'folk rock', 'breakcore', 'ethnic', 'medieval', '8-bit', 'neofolk', 'grime', 'art rock', 'acid jazz', 'symphonic black metal', 'new romantic', 'groove metal', 'ragga', 'atmospheric black metal', 'noise', 'east coast rap', 'worship', 'post-metal', 'indie folk', 'eurodance', 'easy listening', 'chicago blues', 'bebop', 'minimal techno', 'latin rock', 'teen pop', 'minimalism', 'space rock', 'post-grunge', 'glitch', 'twee pop', 'trancecore', 'psybient', 'roots reggae', 'country pop', 'sleaze rock', 'progressive trance', 'pagan metal', 'folk punk', 'avant-garde metal', 'vocal trance', 'surf rock', 'proto-punk', 'orchestral', 'neoclassical', 'melodic metalcore', 'urban', 'freak folk', 'noisecore', 'noise pop', 'electric blues', 'indietronica', 'crunk', 'country rock', 'breakbeat', 'acoustic rock', 'alternative hip-hop', 'nu jazz', 'jazz hop', 'classical crossover', 'electro-industrial', 'electro house', 'contemporary christian', 'christian metalcore', 'west coast rap', 'aggrotech') \n",
      " (626.0, 603.75, 486.75, 382.0, 263.0, 230.75, 150.0, 143.75, 136.25, 127.25, 124.25, 123.0, 121.0, 116.5, 112.75, 109.25, 108.25, 103.75, 98.5, 98.0, 91.75, 91.25, 87.0, 84.75, 83.75, 80.5, 74.25, 72.5, 64.25, 63.25, 63.25, 62.25, 62.0, 61.75, 59.75, 59.0, 59.0, 57.0, 56.5, 54.25, 51.25, 50.0, 48.5, 48.5, 47.5, 46.75, 45.25, 44.5, 44.0, 40.0, 38.5, 38.25, 35.0, 34.75, 33.75, 33.5, 32.25, 30.5, 30.25, 30.25, 29.25, 28.0, 27.75, 26.75, 26.0, 25.25, 25.0, 24.0, 23.25, 23.0, 22.5, 22.5, 22.25, 22.25, 22.25, 21.5, 21.0, 21.0, 20.75, 20.75, 20.25, 20.25, 19.75, 18.5, 18.25, 18.0, 17.75, 17.0, 17.0, 16.5, 15.5, 15.5, 15.0, 15.0, 15.0, 14.5, 13.5, 13.25, 13.25, 13.25, 13.0, 12.5, 12.5, 12.25, 11.75, 11.75, 11.25, 11.0, 10.75, 10.75, 10.5, 10.5, 10.5, 10.25, 10.25, 9.5, 9.25, 9.25, 9.25, 9.0, 9.0, 8.75, 8.75, 8.75, 8.75, 8.5, 8.5, 8.25, 8.25, 8.25, 8.0, 8.0, 8.0, 8.0, 7.75, 7.75, 7.75, 7.5, 7.25, 7.25, 7.0, 6.75, 6.75, 6.5, 6.5, 6.25, 6.25, 6.0, 6.0, 5.75, 5.5, 5.5, 5.25, 5.25, 5.25, 5.25, 5.0, 5.0, 5.0, 4.75, 4.75, 4.5, 4.5, 4.25, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 3.75, 3.75, 3.5, 3.5, 3.25, 3.25, 3.25, 3.0, 3.0, 3.0, 2.75, 2.75, 2.5, 2.5, 2.5, 2.5, 2.5, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.0, 2.0, 1.75, 1.75, 1.75, 1.5, 1.5, 1.5, 1.5, 1.5, 1.25, 1.0, 1.0, 0.75, 0.25, 0.25, 0.25, 0.25, 0.0, 0.0)\n"
     ]
    }
   ],
   "source": [
    "G_pl_total_genres, G_pl_total_counts = get_complete_genres_counts(G, list_tags)\n",
    "print(G_pl_total_genres,'\\n',G_pl_total_counts)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[<matplotlib.lines.Line2D at 0x7f8e4ab12048>]"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "[encoded data, 110516 characters]\n",
      "text/plain": [
       "<Figure size 1080x720 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "plt.figure(figsize=(15,10))\n",
    "plt.xticks(rotation='vertical')\n",
    "plt.plot(G_pl_total_genres, G_pl_total_counts)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 7. Algoritmo de Axelrod "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 137,
   "metadata": {},
   "outputs": [],
   "source": [
    "import networkx as nx\n",
    "import matplotlib.pyplot as plt\n",
    "import pandas as pd\n",
    "import numpy as np\n",
    "import csv\n",
    "from nxviz import MatrixPlot\n",
    "import seaborn as sns\n",
    "from matplotlib import pyplot as plt\n",
    "import random\n",
    "\n",
    "df_artists = pd.read_csv('artists-v2.dat', header=0, sep='\\t', usecols=[0,2])\n",
    "df_tags = pd.read_csv('artist_tags-v2.dat', header=0, sep= '\\t')\n",
    "df_users = pd.read_csv('user_artists.dat', header=0, sep='\\t', usecols=[0,1])\n",
    "df_artists = df_artists.join(df_tags.set_index('artistID'), on='artistID')\n",
    "\n",
    "list_tags = pd.read_csv('tags-sorted.dat')\n",
    "list_tags = list_tags.tag.tolist()\n",
    "\n",
    "m = np.loadtxt('matrix.txt')\n",
    "m_perc = np.loadtxt('matrix_percentage.txt')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "G = generate_graph(m, df_artists, 0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "nodes = list(G.nodes())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "active_agent = random.choice(nodes)\n",
    "passive_agent =  random.choice(list(G.neighbors(active_agent)))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "436.0"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sorted(G.edges(data=True),key= lambda x: x[2]['weight'],reverse=True)[0][2]['weight']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "436.0"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G.edges['lady gaga', 'britney spears']['weight']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Active agent: 'jay vaquer', Passive agent: 'carrie underwood'\n"
     ]
    }
   ],
   "source": [
    "print(\"Active agent: '\"+active_agent+\"', Passive agent: '\"+passive_agent+\"'\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'attr_dict': {'genre1': 'alternative', 'genre2': 'pop rock', 'genre3': 'rock', 'freq': 14}}\n",
      "{'attr_dict': {'genre1': 'country', 'genre2': 'pop', 'genre3': 'country pop', 'freq': 76}}\n"
     ]
    }
   ],
   "source": [
    "print(G.node[active_agent])\n",
    "print(G.node[passive_agent])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Escoger cualquiera de los tres generos con la misma probabilidad??"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 90,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'hip-hop'"
      ]
     },
     "execution_count": 90,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "genres = ['genre1', 'genre2', 'genre3']\n",
    "num_active_genre = genres[random.randint(0,2)]\n",
    "\n",
    "active_genre = G.node[active_agent]['attr_dict'][num_active_genre]\n",
    "active_genre"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 91,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['pop', 'britpop', 'electronic'] ['pop', 'rnb', 'hip-hop']\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 91,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "passive_genres = list(G.node[passive_agent]['attr_dict'].values())[0:3]\n",
    "active_genres = list(G.node[active_agent]['attr_dict'].values())[0:3]\n",
    "print(passive_genres, active_genres)\n",
    "set(['trip-hop', 'shoegaze', 'chillout']) == set (['shoegaze','trip-hop', 'chillout'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 92,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'attr_dict': {'genre1': 'pop', 'genre2': 'britpop', 'genre3': 'hip-hop', 'freq': 91}}\n"
     ]
    }
   ],
   "source": [
    "num_passive_genre = genres[random.randint(0,2)]\n",
    "G.node[passive_agent]['attr_dict'][num_passive_genre] = active_genre\n",
    "print(G.node[passive_agent])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 93,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'pop',\n",
       "  'genre2': 'rnb',\n",
       "  'genre3': 'hip-hop',\n",
       "  'freq': 96}}"
      ]
     },
     "execution_count": 93,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G.node[active_agent]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 94,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('lady gaga', 'britney spears', {'weight': 436.0}),\n",
       " ('lady gaga', 'rihanna', {'weight': 414.0}),\n",
       " ('lady gaga', 'katy perry', {'weight': 396.0}),\n",
       " ('lady gaga', 'christina aguilera', {'weight': 345.0}),\n",
       " ('lady gaga', 'beyoncé', {'weight': 338.0}),\n",
       " ('lady gaga', 'madonna', {'weight': 310.0}),\n",
       " ('lady gaga', 'ke$ha', {'weight': 310.0}),\n",
       " ('lady gaga', 'avril lavigne', {'weight': 299.0}),\n",
       " ('lady gaga', 'shakira', {'weight': 262.0}),\n",
       " ('lady gaga', 'black eyed peas', {'weight': 259.0}),\n",
       " ('lady gaga', 'p!nk', {'weight': 248.0}),\n",
       " ('lady gaga', 'miley cyrus', {'weight': 243.0}),\n",
       " ('lady gaga', 'kylie minogue', {'weight': 241.0}),\n",
       " ('lady gaga', 'paramore', {'weight': 222.0}),\n",
       " ('lady gaga', 'kelly clarkson', {'weight': 205.0}),\n",
       " ('lady gaga', 'the pussycat dolls', {'weight': 201.0}),\n",
       " ('lady gaga', 'glee cast', {'weight': 198.0}),\n",
       " ('lady gaga', 'mariah carey', {'weight': 194.0}),\n",
       " ('lady gaga', 'taylor swift', {'weight': 190.0}),\n",
       " ('lady gaga', 'jennifer lopez', {'weight': 181.0}),\n",
       " ('lady gaga', 'lily allen', {'weight': 171.0}),\n",
       " ('lady gaga', 'ashley tisdale', {'weight': 156.0}),\n",
       " ('lady gaga', 'michael jackson', {'weight': 153.0}),\n",
       " ('lady gaga', 'hilary duff', {'weight': 138.0}),\n",
       " ('lady gaga', 'leona lewis', {'weight': 131.0}),\n",
       " ('lady gaga', 'david guetta', {'weight': 131.0}),\n",
       " ('lady gaga', 'muse', {'weight': 128.0}),\n",
       " ('lady gaga', 'nelly furtado', {'weight': 128.0}),\n",
       " ('lady gaga', 'adam lambert', {'weight': 128.0}),\n",
       " ('lady gaga', 'evanescence', {'weight': 124.0}),\n",
       " ('lady gaga', 'amy winehouse', {'weight': 124.0}),\n",
       " ('lady gaga', '3oh!3', {'weight': 124.0}),\n",
       " ('lady gaga', 'gwen stefani', {'weight': 121.0}),\n",
       " ('lady gaga', 'selena gomez & the scene', {'weight': 121.0}),\n",
       " ('lady gaga', 'coldplay', {'weight': 117.0}),\n",
       " ('lady gaga', 'alicia keys', {'weight': 117.0}),\n",
       " ('lady gaga', 'eminem', {'weight': 116.0}),\n",
       " ('lady gaga', 'cheryl cole', {'weight': 115.0}),\n",
       " ('lady gaga', 'linkin park', {'weight': 113.0}),\n",
       " ('lady gaga', 'justin timberlake', {'weight': 111.0}),\n",
       " ('lady gaga', 'the killers', {'weight': 109.0}),\n",
       " ('lady gaga', 'the beatles', {'weight': 103.0}),\n",
       " ('lady gaga', 'ashlee simpson', {'weight': 103.0}),\n",
       " ('lady gaga', 'florence + the machine', {'weight': 102.0}),\n",
       " ('lady gaga', 'lindsay lohan', {'weight': 101.0}),\n",
       " ('lady gaga', 'pixie lott', {'weight': 101.0}),\n",
       " ('lady gaga', '30 seconds to mars', {'weight': 99.0}),\n",
       " ('lady gaga', 'nicole scherzinger', {'weight': 95.0}),\n",
       " ('lady gaga', 'enrique iglesias', {'weight': 94.0}),\n",
       " ('lady gaga', 'the veronicas', {'weight': 93.0}),\n",
       " ('lady gaga', 'demi lovato', {'weight': 92.0}),\n",
       " ('lady gaga', 'the pretty reckless', {'weight': 91.0}),\n",
       " ('lady gaga', 'ciara', {'weight': 90.0}),\n",
       " ('lady gaga', 'maroon 5', {'weight': 89.0}),\n",
       " ('lady gaga', 'adele', {'weight': 88.0}),\n",
       " ('lady gaga', 'green day', {'weight': 87.0}),\n",
       " ('lady gaga', 'justin bieber', {'weight': 86.0}),\n",
       " ('lady gaga', 'kings of leon', {'weight': 83.0}),\n",
       " ('lady gaga', 't.a.t.u.', {'weight': 82.0}),\n",
       " ('lady gaga', 'timbaland', {'weight': 80.0}),\n",
       " ('lady gaga', 'fergie', {'weight': 80.0}),\n",
       " ('lady gaga', 'cobra starship', {'weight': 79.0}),\n",
       " ('lady gaga', 'panic! at the disco', {'weight': 76.0}),\n",
       " ('lady gaga', 'kanye west', {'weight': 76.0}),\n",
       " ('lady gaga', 'nicki minaj', {'weight': 76.0}),\n",
       " ('lady gaga', 'arctic monkeys', {'weight': 75.0}),\n",
       " ('lady gaga', 'backstreet boys', {'weight': 75.0}),\n",
       " ('lady gaga', 'jordin sparks', {'weight': 73.0}),\n",
       " ('lady gaga', 'mika', {'weight': 72.0}),\n",
       " ('lady gaga', 'placebo', {'weight': 71.0}),\n",
       " ('lady gaga', 'usher', {'weight': 71.0}),\n",
       " ('lady gaga', 'cascada', {'weight': 70.0}),\n",
       " ('lady gaga', 'janet jackson', {'weight': 69.0}),\n",
       " ('lady gaga', 'chris brown', {'weight': 68.0}),\n",
       " ('lady gaga', 'my chemical romance', {'weight': 67.0}),\n",
       " ('lady gaga', 'radiohead', {'weight': 66.0}),\n",
       " ('lady gaga', 'alanis morissette', {'weight': 66.0}),\n",
       " ('lady gaga', 'pitty', {'weight': 66.0}),\n",
       " ('lady gaga', 'sugababes', {'weight': 66.0}),\n",
       " ('lady gaga', 'björk', {'weight': 65.0}),\n",
       " ('lady gaga', 'robyn', {'weight': 65.0}),\n",
       " ('lady gaga', 'natasha bedingfield', {'weight': 65.0}),\n",
       " ('lady gaga', \"destiny's child\", {'weight': 64.0}),\n",
       " ('lady gaga', 'vanessa hudgens', {'weight': 64.0}),\n",
       " ('lady gaga', 'taio cruz', {'weight': 64.0}),\n",
       " ('lady gaga', 'jonas brothers', {'weight': 63.0}),\n",
       " ('lady gaga', 'keri hilson', {'weight': 63.0}),\n",
       " ('lady gaga', 'mgmt', {'weight': 62.0}),\n",
       " ('lady gaga', 'bruno mars', {'weight': 62.0}),\n",
       " ('lady gaga', 'depeche mode', {'weight': 61.0}),\n",
       " ('lady gaga', 'jessie j', {'weight': 61.0}),\n",
       " ('lady gaga', 'anahí', {'weight': 61.0}),\n",
       " ('lady gaga', 'la roux', {'weight': 59.0}),\n",
       " ('lady gaga', 'rbd', {'weight': 59.0}),\n",
       " ('lady gaga', 'queen', {'weight': 58.0}),\n",
       " ('lady gaga', 'carrie underwood', {'weight': 58.0}),\n",
       " ('lady gaga', 'girls aloud', {'weight': 58.0}),\n",
       " ('lady gaga', 'céline dion', {'weight': 57.0}),\n",
       " ('lady gaga', 'belinda', {'weight': 57.0}),\n",
       " ('lady gaga', 'fall out boy', {'weight': 55.0}),\n",
       " ('lady gaga', 'the saturdays', {'weight': 55.0}),\n",
       " ('lady gaga', 'm.i.a.', {'weight': 54.0}),\n",
       " ('lady gaga', 'duffy', {'weight': 54.0}),\n",
       " ('lady gaga', 'the ting tings', {'weight': 54.0}),\n",
       " ('lady gaga', 'little boots', {'weight': 54.0}),\n",
       " ('lady gaga', 'kerli', {'weight': 54.0}),\n",
       " ('lady gaga', 'boa', {'weight': 54.0}),\n",
       " ('lady gaga', 'ellie goulding', {'weight': 53.0}),\n",
       " ('lady gaga', 'colbie caillat', {'weight': 53.0}),\n",
       " ('lady gaga', 'onerepublic', {'weight': 52.0}),\n",
       " ('lady gaga', 'within temptation', {'weight': 51.0}),\n",
       " ('lady gaga', 'cansei de ser sexy', {'weight': 51.0}),\n",
       " ('lady gaga', 'nirvana', {'weight': 50.0}),\n",
       " ('lady gaga', 'daft punk', {'weight': 50.0}),\n",
       " ('lady gaga', 'yeah yeah yeahs', {'weight': 50.0}),\n",
       " ('lady gaga', 'kelly rowland', {'weight': 50.0}),\n",
       " ('lady gaga', 'oasis', {'weight': 49.0}),\n",
       " ('lady gaga', 'owl city', {'weight': 49.0}),\n",
       " ('lady gaga', 'sophie ellis-bextor', {'weight': 49.0}),\n",
       " ('lady gaga', 'jojo', {'weight': 49.0}),\n",
       " ('lady gaga', 'franz ferdinand', {'weight': 48.0}),\n",
       " ('lady gaga', 'jessica simpson', {'weight': 48.0}),\n",
       " ('lady gaga', 'leighton meester', {'weight': 48.0}),\n",
       " ('lady gaga', 'red hot chili peppers', {'weight': 47.0}),\n",
       " ('lady gaga', 'hurts', {'weight': 47.0}),\n",
       " ('lady gaga', 'spice girls', {'weight': 47.0}),\n",
       " ('lady gaga', 'u2', {'weight': 46.0}),\n",
       " ('lady gaga', 'nickelback', {'weight': 46.0}),\n",
       " ('lady gaga', 'robbie williams', {'weight': 46.0}),\n",
       " ('lady gaga', 'marina & the diamonds', {'weight': 46.0}),\n",
       " ('lady gaga', 'the strokes', {'weight': 45.0}),\n",
       " ('lady gaga', 'ne-yo', {'weight': 45.0}),\n",
       " ('lady gaga', 'jesse mccartney', {'weight': 45.0}),\n",
       " ('lady gaga', 'simple plan', {'weight': 44.0}),\n",
       " ('lady gaga', 'mcfly', {'weight': 44.0}),\n",
       " ('lady gaga', 'rammstein', {'weight': 43.0}),\n",
       " ('lady gaga', 'kate nash', {'weight': 43.0}),\n",
       " ('lady gaga', 'emily osment', {'weight': 43.0}),\n",
       " ('lady gaga', 'boys like girls', {'weight': 42.0}),\n",
       " ('lady gaga', 'b.o.b', {'weight': 42.0}),\n",
       " ('lady gaga', 'david bowie', {'weight': 41.0}),\n",
       " ('lady gaga', 'jay-z', {'weight': 41.0}),\n",
       " ('lady gaga', 't.i.', {'weight': 41.0}),\n",
       " ('lady gaga', 'david archuleta', {'weight': 41.0}),\n",
       " ('lady gaga', 'cher', {'weight': 40.0}),\n",
       " ('lady gaga', 'hannah montana', {'weight': 40.0}),\n",
       " ('lady gaga', 'kelis', {'weight': 40.0}),\n",
       " ('lady gaga', 'kat deluna', {'weight': 40.0}),\n",
       " ('lady gaga', 'the cure', {'weight': 39.0}),\n",
       " ('lady gaga', 'marilyn manson', {'weight': 39.0}),\n",
       " ('lady gaga', 'goldfrapp', {'weight': 39.0}),\n",
       " ('lady gaga', 'aly & aj', {'weight': 39.0}),\n",
       " ('lady gaga', 'far east movement', {'weight': 39.0}),\n",
       " ('lady gaga', 'alexandra burke', {'weight': 39.0}),\n",
       " ('lady gaga', 'girlicious', {'weight': 38.0}),\n",
       " ('lady gaga', 'cyndi lauper', {'weight': 37.0}),\n",
       " ('lady gaga', 'whitney houston', {'weight': 36.0}),\n",
       " ('lady gaga', 'paris hilton', {'weight': 36.0}),\n",
       " ('lady gaga', 'crystal castles', {'weight': 35.0}),\n",
       " ('lady gaga', 'nightwish', {'weight': 35.0}),\n",
       " ('lady gaga', 'regina spektor', {'weight': 35.0}),\n",
       " ('lady gaga', 'no doubt', {'weight': 35.0}),\n",
       " ('lady gaga', 'dido', {'weight': 35.0}),\n",
       " ('lady gaga', \"guns n' roses\", {'weight': 34.0}),\n",
       " ('lady gaga', 'blink-182', {'weight': 34.0}),\n",
       " ('lady gaga', 'the kooks', {'weight': 34.0}),\n",
       " ('lady gaga', 'the all-american rejects', {'weight': 34.0}),\n",
       " ('lady gaga', 'jeffree star', {'weight': 34.0}),\n",
       " ('lady gaga', 'willow smith', {'weight': 34.0}),\n",
       " ('lady gaga', 'all time low', {'weight': 33.0}),\n",
       " ('lady gaga', 'fresno', {'weight': 33.0}),\n",
       " ('lady gaga', 'good charlotte', {'weight': 32.0}),\n",
       " ('lady gaga', 'jason mraz', {'weight': 32.0}),\n",
       " ('lady gaga', 'lady antebellum', {'weight': 32.0}),\n",
       " ('lady gaga', 'scissor sisters', {'weight': 32.0}),\n",
       " ('lady gaga', 'nx zero', {'weight': 32.0}),\n",
       " ('lady gaga', 'flo rida', {'weight': 32.0}),\n",
       " ('lady gaga', 'natalia kills', {'weight': 32.0}),\n",
       " ('lady gaga', 'system of a down', {'weight': 31.0}),\n",
       " ('lady gaga', 'keane', {'weight': 31.0}),\n",
       " ('lady gaga', 'gorillaz', {'weight': 31.0}),\n",
       " ('lady gaga', 'pet shop boys', {'weight': 31.0}),\n",
       " ('lady gaga', 'tokio hotel', {'weight': 31.0}),\n",
       " ('lady gaga', 'vampire weekend', {'weight': 30.0}),\n",
       " ('lady gaga', 'abba', {'weight': 30.0}),\n",
       " ('lady gaga', 'miranda cosgrove', {'weight': 30.0}),\n",
       " ('lady gaga', 'john mayer', {'weight': 29.0}),\n",
       " ('lady gaga', 'michael bublé', {'weight': 29.0}),\n",
       " ('lady gaga', 'selena gomez', {'weight': 29.0}),\n",
       " ('lady gaga', 'danity kane', {'weight': 29.0}),\n",
       " ('lady gaga', 'simon curtis', {'weight': 29.0}),\n",
       " ('lady gaga', 'foo fighters', {'weight': 28.0}),\n",
       " ('lady gaga', 'the smiths', {'weight': 28.0}),\n",
       " ('lady gaga', 'snow patrol', {'weight': 28.0}),\n",
       " ('lady gaga', 'bon jovi', {'weight': 28.0}),\n",
       " ('lady gaga', 'the fray', {'weight': 28.0}),\n",
       " ('lady gaga', 'pink', {'weight': 28.0}),\n",
       " ('lady gaga', 'pink floyd', {'weight': 27.0}),\n",
       " ('lady gaga', 'lifehouse', {'weight': 27.0}),\n",
       " ('lady gaga', 'james blunt', {'weight': 27.0}),\n",
       " ('lady gaga', 'sia', {'weight': 27.0}),\n",
       " ('lady gaga', 'akon', {'weight': 27.0}),\n",
       " ('lady gaga', 'roxette', {'weight': 26.0}),\n",
       " ('lady gaga', 'shania twain', {'weight': 26.0}),\n",
       " ('lady gaga', 'laura pausini', {'weight': 26.0}),\n",
       " ('lady gaga', 'kris allen', {'weight': 26.0}),\n",
       " ('lady gaga', 'jason derülo', {'weight': 26.0}),\n",
       " ('lady gaga', 'wanessa', {'weight': 26.0}),\n",
       " ('lady gaga', 'death cab for cutie', {'weight': 25.0}),\n",
       " ('lady gaga', 'avenged sevenfold', {'weight': 25.0}),\n",
       " ('lady gaga', 'elvis presley', {'weight': 25.0}),\n",
       " ('lady gaga', 'garbage', {'weight': 25.0}),\n",
       " ('lady gaga', 'the xx', {'weight': 25.0}),\n",
       " ('lady gaga', 'ana carolina', {'weight': 25.0}),\n",
       " ('lady gaga', 'high school musical', {'weight': 25.0}),\n",
       " ('lady gaga', 'heidi montag', {'weight': 25.0}),\n",
       " ('lady gaga', 'arcade fire', {'weight': 24.0}),\n",
       " ('lady gaga', 'los hermanos', {'weight': 24.0}),\n",
       " ('lady gaga', 'moby', {'weight': 24.0}),\n",
       " ('lady gaga', 'tori amos', {'weight': 24.0}),\n",
       " ('lady gaga', 'bat for lashes', {'weight': 24.0}),\n",
       " ('lady gaga', 'calvin harris', {'weight': 24.0}),\n",
       " ('lady gaga', '宇多田ヒカル', {'weight': 24.0}),\n",
       " ('lady gaga', 'brandy', {'weight': 24.0}),\n",
       " ('lady gaga', '*nsync', {'weight': 24.0}),\n",
       " ('lady gaga', 'sky ferreira', {'weight': 24.0}),\n",
       " ('lady gaga', 'metallica', {'weight': 23.0}),\n",
       " ('lady gaga', 'ac/dc', {'weight': 23.0}),\n",
       " ('lady gaga', 'a-ha', {'weight': 23.0}),\n",
       " ('lady gaga', 'weezer', {'weight': 23.0}),\n",
       " ('lady gaga', 'klaxons', {'weight': 23.0}),\n",
       " ('lady gaga', 'flyleaf', {'weight': 23.0}),\n",
       " ('lady gaga', 'amy macdonald', {'weight': 23.0}),\n",
       " ('lady gaga', '倖田來未', {'weight': 23.0}),\n",
       " ('lady gaga', 'september', {'weight': 23.0}),\n",
       " ('lady gaga', 'sigur rós', {'weight': 22.0}),\n",
       " ('lady gaga', 'röyksopp', {'weight': 22.0}),\n",
       " ('lady gaga', 'legião urbana', {'weight': 22.0}),\n",
       " ('lady gaga', 'metro station', {'weight': 22.0}),\n",
       " ('lady gaga', 'hey monday', {'weight': 22.0}),\n",
       " ('lady gaga', 'katharine mcphee', {'weight': 22.0}),\n",
       " ('lady gaga', 'darin', {'weight': 22.0}),\n",
       " ('lady gaga', 'blur', {'weight': 21.0}),\n",
       " ('lady gaga', 'duran duran', {'weight': 21.0}),\n",
       " ('lady gaga', 'the used', {'weight': 21.0}),\n",
       " ('lady gaga', 'metric', {'weight': 21.0}),\n",
       " ('lady gaga', 'joss stone', {'weight': 21.0}),\n",
       " ('lady gaga', '浜崎あゆみ', {'weight': 21.0}),\n",
       " ('lady gaga', 'pitbull', {'weight': 21.0}),\n",
       " ('lady gaga', 'ladyhawke', {'weight': 21.0}),\n",
       " ('lady gaga', 'ricky martin', {'weight': 21.0}),\n",
       " ('lady gaga', 'alphabeat', {'weight': 21.0}),\n",
       " ('lady gaga', 'mandy moore', {'weight': 21.0}),\n",
       " ('lady gaga', 'dulce maría', {'weight': 21.0}),\n",
       " ('lady gaga', 'shontelle', {'weight': 21.0}),\n",
       " ('lady gaga', 'christian chávez', {'weight': 21.0}),\n",
       " ('lady gaga', 'led zeppelin', {'weight': 20.0}),\n",
       " ('lady gaga', 'slipknot', {'weight': 20.0}),\n",
       " ('lady gaga', 'three days grace', {'weight': 20.0}),\n",
       " ('lady gaga', 'sum 41', {'weight': 20.0}),\n",
       " ('lady gaga', 'iamx', {'weight': 20.0}),\n",
       " ('lady gaga', 'justice', {'weight': 20.0}),\n",
       " ('lady gaga', \"lil' wayne\", {'weight': 20.0}),\n",
       " ('lady gaga', 'anastacia', {'weight': 20.0}),\n",
       " ('lady gaga', 'thalía', {'weight': 20.0}),\n",
       " ('lady gaga', 'inna', {'weight': 20.0}),\n",
       " ('lady gaga', '4minute', {'weight': 20.0}),\n",
       " ('lady gaga', 'jay sean', {'weight': 20.0}),\n",
       " ('lady gaga', 'nine inch nails', {'weight': 19.0}),\n",
       " ('lady gaga', 'ramones', {'weight': 19.0}),\n",
       " ('lady gaga', 'aerosmith', {'weight': 19.0}),\n",
       " ('lady gaga', 'jack johnson', {'weight': 19.0}),\n",
       " ('lady gaga', 'enya', {'weight': 19.0}),\n",
       " ('lady gaga', 'patrick wolf', {'weight': 19.0}),\n",
       " ('lady gaga', 'she & him', {'weight': 19.0}),\n",
       " ('lady gaga', 'daughtry', {'weight': 19.0}),\n",
       " ('lady gaga', 'a fine frenzy', {'weight': 19.0}),\n",
       " ('lady gaga', '安室奈美恵', {'weight': 19.0}),\n",
       " ('lady gaga', 'ivete sangalo', {'weight': 19.0}),\n",
       " ('lady gaga', 'dragonette', {'weight': 19.0}),\n",
       " ('lady gaga', '2ne1', {'weight': 19.0}),\n",
       " ('lady gaga', 'christina milian', {'weight': 19.0}),\n",
       " ('lady gaga', 'iron maiden', {'weight': 18.0}),\n",
       " ('lady gaga', 'him', {'weight': 18.0}),\n",
       " ('lady gaga', 'the cranberries', {'weight': 18.0}),\n",
       " ('lady gaga', 'phoenix', {'weight': 18.0}),\n",
       " ('lady gaga', '3 doors down', {'weight': 18.0}),\n",
       " ('lady gaga', 'kid cudi', {'weight': 18.0}),\n",
       " ('lady gaga', 'the rasmus', {'weight': 18.0}),\n",
       " ('lady gaga', 'drake', {'weight': 18.0}),\n",
       " ('lady gaga', 'kt tunstall', {'weight': 18.0}),\n",
       " ('lady gaga', 'sara bareilles', {'weight': 18.0}),\n",
       " ('lady gaga', '소녀시대', {'weight': 18.0}),\n",
       " ('lady gaga', 'uffie', {'weight': 18.0}),\n",
       " ('lady gaga', 'basshunter', {'weight': 18.0}),\n",
       " ('lady gaga', 'amerie', {'weight': 18.0}),\n",
       " ('lady gaga', 'lolene', {'weight': 18.0}),\n",
       " ('lady gaga', 'interpol', {'weight': 17.0}),\n",
       " ('lady gaga', 'the smashing pumpkins', {'weight': 17.0}),\n",
       " ('lady gaga', 'massive attack', {'weight': 17.0}),\n",
       " ('lady gaga', 'portishead', {'weight': 17.0}),\n",
       " ('lady gaga', 'the white stripes', {'weight': 17.0}),\n",
       " ('lady gaga', 'the prodigy', {'weight': 17.0}),\n",
       " ('lady gaga', 'ladytron', {'weight': 17.0}),\n",
       " ('lady gaga', 'tegan and sara', {'weight': 17.0}),\n",
       " ('lady gaga', 'hans zimmer', {'weight': 17.0}),\n",
       " ('lady gaga', 'lykke li', {'weight': 17.0}),\n",
       " ('lady gaga', 'tiësto', {'weight': 17.0}),\n",
       " ('lady gaga', 'charlie brown jr.', {'weight': 17.0}),\n",
       " ('lady gaga', 'gossip', {'weight': 17.0}),\n",
       " ('lady gaga', 'róisín murphy', {'weight': 17.0}),\n",
       " ('lady gaga', 'james morrison', {'weight': 17.0}),\n",
       " ('lady gaga', 'yelle', {'weight': 17.0}),\n",
       " ('lady gaga', 'westlife', {'weight': 17.0}),\n",
       " ('lady gaga', 'sandy e junior', {'weight': 17.0}),\n",
       " ('lady gaga', 'joy division', {'weight': 16.0}),\n",
       " ('lady gaga', 'new order', {'weight': 16.0}),\n",
       " ('lady gaga', 'air', {'weight': 16.0}),\n",
       " ('lady gaga', 'beirut', {'weight': 16.0}),\n",
       " ('lady gaga', 'bring me the horizon', {'weight': 16.0}),\n",
       " ('lady gaga', 'travis', {'weight': 16.0}),\n",
       " ('lady gaga', 'george michael', {'weight': 16.0}),\n",
       " ('lady gaga', \"plain white t's\", {'weight': 16.0}),\n",
       " ('lady gaga', 'tarja', {'weight': 16.0}),\n",
       " ('lady gaga', 'kate voegele', {'weight': 16.0}),\n",
       " ('lady gaga', 'jennifer hudson', {'weight': 16.0}),\n",
       " ('lady gaga', 'vanessa da mata', {'weight': 16.0}),\n",
       " ('lady gaga', 'jessie james', {'weight': 16.0}),\n",
       " ('lady gaga', 'kristinia debarge', {'weight': 16.0}),\n",
       " ('lady gaga', 'shayne ward', {'weight': 16.0}),\n",
       " ('lady gaga', 'kasabian', {'weight': 15.0}),\n",
       " ('lady gaga', 'papa roach', {'weight': 15.0}),\n",
       " ('lady gaga', 'kaiser chiefs', {'weight': 15.0}),\n",
       " ('lady gaga', 'feist', {'weight': 15.0}),\n",
       " ('lady gaga', 'lacuna coil', {'weight': 15.0}),\n",
       " ('lady gaga', '50 cent', {'weight': 15.0}),\n",
       " ('lady gaga', 'toni braxton', {'weight': 15.0}),\n",
       " ('lady gaga', 'natalie imbruglia', {'weight': 15.0}),\n",
       " ('lady gaga', 'ashanti', {'weight': 15.0}),\n",
       " ('lady gaga', 'melanie c', {'weight': 15.0}),\n",
       " ('lady gaga', 'alesha dixon', {'weight': 15.0}),\n",
       " ('lady gaga', 'claudia leitte', {'weight': 15.0}),\n",
       " ('lady gaga', 'queens of the stone age', {'weight': 14.0}),\n",
       " ('lady gaga', 'r.e.m.', {'weight': 14.0}),\n",
       " ('lady gaga', 'the offspring', {'weight': 14.0}),\n",
       " ('lady gaga', 'bullet for my valentine', {'weight': 14.0}),\n",
       " ('lady gaga', 'escape the fate', {'weight': 14.0}),\n",
       " ('lady gaga', 'dave gahan', {'weight': 14.0}),\n",
       " ('lady gaga', 'damien rice', {'weight': 14.0}),\n",
       " ('lady gaga', 'kate bush', {'weight': 14.0}),\n",
       " ('lady gaga', 'imogen heap', {'weight': 14.0}),\n",
       " ('lady gaga', 'two door cinema club', {'weight': 14.0}),\n",
       " ('lady gaga', 'hole', {'weight': 14.0}),\n",
       " ('lady gaga', 'the script', {'weight': 14.0}),\n",
       " ('lady gaga', 'nelly', {'weight': 14.0}),\n",
       " ('lady gaga', 'cassie', {'weight': 14.0}),\n",
       " ('lady gaga', 'diana vickers', {'weight': 14.0}),\n",
       " ('lady gaga', 'the doors', {'weight': 13.0}),\n",
       " ('lady gaga', 'korn', {'weight': 13.0}),\n",
       " ('lady gaga', 'incubus', {'weight': 13.0}),\n",
       " ('lady gaga', 'yann tiersen', {'weight': 13.0}),\n",
       " ('lady gaga', 'skillet', {'weight': 13.0}),\n",
       " ('lady gaga', 'epica', {'weight': 13.0}),\n",
       " ('lady gaga', 'atb', {'weight': 13.0}),\n",
       " ('lady gaga', 'brandon flowers', {'weight': 13.0}),\n",
       " ('lady gaga', 'janelle monáe', {'weight': 13.0}),\n",
       " ('lady gaga', 'frankmusik', {'weight': 13.0}),\n",
       " ('lady gaga', 'mary j. blige', {'weight': 13.0}),\n",
       " ('lady gaga', 'take that', {'weight': 13.0}),\n",
       " ('lady gaga', 'sandy leah', {'weight': 13.0}),\n",
       " ('lady gaga', 'cine', {'weight': 13.0}),\n",
       " ('lady gaga', 'restart', {'weight': 13.0}),\n",
       " ('lady gaga', 'vanessa carlton', {'weight': 13.0}),\n",
       " ('lady gaga', 'luan santana', {'weight': 13.0}),\n",
       " ('lady gaga', 'cinema bizarre', {'weight': 13.0}),\n",
       " ('lady gaga', 'rouge', {'weight': 13.0}),\n",
       " ('lady gaga', 'camp rock', {'weight': 13.0}),\n",
       " ('lady gaga', 'dannii minogue', {'weight': 13.0}),\n",
       " ('lady gaga', 'the rolling stones', {'weight': 12.0}),\n",
       " ('lady gaga', 'the clash', {'weight': 12.0}),\n",
       " ('lady gaga', 'bloc party', {'weight': 12.0}),\n",
       " ('lady gaga', 'kiss', {'weight': 12.0}),\n",
       " ('lady gaga', 'scorpions', {'weight': 12.0}),\n",
       " ('lady gaga', 'johnny cash', {'weight': 12.0}),\n",
       " ('lady gaga', 'cat power', {'weight': 12.0}),\n",
       " ('lady gaga', 'white lies', {'weight': 12.0}),\n",
       " ('lady gaga', 'hot chip', {'weight': 12.0}),\n",
       " ('lady gaga', 'pendulum', {'weight': 12.0}),\n",
       " ('lady gaga', 'the kills', {'weight': 12.0}),\n",
       " ('lady gaga', 'the cardigans', {'weight': 12.0}),\n",
       " ('lady gaga', 'armin van buuren', {'weight': 12.0}),\n",
       " ('lady gaga', 'we the kings', {'weight': 12.0}),\n",
       " ('lady gaga', 'gloria', {'weight': 12.0}),\n",
       " ('lady gaga', 'skank', {'weight': 12.0}),\n",
       " ('lady gaga', 'david cook', {'weight': 12.0}),\n",
       " ('lady gaga', 'michelle branch', {'weight': 12.0}),\n",
       " ('lady gaga', 'tina turner', {'weight': 12.0}),\n",
       " ('lady gaga', 'lights', {'weight': 12.0}),\n",
       " ('lady gaga', 'jorge & mateus', {'weight': 12.0}),\n",
       " ('lady gaga', 'maria gadú', {'weight': 12.0}),\n",
       " ('lady gaga', 'robert pattinson', {'weight': 12.0}),\n",
       " ('lady gaga', 'delta goodrem', {'weight': 12.0}),\n",
       " ('lady gaga', 'belle and sebastian', {'weight': 11.0}),\n",
       " ('lady gaga', 'breaking benjamin', {'weight': 11.0}),\n",
       " ('lady gaga', 'morrissey', {'weight': 11.0}),\n",
       " ('lady gaga', 'the last shadow puppets', {'weight': 11.0}),\n",
       " ('lady gaga', 'blondie', {'weight': 11.0}),\n",
       " ('lady gaga', 'martin l. gore', {'weight': 11.0}),\n",
       " ('lady gaga', 'alesana', {'weight': 11.0}),\n",
       " ('lady gaga', 'elton john', {'weight': 11.0}),\n",
       " ('lady gaga', 'the birthday massacre', {'weight': 11.0}),\n",
       " ('lady gaga', 'empire of the sun', {'weight': 11.0}),\n",
       " ('lady gaga', 'recoil', {'weight': 11.0}),\n",
       " ('lady gaga', 'marisa monte', {'weight': 11.0}),\n",
       " ('lady gaga', 'emilie autumn', {'weight': 11.0}),\n",
       " ('lady gaga', 'the academy is...', {'weight': 11.0}),\n",
       " ('lady gaga', 'ace of base', {'weight': 11.0}),\n",
       " ('lady gaga', 'corinne bailey rae', {'weight': 11.0}),\n",
       " ('lady gaga', 'breathe carolina', {'weight': 11.0}),\n",
       " ('lady gaga', 'mylène farmer', {'weight': 11.0}),\n",
       " ('lady gaga', 'aaliyah', {'weight': 11.0}),\n",
       " ('lady gaga', 'alexandre desplat', {'weight': 11.0}),\n",
       " ('lady gaga', 'julieta venegas', {'weight': 11.0}),\n",
       " ('lady gaga', 'paulina rubio', {'weight': 11.0}),\n",
       " ('lady gaga', 'deftones', {'weight': 10.0}),\n",
       " ('lady gaga', 'john lennon', {'weight': 10.0}),\n",
       " ('lady gaga', 'the beach boys', {'weight': 10.0}),\n",
       " ('lady gaga', 'mötley crüe', {'weight': 10.0}),\n",
       " ('lady gaga', 'yellowcard', {'weight': 10.0}),\n",
       " ('lady gaga', 'anberlin', {'weight': 10.0}),\n",
       " ('lady gaga', 'the subways', {'weight': 10.0}),\n",
       " ('lady gaga', 'sting', {'weight': 10.0}),\n",
       " ('lady gaga', 'cássia eller', {'weight': 10.0}),\n",
       " ('lady gaga', 'the corrs', {'weight': 10.0}),\n",
       " ('lady gaga', 'keyshia cole', {'weight': 10.0}),\n",
       " ('lady gaga', 'annie', {'weight': 10.0}),\n",
       " ('lady gaga', 'beck', {'weight': 9.0}),\n",
       " ('lady gaga', 'pixies', {'weight': 9.0}),\n",
       " ('lady gaga', 'elliott smith', {'weight': 9.0}),\n",
       " ('lady gaga', 'creedence clearwater revival', {'weight': 9.0}),\n",
       " ('lady gaga', 'the libertines', {'weight': 9.0}),\n",
       " ('lady gaga', 'norah jones', {'weight': 9.0}),\n",
       " ('lady gaga', 'erasure', {'weight': 9.0}),\n",
       " ('lady gaga', 'm83', {'weight': 9.0}),\n",
       " ('lady gaga', 'afi', {'weight': 9.0}),\n",
       " ('lady gaga', 'billy talent', {'weight': 9.0}),\n",
       " ('lady gaga', 'the knife', {'weight': 9.0}),\n",
       " ('lady gaga', 'bright eyes', {'weight': 9.0}),\n",
       " ('lady gaga', 'enigma', {'weight': 9.0}),\n",
       " ('lady gaga', 'fiona apple', {'weight': 9.0}),\n",
       " ('lady gaga', 'silverchair', {'weight': 9.0}),\n",
       " ('lady gaga', 'dashboard confessional', {'weight': 9.0}),\n",
       " ('lady gaga', 'the maine', {'weight': 9.0}),\n",
       " ('lady gaga', 'bryan adams', {'weight': 9.0}),\n",
       " ('lady gaga', 'the runaways', {'weight': 9.0}),\n",
       " ('lady gaga', 'the sounds', {'weight': 9.0}),\n",
       " ('lady gaga', 'adriana calcanhotto', {'weight': 9.0}),\n",
       " ('lady gaga', 'paolo nutini', {'weight': 9.0}),\n",
       " ('lady gaga', 'brad paisley', {'weight': 9.0}),\n",
       " ('lady gaga', 'shiny toy guns', {'weight': 9.0}),\n",
       " ('lady gaga', 'santigold', {'weight': 9.0}),\n",
       " ('lady gaga', 'katie melua', {'weight': 9.0}),\n",
       " ('lady gaga', 'the donnas', {'weight': 9.0}),\n",
       " ('lady gaga', 'jewel', {'weight': 9.0}),\n",
       " ('lady gaga', 'alejandro sanz', {'weight': 9.0}),\n",
       " ('lady gaga', 'savage garden', {'weight': 9.0}),\n",
       " ('lady gaga', 'kid abelha', {'weight': 9.0}),\n",
       " ('lady gaga', 'james horner', {'weight': 9.0}),\n",
       " ('lady gaga', 'strike', {'weight': 9.0}),\n",
       " ('lady gaga', 'the lonely island', {'weight': 9.0}),\n",
       " ('lady gaga', 'black sabbath', {'weight': 8.0}),\n",
       " ('lady gaga', 'pearl jam', {'weight': 8.0}),\n",
       " ('lady gaga', 'disturbed', {'weight': 8.0}),\n",
       " ('lady gaga', 'the police', {'weight': 8.0}),\n",
       " ('lady gaga', 'paul mccartney', {'weight': 8.0}),\n",
       " ('lady gaga', 'the fratellis', {'weight': 8.0}),\n",
       " ('lady gaga', 'editors', {'weight': 8.0}),\n",
       " ('lady gaga', 'inxs', {'weight': 8.0}),\n",
       " ('lady gaga', 'kraftwerk', {'weight': 8.0}),\n",
       " ('lady gaga', 'she wants revenge', {'weight': 8.0}),\n",
       " ('lady gaga', 'cut copy', {'weight': 8.0}),\n",
       " ('lady gaga', 'babyshambles', {'weight': 8.0}),\n",
       " ('lady gaga', 'the verve', {'weight': 8.0}),\n",
       " ('lady gaga', 'asking alexandria', {'weight': 8.0}),\n",
       " ('lady gaga', 'prince', {'weight': 8.0}),\n",
       " ('lady gaga', 'seether', {'weight': 8.0}),\n",
       " ('lady gaga', 'clint mansell', {'weight': 8.0}),\n",
       " ('lady gaga', 'billy idol', {'weight': 8.0}),\n",
       " ('lady gaga', 'sarah brightman', {'weight': 8.0}),\n",
       " ('lady gaga', 'matchbox twenty', {'weight': 8.0}),\n",
       " ('lady gaga', 'ok go', {'weight': 8.0}),\n",
       " ('lady gaga', 'capital inicial', {'weight': 8.0}),\n",
       " ('lady gaga', 'billy joel', {'weight': 8.0}),\n",
       " ('lady gaga', 'móveis coloniais de acaju', {'weight': 8.0}),\n",
       " ('lady gaga', '[unknown]', {'weight': 8.0}),\n",
       " ('lady gaga', 'aretha franklin', {'weight': 8.0}),\n",
       " ('lady gaga', 'forever the sickest kids', {'weight': 8.0}),\n",
       " ('lady gaga', 'rascal flatts', {'weight': 8.0}),\n",
       " ('lady gaga', 'cazuza', {'weight': 8.0}),\n",
       " ('lady gaga', 'brokencyde', {'weight': 8.0}),\n",
       " ('lady gaga', 'vive la fête', {'weight': 8.0}),\n",
       " ('lady gaga', 'howard shore', {'weight': 8.0}),\n",
       " ('lady gaga', 'sheryl crow', {'weight': 8.0}),\n",
       " ('lady gaga', 'yui', {'weight': 8.0}),\n",
       " ('lady gaga', 'automatic loveletter', {'weight': 8.0}),\n",
       " ('lady gaga', 'bob dylan', {'weight': 7.0}),\n",
       " ('lady gaga', 'megadeth', {'weight': 7.0}),\n",
       " ('lady gaga', 'alice in chains', {'weight': 7.0}),\n",
       " ('lady gaga', 'a day to remember', {'weight': 7.0}),\n",
       " ('lady gaga', 'ozzy osbourne', {'weight': 7.0}),\n",
       " ('lady gaga', 'sufjan stevens', {'weight': 7.0}),\n",
       " ('lady gaga', 'apocalyptica', {'weight': 7.0}),\n",
       " ('lady gaga', 'animal collective', {'weight': 7.0}),\n",
       " ('lady gaga', 'tears for fears', {'weight': 7.0}),\n",
       " ('lady gaga', 'jimmy eat world', {'weight': 7.0}),\n",
       " ('lady gaga', 'bruce springsteen', {'weight': 7.0}),\n",
       " ('lady gaga', 'frank sinatra', {'weight': 7.0}),\n",
       " ('lady gaga', 'creed', {'weight': 7.0}),\n",
       " ('lady gaga', 'taking back sunday', {'weight': 7.0}),\n",
       " ('lady gaga', 'gary numan', {'weight': 7.0}),\n",
       " ('lady gaga', 'foals', {'weight': 7.0}),\n",
       " ('lady gaga', 'stereophonics', {'weight': 7.0}),\n",
       " ('lady gaga', 'chico buarque', {'weight': 7.0}),\n",
       " ('lady gaga', 'and one', {'weight': 7.0}),\n",
       " ('lady gaga', 'ludwig van beethoven', {'weight': 7.0}),\n",
       " ('lady gaga', 'antony and the johnsons', {'weight': 7.0}),\n",
       " ('lady gaga', 'sarah mclachlan', {'weight': 7.0}),\n",
       " ('lady gaga', 'john williams', {'weight': 7.0}),\n",
       " ('lady gaga', 'the bravery', {'weight': 7.0}),\n",
       " ('lady gaga', 'hellogoodbye', {'weight': 7.0}),\n",
       " ('lady gaga', 'fever ray', {'weight': 7.0}),\n",
       " ('lady gaga', 'dixie chicks', {'weight': 7.0}),\n",
       " ('lady gaga', 'hinder', {'weight': 7.0}),\n",
       " ('lady gaga', 'carla bruni', {'weight': 7.0}),\n",
       " ('lady gaga', 'the who', {'weight': 6.0}),\n",
       " ('lady gaga', 'pantera', {'weight': 6.0}),\n",
       " ('lady gaga', 'opeth', {'weight': 6.0}),\n",
       " ('lady gaga', 'a perfect circle', {'weight': 6.0}),\n",
       " ('lady gaga', 'manic street preachers', {'weight': 6.0}),\n",
       " ('lady gaga', 'the national', {'weight': 6.0}),\n",
       " ('lady gaga', 'bob marley', {'weight': 6.0}),\n",
       " ('lady gaga', 'anathema', {'weight': 6.0}),\n",
       " ('lady gaga', 'lostprophets', {'weight': 6.0}),\n",
       " ('lady gaga', 'the chemical brothers', {'weight': 6.0}),\n",
       " ('lady gaga', 'band of horses', {'weight': 6.0}),\n",
       " ('lady gaga', 'fleetwood mac', {'weight': 6.0}),\n",
       " ('lady gaga', 'janis joplin', {'weight': 6.0}),\n",
       " ('lady gaga', 'múm', {'weight': 6.0}),\n",
       " ('lady gaga', 'akira yamaoka', {'weight': 6.0}),\n",
       " ('lady gaga', 'alphaville', {'weight': 6.0}),\n",
       " ('lady gaga', 'sade', {'weight': 6.0}),\n",
       " ('lady gaga', 'cocorosie', {'weight': 6.0}),\n",
       " ('lady gaga', 'wolfgang amadeus mozart', {'weight': 6.0}),\n",
       " ('lady gaga', 'maxïmo park', {'weight': 6.0}),\n",
       " ('lady gaga', 'the postal service', {'weight': 6.0}),\n",
       " ('lady gaga', 'goo goo dolls', {'weight': 6.0}),\n",
       " ('lady gaga', \"jack's mannequin\", {'weight': 6.0}),\n",
       " ('lady gaga', 'the red jumpsuit apparatus', {'weight': 6.0}),\n",
       " ('lady gaga', 'lenny kravitz', {'weight': 6.0}),\n",
       " ('lady gaga', 'cute is what we aim for', {'weight': 6.0}),\n",
       " ('lady gaga', 'jet', {'weight': 6.0}),\n",
       " ('lady gaga', 'forfun', {'weight': 6.0}),\n",
       " ('lady gaga', 'phil collins', {'weight': 6.0}),\n",
       " ('lady gaga', 'slash', {'weight': 6.0}),\n",
       " ('lady gaga', 'nina simone', {'weight': 6.0}),\n",
       " ('lady gaga', 'versaemerge', {'weight': 6.0}),\n",
       " ('lady gaga', 'roxy music', {'weight': 6.0}),\n",
       " ('lady gaga', 'os mutantes', {'weight': 6.0}),\n",
       " ('lady gaga', 'the dead weather', {'weight': 6.0}),\n",
       " ('lady gaga', 'shinedown', {'weight': 6.0}),\n",
       " ('lady gaga', 'passion pit', {'weight': 6.0}),\n",
       " ('lady gaga', 'caetano veloso', {'weight': 6.0}),\n",
       " ('lady gaga', 'bowling for soup', {'weight': 6.0}),\n",
       " ('lady gaga', 'danny elfman', {'weight': 6.0}),\n",
       " ('lady gaga', 'laura marling', {'weight': 6.0}),\n",
       " ('lady gaga', 'joan jett and the blackhearts', {'weight': 6.0}),\n",
       " ('lady gaga', 'mallu magalhães', {'weight': 6.0}),\n",
       " ('lady gaga', 'édith piaf', {'weight': 6.0}),\n",
       " ('lady gaga', 'cash cash', {'weight': 6.0}),\n",
       " ('lady gaga', 'judas priest', {'weight': 5.0}),\n",
       " ('lady gaga', 'motörhead', {'weight': 5.0}),\n",
       " ('lady gaga', 'boards of canada', {'weight': 5.0}),\n",
       " ('lady gaga', 'the velvet underground', {'weight': 5.0}),\n",
       " ('lady gaga', 'in flames', {'weight': 5.0}),\n",
       " ('lady gaga', 'modest mouse', {'weight': 5.0}),\n",
       " ('lady gaga', 'the kinks', {'weight': 5.0}),\n",
       " ('lady gaga', 'the mars volta', {'weight': 5.0}),\n",
       " ('lady gaga', 'misfits', {'weight': 5.0}),\n",
       " ('lady gaga', 'atreyu', {'weight': 5.0}),\n",
       " ('lady gaga', 'alexisonfire', {'weight': 5.0}),\n",
       " ('lady gaga', 'audioslave', {'weight': 5.0}),\n",
       " ('lady gaga', 'blind guardian', {'weight': 5.0}),\n",
       " ('lady gaga', 'pj harvey', {'weight': 5.0}),\n",
       " ('lady gaga', 'siouxsie and the banshees', {'weight': 5.0}),\n",
       " ('lady gaga', 'underoath', {'weight': 5.0}),\n",
       " ('lady gaga', 'the devil wears prada', {'weight': 5.0}),\n",
       " ('lady gaga', 'mindless self indulgence', {'weight': 5.0}),\n",
       " ('lady gaga', 'suede', {'weight': 5.0}),\n",
       " ('lady gaga', 'sonata arctica', {'weight': 5.0}),\n",
       " ('lady gaga', 'genesis', {'weight': 5.0}),\n",
       " ('lady gaga', 'city and colour', {'weight': 5.0}),\n",
       " ('lady gaga', 'eurythmics', {'weight': 5.0}),\n",
       " ('lady gaga', 'jamiroquai', {'weight': 5.0}),\n",
       " ('lady gaga', 'the hives', {'weight': 5.0}),\n",
       " ('lady gaga', 'de/vision', {'weight': 5.0}),\n",
       " ('lady gaga', 'engenheiros do hawaii', {'weight': 5.0}),\n",
       " ('lady gaga', 'camouflage', {'weight': 5.0}),\n",
       " ('lady gaga', 'silverstein', {'weight': 5.0}),\n",
       " ('lady gaga', 'johann sebastian bach', {'weight': 5.0}),\n",
       " ('lady gaga', 'wolfmother', {'weight': 5.0}),\n",
       " ('lady gaga', 'lcd soundsystem', {'weight': 5.0}),\n",
       " ('lady gaga', 'infected mushroom', {'weight': 5.0}),\n",
       " ('lady gaga', 'cradle of filth', {'weight': 5.0}),\n",
       " ('lady gaga', 'stevie wonder', {'weight': 5.0}),\n",
       " ('lady gaga', 'red', {'weight': 5.0}),\n",
       " ('lady gaga', 'you me at six', {'weight': 5.0}),\n",
       " ('lady gaga', 'lupe fiasco', {'weight': 5.0}),\n",
       " ('lady gaga', 'we are scientists', {'weight': 5.0}),\n",
       " ('lady gaga', 'japan', {'weight': 5.0}),\n",
       " ('lady gaga', 'mayday parade', {'weight': 5.0}),\n",
       " ('lady gaga', 'oomph!', {'weight': 5.0}),\n",
       " ('lady gaga', 'deadmau5', {'weight': 5.0}),\n",
       " ('lady gaga', 'zемфира', {'weight': 5.0}),\n",
       " ('lady gaga', 'poets of the fall', {'weight': 5.0}),\n",
       " ('lady gaga', 'rilo kiley', {'weight': 5.0}),\n",
       " ('lady gaga', 'the 69 eyes', {'weight': 5.0}),\n",
       " ('lady gaga', 'adema', {'weight': 5.0}),\n",
       " ('lady gaga', 'hollywood undead', {'weight': 5.0}),\n",
       " ('lady gaga', 'faithless', {'weight': 5.0}),\n",
       " ('lady gaga', 'guano apes', {'weight': 5.0}),\n",
       " ('lady gaga', 'client', {'weight': 5.0}),\n",
       " ('lady gaga', 'bee gees', {'weight': 5.0}),\n",
       " ('lady gaga', 'crowded house', {'weight': 5.0}),\n",
       " ('lady gaga', 'сплин', {'weight': 5.0}),\n",
       " ('lady gaga', 'hawthorne heights', {'weight': 5.0}),\n",
       " ('lady gaga', 'dream theater', {'weight': 4.0}),\n",
       " ('lady gaga', 'aphex twin', {'weight': 4.0}),\n",
       " ('lady gaga', 'eric clapton', {'weight': 4.0}),\n",
       " ('lady gaga', 'stone sour', {'weight': 4.0}),\n",
       " ('lady gaga', 'sepultura', {'weight': 4.0}),\n",
       " ('lady gaga', 'thom yorke', {'weight': 4.0}),\n",
       " ('lady gaga', 'helloween', {'weight': 4.0}),\n",
       " ('lady gaga', 'def leppard', {'weight': 4.0}),\n",
       " ('lady gaga', 'fleet foxes', {'weight': 4.0}),\n",
       " ('lady gaga', 'the black keys', {'weight': 4.0}),\n",
       " ('lady gaga', 'of montreal', {'weight': 4.0}),\n",
       " ('lady gaga', 'angels & airwaves', {'weight': 4.0}),\n",
       " ('lady gaga', 'the shins', {'weight': 4.0}),\n",
       " ('lady gaga', 'george harrison', {'weight': 4.0}),\n",
       " ('lady gaga', 'new found glory', {'weight': 4.0}),\n",
       " ('lady gaga', 'sex pistols', {'weight': 4.0}),\n",
       " ('lady gaga', 'cream', {'weight': 4.0}),\n",
       " ('lady gaga', 'ultravox', {'weight': 4.0}),\n",
       " ('lady gaga', 'tenacious d', {'weight': 4.0}),\n",
       " ('lady gaga', 'nofx', {'weight': 4.0}),\n",
       " ('lady gaga', 'the sisters of mercy', {'weight': 4.0}),\n",
       " ('lady gaga', '2pac', {'weight': 4.0}),\n",
       " ('lady gaga', 'mando diao', {'weight': 4.0}),\n",
       " ('lady gaga', 'sublime', {'weight': 4.0}),\n",
       " ('lady gaga', 'pulp', {'weight': 4.0}),\n",
       " ('lady gaga', 'hadouken!', {'weight': 4.0}),\n",
       " ('lady gaga', 'unkle', {'weight': 4.0}),\n",
       " ('lady gaga', 'w.a.s.p.', {'weight': 4.0}),\n",
       " ('lady gaga', 'ryan adams', {'weight': 4.0}),\n",
       " ('lady gaga', 'combichrist', {'weight': 4.0}),\n",
       " ('lady gaga', 'relient k', {'weight': 4.0}),\n",
       " ('lady gaga', 'eyes set to kill', {'weight': 4.0}),\n",
       " ('lady gaga', 'stone temple pilots', {'weight': 4.0}),\n",
       " ('lady gaga', 'suicide silence', {'weight': 4.0}),\n",
       " ('lady gaga', 'rufus wainwright', {'weight': 4.0}),\n",
       " ('lady gaga', 'stars', {'weight': 4.0}),\n",
       " ('lady gaga', 'serj tankian', {'weight': 4.0}),\n",
       " ('lady gaga', 'the presets', {'weight': 4.0}),\n",
       " ('lady gaga', 'raul seixas', {'weight': 4.0}),\n",
       " ('lady gaga', 'chevelle', {'weight': 4.0}),\n",
       " ('lady gaga', 'josh groban', {'weight': 4.0}),\n",
       " ('lady gaga', 'dirty pretty things', {'weight': 4.0}),\n",
       " ('lady gaga', \"the b-52's\", {'weight': 4.0}),\n",
       " ('lady gaga', 'erykah badu', {'weight': 4.0}),\n",
       " ('lady gaga', 'yeasayer', {'weight': 4.0}),\n",
       " ('lady gaga', 'tokyo police club', {'weight': 4.0}),\n",
       " ('lady gaga', 'pain', {'weight': 4.0}),\n",
       " ('lady gaga', 'dr. dre', {'weight': 4.0}),\n",
       " ('lady gaga', 'amiina', {'weight': 4.0}),\n",
       " ('lady gaga', 'billie holiday', {'weight': 4.0}),\n",
       " ('lady gaga', 'digitalism', {'weight': 4.0}),\n",
       " ('lady gaga', 'heart', {'weight': 4.0}),\n",
       " ('lady gaga', 'gnarls barkley', {'weight': 4.0}),\n",
       " ('lady gaga', 'ayria', {'weight': 4.0}),\n",
       " ('lady gaga', 'rise against', {'weight': 3.0}),\n",
       " ('lady gaga', 'slayer', {'weight': 3.0}),\n",
       " ('lady gaga', 'jimi hendrix', {'weight': 3.0}),\n",
       " ('lady gaga', 'rage against the machine', {'weight': 3.0}),\n",
       " ('lady gaga', 'explosions in the sky', {'weight': 3.0}),\n",
       " ('lady gaga', 'children of bodom', {'weight': 3.0}),\n",
       " ('lady gaga', 'limp bizkit', {'weight': 3.0}),\n",
       " ('lady gaga', 'faith no more', {'weight': 3.0}),\n",
       " ('lady gaga', 'alice cooper', {'weight': 3.0}),\n",
       " ('lady gaga', 'tom waits', {'weight': 3.0}),\n",
       " ('lady gaga', 'kings of convenience', {'weight': 3.0}),\n",
       " ('lady gaga', 'god is an astronaut', {'weight': 3.0}),\n",
       " ('lady gaga', 'the human league', {'weight': 3.0}),\n",
       " ('lady gaga', 'whitesnake', {'weight': 3.0}),\n",
       " ('lady gaga', 'enter shikari', {'weight': 3.0}),\n",
       " ('lady gaga', 'jeff buckley', {'weight': 3.0}),\n",
       " ('lady gaga', 'skid row', {'weight': 3.0}),\n",
       " ('lady gaga', 'cocteau twins', {'weight': 3.0}),\n",
       " ('lady gaga', 'iron & wine', {'weight': 3.0}),\n",
       " ('lady gaga', 'lynyrd skynyrd', {'weight': 3.0}),\n",
       " ('lady gaga', 'simple minds', {'weight': 3.0}),\n",
       " ('lady gaga', 'mew', {'weight': 3.0}),\n",
       " ('lady gaga', 'saosin', {'weight': 3.0}),\n",
       " ('lady gaga', 'matanza', {'weight': 3.0}),\n",
       " ('lady gaga', 'blessthefall', {'weight': 3.0}),\n",
       " ('lady gaga', 'black rebel motorcycle club', {'weight': 3.0}),\n",
       " ('lady gaga', 'beastie boys', {'weight': 3.0}),\n",
       " ('lady gaga', 'funeral for a friend', {'weight': 3.0}),\n",
       " ('lady gaga', 'deerhunter', {'weight': 3.0}),\n",
       " ('lady gaga', 'echo & the bunnymen', {'weight': 3.0}),\n",
       " ('lady gaga', 'beach house', {'weight': 3.0}),\n",
       " ('lady gaga', 'hoobastank', {'weight': 3.0}),\n",
       " ('lady gaga', 'razorlight', {'weight': 3.0}),\n",
       " ('lady gaga', 'p.o.d.', {'weight': 3.0}),\n",
       " ('lady gaga', 'kamelot', {'weight': 3.0}),\n",
       " ('lady gaga', 'manu chao', {'weight': 3.0}),\n",
       " ('lady gaga', 'raimundos', {'weight': 3.0}),\n",
       " ('lady gaga', 'neutral milk hotel', {'weight': 3.0}),\n",
       " ('lady gaga', 'little joy', {'weight': 3.0}),\n",
       " ('lady gaga', 'the flaming lips', {'weight': 3.0}),\n",
       " ('lady gaga', 'cpm 22', {'weight': 3.0}),\n",
       " ('lady gaga', 'journey', {'weight': 3.0}),\n",
       " ('lady gaga', 'godsmack', {'weight': 3.0}),\n",
       " ('lady gaga', 'the distillers', {'weight': 3.0}),\n",
       " ('lady gaga', 'alter bridge', {'weight': 3.0}),\n",
       " ('lady gaga', 'snoop dogg', {'weight': 3.0}),\n",
       " ('lady gaga', 'apoptygma berzerk', {'weight': 3.0}),\n",
       " ('lady gaga', 'tricky', {'weight': 3.0}),\n",
       " ('lady gaga', 'amorphis', {'weight': 3.0}),\n",
       " ('lady gaga', 'jamie cullum', {'weight': 3.0}),\n",
       " ('lady gaga', 'chiodos', {'weight': 3.0}),\n",
       " ('lady gaga', 'the radio dept.', {'weight': 3.0}),\n",
       " ('lady gaga', 'story of the year', {'weight': 3.0}),\n",
       " ('lady gaga', 'nitzer ebb', {'weight': 3.0}),\n",
       " ('lady gaga', 'sneaker pimps', {'weight': 3.0}),\n",
       " ('lady gaga', 'blutengel', {'weight': 3.0}),\n",
       " ('lady gaga', 'riverside', {'weight': 3.0}),\n",
       " ('lady gaga', 'hatebreed', {'weight': 3.0}),\n",
       " ('lady gaga', 'abc', {'weight': 3.0}),\n",
       " ('lady gaga', '+44', {'weight': 3.0}),\n",
       " ('lady gaga', 'era', {'weight': 3.0}),\n",
       " ('lady gaga', 'attack attack!', {'weight': 3.0}),\n",
       " ('lady gaga', 'jónsi', {'weight': 3.0}),\n",
       " ('lady gaga', 'mesh', {'weight': 3.0}),\n",
       " ('lady gaga', 'sick puppies', {'weight': 3.0}),\n",
       " ('lady gaga', 'the dandy warhols', {'weight': 3.0}),\n",
       " ('lady gaga', 'the magnetic fields', {'weight': 3.0}),\n",
       " ('lady gaga', 'icehouse', {'weight': 3.0}),\n",
       " ('lady gaga', 'sonic syndicate', {'weight': 3.0}),\n",
       " ('lady gaga', 'o teatro mágico', {'weight': 3.0}),\n",
       " ('lady gaga', 'cat stevens', {'weight': 3.0}),\n",
       " ('lady gaga', 'eisley', {'weight': 3.0}),\n",
       " ('lady gaga', 'kansas', {'weight': 3.0}),\n",
       " ('lady gaga', 'the dresden dolls', {'weight': 3.0}),\n",
       " ('lady gaga', 'madness', {'weight': 3.0}),\n",
       " ('lady gaga', 'vangelis', {'weight': 3.0}),\n",
       " ('lady gaga', 'marillion', {'weight': 3.0}),\n",
       " ('lady gaga', 'crashdïet', {'weight': 3.0}),\n",
       " ('lady gaga', 'blue october', {'weight': 3.0}),\n",
       " ('lady gaga', 'porcupine tree', {'weight': 2.0}),\n",
       " ('lady gaga', 'sonic youth', {'weight': 2.0}),\n",
       " ('lady gaga', 'van halen', {'weight': 2.0}),\n",
       " ('lady gaga', 'bad religion', {'weight': 2.0}),\n",
       " ('lady gaga', 'rush', {'weight': 2.0}),\n",
       " ('lady gaga', 'bonobo', {'weight': 2.0}),\n",
       " ('lady gaga', 'dire straits', {'weight': 2.0}),\n",
       " ('lady gaga', 'my bloody valentine', {'weight': 2.0}),\n",
       " ('lady gaga', 'simon & garfunkel', {'weight': 2.0}),\n",
       " ('lady gaga', 'death', {'weight': 2.0}),\n",
       " ('lady gaga', 'katatonia', {'weight': 2.0}),\n",
       " ('lady gaga', 'kreator', {'weight': 2.0}),\n",
       " ('lady gaga', 'soundgarden', {'weight': 2.0}),\n",
       " ('lady gaga', 'eagles', {'weight': 2.0}),\n",
       " ('lady gaga', 'bauhaus', {'weight': 2.0}),\n",
       " ('lady gaga', 'bon iver', {'weight': 2.0}),\n",
       " ('lady gaga', 'brand new', {'weight': 2.0}),\n",
       " ('lady gaga', 'electric light orchestra', {'weight': 2.0}),\n",
       " ('lady gaga', 'yazoo', {'weight': 2.0}),\n",
       " ('lady gaga', 'spoon', {'weight': 2.0}),\n",
       " ('lady gaga', 'grizzly bear', {'weight': 2.0}),\n",
       " ('lady gaga', 'switchfoot', {'weight': 2.0}),\n",
       " ('lady gaga', 'talking heads', {'weight': 2.0}),\n",
       " ('lady gaga', 'blackfield', {'weight': 2.0}),\n",
       " ('lady gaga', 'amon tobin', {'weight': 2.0}),\n",
       " ('lady gaga', 'paradise lost', {'weight': 2.0}),\n",
       " ('lady gaga', 'blonde redhead', {'weight': 2.0}),\n",
       " ('lady gaga', 'talk talk', {'weight': 2.0}),\n",
       " ('lady gaga', 'the horrors', {'weight': 2.0}),\n",
       " ('lady gaga', 'burial', {'weight': 2.0}),\n",
       " ('lady gaga', 'autechre', {'weight': 2.0}),\n",
       " ('lady gaga', 'venetian snares', {'weight': 2.0}),\n",
       " ('lady gaga', 'vnv nation', {'weight': 2.0}),\n",
       " ('lady gaga', 't. rex', {'weight': 2.0}),\n",
       " ('lady gaga', 'avantasia', {'weight': 2.0}),\n",
       " ('lady gaga', 'hammerfall', {'weight': 2.0}),\n",
       " ('lady gaga', 'dead kennedys', {'weight': 2.0}),\n",
       " ('lady gaga', 'zero 7', {'weight': 2.0}),\n",
       " ('lady gaga', 'rancid', {'weight': 2.0}),\n",
       " ('lady gaga', 'spandau ballet', {'weight': 2.0}),\n",
       " ('lady gaga', 'dead by april', {'weight': 2.0}),\n",
       " ('lady gaga', 'biffy clyro', {'weight': 2.0}),\n",
       " ('lady gaga', 'andrew bird', {'weight': 2.0}),\n",
       " ('lady gaga', 'mr. big', {'weight': 2.0}),\n",
       " ('lady gaga', 'wu-tang clan', {'weight': 2.0}),\n",
       " ('lady gaga', 'ólafur arnalds', {'weight': 2.0}),\n",
       " ('lady gaga', 'the vines', {'weight': 2.0}),\n",
       " ('lady gaga', 'europe', {'weight': 2.0}),\n",
       " ('lady gaga', 'cannibal corpse', {'weight': 2.0}),\n",
       " ('lady gaga', '植松伸夫', {'weight': 2.0}),\n",
       " ('lady gaga', 'millencolin', {'weight': 2.0}),\n",
       " ('lady gaga', 'burzum', {'weight': 2.0}),\n",
       " ('lady gaga', 'sodom', {'weight': 2.0}),\n",
       " ('lady gaga', 'bush', {'weight': 2.0}),\n",
       " ('lady gaga', 'static-x', {'weight': 2.0}),\n",
       " ('lady gaga', 'five finger death punch', {'weight': 2.0}),\n",
       " ('lady gaga', 'behemoth', {'weight': 2.0}),\n",
       " ('lady gaga', 'jefferson airplane', {'weight': 2.0}),\n",
       " ('lady gaga', 'thievery corporation', {'weight': 2.0}),\n",
       " ('lady gaga', 'the flashbulb', {'weight': 2.0}),\n",
       " ('lady gaga', 'deathstars', {'weight': 2.0}),\n",
       " ('lady gaga', 'the wombats', {'weight': 2.0}),\n",
       " ('lady gaga', 'die ärzte', {'weight': 2.0}),\n",
       " ('lady gaga', 'hooverphonic', {'weight': 2.0}),\n",
       " ('lady gaga', 'mf doom', {'weight': 2.0}),\n",
       " ('lady gaga', 'noize mc', {'weight': 2.0}),\n",
       " ('lady gaga', 'anti-flag', {'weight': 2.0}),\n",
       " ('lady gaga', 'circa survive', {'weight': 2.0}),\n",
       " ('lady gaga', 'coheed and cambria', {'weight': 2.0}),\n",
       " ('lady gaga', 'covenant', {'weight': 2.0}),\n",
       " ('lady gaga', 'front 242', {'weight': 2.0}),\n",
       " ('lady gaga', 'finch', {'weight': 2.0}),\n",
       " ('lady gaga', 'iggy pop', {'weight': 2.0}),\n",
       " ('lady gaga', 'buddy holly', {'weight': 2.0}),\n",
       " ('lady gaga', 'copeland', {'weight': 2.0}),\n",
       " ('lady gaga', 'mr. bungle', {'weight': 2.0}),\n",
       " ('lady gaga', 'from first to last', {'weight': 2.0}),\n",
       " ('lady gaga', 'bombay bicycle club', {'weight': 2.0}),\n",
       " ('lady gaga', 'peter bjorn and john', {'weight': 2.0}),\n",
       " ('lady gaga', 'tool', {'weight': 1.0}),\n",
       " ('lady gaga', 'deep purple', {'weight': 1.0}),\n",
       " ('lady gaga', 'killswitch engage', {'weight': 1.0}),\n",
       " ('lady gaga', 'the jimi hendrix experience', {'weight': 1.0}),\n",
       " ('lady gaga', 'orchestral manoeuvres in the dark', {'weight': 1.0}),\n",
       " ('lady gaga', 'neil young', {'weight': 1.0}),\n",
       " ('lady gaga', 'arch enemy', {'weight': 1.0}),\n",
       " ('lady gaga', 'dio', {'weight': 1.0}),\n",
       " ('lady gaga', 'rainbow', {'weight': 1.0}),\n",
       " ('lady gaga', 'black label society', {'weight': 1.0}),\n",
       " ('lady gaga', '65daysofstatic', {'weight': 1.0}),\n",
       " ('lady gaga', 'trivium', {'weight': 1.0}),\n",
       " ('lady gaga', 'mastodon', {'weight': 1.0}),\n",
       " ('lady gaga', 'wilco', {'weight': 1.0}),\n",
       " ('lady gaga', 'bob marley & the wailers', {'weight': 1.0}),\n",
       " ('lady gaga', 'devendra banhart', {'weight': 1.0}),\n",
       " ('lady gaga', 'ulver', {'weight': 1.0}),\n",
       " ('lady gaga', 'dead can dance', {'weight': 1.0}),\n",
       " ('lady gaga', 'pain of salvation', {'weight': 1.0}),\n",
       " ('lady gaga', 'dimmu borgir', {'weight': 1.0}),\n",
       " ('lady gaga', 'nouvelle vague', {'weight': 1.0}),\n",
       " ('lady gaga', 'bruce dickinson', {'weight': 1.0}),\n",
       " ('lady gaga', 'flying lotus', {'weight': 1.0}),\n",
       " ('lady gaga', 'pavement', {'weight': 1.0}),\n",
       " ('lady gaga', 'august burns red', {'weight': 1.0}),\n",
       " ('lady gaga', 'angra', {'weight': 1.0}),\n",
       " ('lady gaga', 'testament', {'weight': 1.0}),\n",
       " ('lady gaga', 'dark tranquillity', {'weight': 1.0}),\n",
       " ('lady gaga', 'soft cell', {'weight': 1.0}),\n",
       " ('lady gaga', 'machine head', {'weight': 1.0}),\n",
       " ('lady gaga', 'the decemberists', {'weight': 1.0}),\n",
       " ('lady gaga', 'soilwork', {'weight': 1.0}),\n",
       " ('lady gaga', 'morcheeba', {'weight': 1.0}),\n",
       " ('lady gaga', 'clan of xymox', {'weight': 1.0}),\n",
       " ('lady gaga', 'fear factory', {'weight': 1.0}),\n",
       " ('lady gaga', 'yes', {'weight': 1.0}),\n",
       " ('lady gaga', 'eels', {'weight': 1.0}),\n",
       " ('lady gaga', 'dave matthews band', {'weight': 1.0}),\n",
       " ('lady gaga', 'four year strong', {'weight': 1.0}),\n",
       " ('lady gaga', 'the yardbirds', {'weight': 1.0}),\n",
       " ('lady gaga', 'the jesus and mary chain', {'weight': 1.0}),\n",
       " ('lady gaga', 'isis', {'weight': 1.0}),\n",
       " ('lady gaga', 'cake', {'weight': 1.0}),\n",
       " ('lady gaga', 'chuck berry', {'weight': 1.0}),\n",
       " ('lady gaga', 'queensrÿche', {'weight': 1.0}),\n",
       " ('lady gaga', 'skinny puppy', {'weight': 1.0}),\n",
       " ('lady gaga', 'staind', {'weight': 1.0}),\n",
       " ('lady gaga', 'j dilla', {'weight': 1.0}),\n",
       " ('lady gaga', 'alkaline trio', {'weight': 1.0}),\n",
       " ('lady gaga', 'frédéric chopin', {'weight': 1.0}),\n",
       " ('lady gaga', 'john frusciante', {'weight': 1.0}),\n",
       " ('lady gaga', 'stratovarius', {'weight': 1.0}),\n",
       " ('lady gaga', 'cypress hill', {'weight': 1.0}),\n",
       " ('lady gaga', 'boston', {'weight': 1.0}),\n",
       " ('lady gaga', 'mudvayne', {'weight': 1.0}),\n",
       " ('lady gaga', 'poison', {'weight': 1.0}),\n",
       " ('lady gaga', 'moptop', {'weight': 1.0}),\n",
       " ('lady gaga', 'coil', {'weight': 1.0}),\n",
       " ('lady gaga', 'senses fail', {'weight': 1.0}),\n",
       " ('lady gaga', 'type o negative', {'weight': 1.0}),\n",
       " ('lady gaga', 'stars of the lid', {'weight': 1.0}),\n",
       " ('lady gaga', 'the roots', {'weight': 1.0}),\n",
       " ('lady gaga', 'camera obscura', {'weight': 1.0}),\n",
       " ('lady gaga', 'a skylit drive', {'weight': 1.0}),\n",
       " ('lady gaga', 'santana', {'weight': 1.0}),\n",
       " ('lady gaga', 'bloodhound gang', {'weight': 1.0}),\n",
       " ('lady gaga', 'agalloch', {'weight': 1.0}),\n",
       " ('lady gaga', 'syd barrett', {'weight': 1.0}),\n",
       " ('lady gaga', 'the cribs', {'weight': 1.0}),\n",
       " ('lady gaga', 'say anything', {'weight': 1.0}),\n",
       " ('lady gaga', 'eluveitie', {'weight': 1.0}),\n",
       " ('lady gaga', 'the mountain goats', {'weight': 1.0}),\n",
       " ('lady gaga', 'josé gonzález', {'weight': 1.0}),\n",
       " ('lady gaga', 'richard ashcroft', {'weight': 1.0}),\n",
       " ('lady gaga', 'stereolab', {'weight': 1.0}),\n",
       " ('lady gaga', 'plaid', {'weight': 1.0}),\n",
       " ('lady gaga', 'in this moment', {'weight': 1.0}),\n",
       " ('lady gaga', 'emarosa', {'weight': 1.0}),\n",
       " ('lady gaga', 'therion', {'weight': 1.0}),\n",
       " ('lady gaga', 'motion city soundtrack', {'weight': 1.0}),\n",
       " ('lady gaga', 'morbid angel', {'weight': 1.0}),\n",
       " ('lady gaga', 'hypocrisy', {'weight': 1.0}),\n",
       " ('lady gaga', 'ratt', {'weight': 1.0}),\n",
       " ('lady gaga', 'thompson twins', {'weight': 1.0})]"
      ]
     },
     "execution_count": 94,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sorted(G.edges('lady gaga',data=True),key= lambda x: x[2]['weight'],reverse=True)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 95,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'pop',\n",
       "  'genre2': 'dance',\n",
       "  'genre3': 'electronic',\n",
       "  'freq': 611}}"
      ]
     },
     "execution_count": 95,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G.node['lady gaga']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 96,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "436.0\n"
     ]
    }
   ],
   "source": [
    "weight_node = sorted(G.edges('lady gaga',data=True),key= lambda x: x[2]['weight'],reverse=True)[0][2]['weight']\n",
    "print(weight_node)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 97,
   "metadata": {},
   "outputs": [],
   "source": [
    "num_nodes = G.number_of_nodes()\n",
    "weight_nodes = {}\n",
    "for name_artist, inner_d in G.nodes(data=True):\n",
    "    weight_nodes[name_artist] = sorted(G.edges(name_artist,data=True),key= lambda x: x[2]['weight'],reverse=True)[0][2]['weight']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 98,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'lady gaga': 436.0, 'britney spears': 436.0, 'rihanna': 414.0, 'the beatles': 193.0, 'katy perry': 396.0, 'madonna': 310.0, 'avril lavigne': 299.0, 'christina aguilera': 360.0, 'muse': 171.0, 'paramore': 222.0, 'beyoncé': 348.0, 'radiohead': 193.0, 'coldplay': 160.0, 'ke$ha': 313.0, 'shakira': 270.0, 'p!nk': 248.0, 'the killers': 156.0, 'black eyed peas': 259.0, 'kylie minogue': 249.0, 'miley cyrus': 255.0, 'depeche mode': 117.0, 'linkin park': 121.0, 'michael jackson': 153.0, 'kelly clarkson': 220.0, 'nirvana': 119.0, 'pink floyd': 156.0, 'glee cast': 198.0, 'arctic monkeys': 140.0, 'taylor swift': 198.0, 'lily allen': 171.0, 'placebo': 127.0, 'mariah carey': 208.0, 'green day': 110.0, 'kings of leon': 114.0, 'the pussycat dolls': 215.0, 'the cure': 117.0, 'evanescence': 124.0, 'metallica': 98.0, 'red hot chili peppers': 102.0, '30 seconds to mars': 120.0, 'oasis': 120.0, 'jennifer lopez': 194.0, 'queen': 109.0, 'eminem': 116.0, 'david bowie': 113.0, 'led zeppelin': 125.0, 'amy winehouse': 124.0, 'u2': 90.0, 'the strokes': 120.0, 'ashley tisdale': 164.0, 'system of a down': 71.0, 'ac/dc': 94.0, 'iron maiden': 98.0, 'franz ferdinand': 99.0, 'björk': 81.0, 'hilary duff': 149.0, 'foo fighters': 73.0, 'the smiths': 87.0, 'nelly furtado': 142.0, \"guns n' roses\": 79.0, 'leona lewis': 142.0, 'florence + the machine': 102.0, 'my chemical romance': 96.0, 'david guetta': 131.0, 'sigur rós': 107.0, 'adam lambert': 128.0, '3oh!3': 124.0, 'daft punk': 59.0, 'blink-182': 67.0, 'alicia keys': 126.0, 'gwen stefani': 122.0, 'selena gomez & the scene': 130.0, 'mgmt': 76.0, 'joy division': 72.0, 'rammstein': 55.0, 'justin timberlake': 111.0, 'maroon 5': 89.0, 'the doors': 88.0, 'nine inch nails': 62.0, 'panic! at the disco': 89.0, 'death cab for cutie': 74.0, 'kanye west': 76.0, 'marilyn manson': 51.0, 'alanis morissette': 70.0, 'the rolling stones': 96.0, 'fall out boy': 84.0, 'the kooks': 86.0, 'keane': 88.0, 'yeah yeah yeahs': 67.0, 'demi lovato': 103.0, 'ashlee simpson': 112.0, 'arcade fire': 84.0, 'cheryl cole': 119.0, 'black sabbath': 81.0, 'adele': 90.0, 'the veronicas': 95.0, 'lindsay lohan': 118.0, 'interpol': 78.0, 'gorillaz': 55.0, 'the smashing pumpkins': 71.0, 'pearl jam': 60.0, 'the pretty reckless': 100.0, 'enrique iglesias': 98.0, 'pixie lott': 104.0, 'avenged sevenfold': 63.0, 'snow patrol': 72.0, 'queens of the stone age': 62.0, 'blur': 77.0, 'nickelback': 50.0, 'slipknot': 54.0, 'massive attack': 56.0, 'duran duran': 84.0, 'crystal castles': 54.0, 'bob dylan': 80.0, 't.a.t.u.': 82.0, 'portishead': 64.0, 'the white stripes': 69.0, 'new order': 79.0, 'cobra starship': 79.0, 'ciara': 101.0, 'nicole scherzinger': 102.0, 'timbaland': 86.0, 'megadeth': 75.0, 'ramones': 55.0, 'nightwish': 48.0, 'justin bieber': 91.0, 'within temptation': 56.0, 'a-ha': 65.0, 'korn': 46.0, 'fergie': 89.0, 'r.e.m.': 48.0, 'elvis presley': 58.0, 'incubus': 41.0, 'backstreet boys': 79.0, 'los hermanos': 64.0, 'pet shop boys': 68.0, 'regina spektor': 41.0, 'the who': 72.0, 'the clash': 62.0, 'good charlotte': 60.0, 'usher': 81.0, 'mika': 72.0, 'aerosmith': 48.0, 'janet jackson': 76.0, 'la roux': 59.0, 'jordin sparks': 82.0, 'kasabian': 50.0, 'owl city': 51.0, 'three days grace': 45.0, 'weezer': 49.0, 'nicki minaj': 78.0, 'pitty': 67.0, 'simple plan': 59.0, 'judas priest': 65.0, 'moby': 40.0, 'robyn': 65.0, 'the offspring': 44.0, 'bloc party': 50.0, 'beck': 58.0, 'bon jovi': 42.0, 'jay-z': 44.0, 'garbage': 40.0, \"destiny's child\": 67.0, 'sum 41': 44.0, 'kiss': 50.0, 'boys like girls': 63.0, 'the xx': 42.0, 'goldfrapp': 39.0, 'bullet for my valentine': 43.0, 'onerepublic': 55.0, 'jonas brothers': 66.0, 'céline dion': 64.0, 'cansei de ser sexy': 51.0, 'sugababes': 71.0, 'natasha bedingfield': 73.0, 'rise against': 35.0, 'cascada': 70.0, 'slayer': 53.0, 'alice in chains': 46.0, 'm.i.a.': 54.0, 'duffy': 54.0, 'the ting tings': 54.0, 'kate nash': 43.0, 'tool': 36.0, 'belle and sebastian': 45.0, 'chris brown': 73.0, 'john mayer': 30.0, 'vampire weekend': 42.0, 'papa roach': 37.0, 'the fray': 44.0, 'all time low': 57.0, 'klaxons': 49.0, 'pixies': 45.0, 'robbie williams': 46.0, 'a day to remember': 42.0, 'ellie goulding': 53.0, 'scorpions': 39.0, 'deep purple': 49.0, 'carrie underwood': 65.0, 'the prodigy': 32.0, 'dream theater': 40.0, 'vanessa hudgens': 71.0, 'keri hilson': 68.0, 'kaiser chiefs': 48.0, 'elliott smith': 49.0, 'the all-american rejects': 51.0, 'air': 44.0, 'beirut': 43.0, 'johnny cash': 40.0, 'rbd': 63.0, 'abba': 43.0, 'the used': 41.0, 'him': 28.0, 'jack johnson': 31.0, 'pantera': 49.0, 'bring me the horizon': 38.0, 'bruno mars': 65.0, 'motörhead': 52.0, 'porcupine tree': 40.0, 'röyksopp': 29.0, 'flyleaf': 49.0, 'the cranberries': 31.0, 'hurts': 47.0, 'jessie j': 67.0, 'jimi hendrix': 42.0, 'lifehouse': 33.0, 'mcfly': 50.0, 'breaking benjamin': 43.0, 'phoenix': 37.0, 'boards of canada': 28.0, 'escape the fate': 46.0, 'colbie caillat': 55.0, 'taio cruz': 65.0, 'yann tiersen': 38.0, 'travis': 43.0, 'rage against the machine': 35.0, 'little boots': 54.0, 'kerli': 58.0, 'opeth': 35.0, 'the velvet underground': 42.0, 'deftones': 27.0, 'anahí': 65.0, 'girls aloud': 59.0, 'in flames': 30.0, 'sophie ellis-bextor': 50.0, 'iamx': 39.0, 'ozzy osbourne': 45.0, 'creedence clearwater revival': 41.0, 'aphex twin': 31.0, 'belinda': 61.0, 'jessica simpson': 57.0, 'john lennon': 58.0, 'tori amos': 25.0, 'fresno': 44.0, 'boa': 54.0, 'marina & the diamonds': 46.0, 'kelly rowland': 62.0, 'a perfect circle': 35.0, 'b.o.b': 50.0, 'feist': 34.0, 'james blunt': 34.0, 'legião urbana': 33.0, 'the saturdays': 57.0, 'jojo': 54.0, 'disturbed': 32.0, 'jason mraz': 33.0, 'morrissey': 43.0, 'spice girls': 54.0, 'sufjan stevens': 42.0, 'modest mouse': 31.0, 'sonic youth': 36.0, 'cyndi lauper': 43.0, 'no doubt': 35.0, 'the police': 38.0, 'the libertines': 38.0, 'dave gahan': 58.0, 'bat for lashes': 26.0, 'cat power': 37.0, 'leighton meester': 52.0, 'dido': 35.0, 'explosions in the sky': 36.0, 't.i.': 45.0, 'ne-yo': 50.0, 'ladytron': 29.0, 'apocalyptica': 31.0, 'sia': 27.0, 'manic street preachers': 27.0, 'the beach boys': 42.0, '3 doors down': 26.0, 'the national': 33.0, 'animal collective': 37.0, 'cher': 46.0, 'van halen': 38.0, 'metric': 29.0, 'norah jones': 25.0, 'the kinks': 41.0, 'jesse mccartney': 48.0, 'eric clapton': 38.0, 'children of bodom': 34.0, 'justice': 31.0, 'damien rice': 21.0, 'limp bizkit': 26.0, 'tegan and sara': 22.0, 'lacuna coil': 27.0, 'paul mccartney': 48.0, 'tears for fears': 39.0, 'faith no more': 25.0, 'the last shadow puppets': 43.0, 'emily osment': 47.0, 'alice cooper': 33.0, 'the mars volta': 31.0, 'mötley crüe': 32.0, 'david archuleta': 42.0, 'whitney houston': 38.0, 'white lies': 29.0, 'the fratellis': 43.0, 'editors': 34.0, 'tom waits': 24.0, 'kings of convenience': 26.0, 'hannah montana': 47.0, 'misfits': 18.0, 'bob marley': 22.0, 'erasure': 45.0, 'roxette': 29.0, 'lady antebellum': 36.0, 'atreyu': 29.0, 'god is an astronaut': 25.0, 'm83': 26.0, 'inxs': 38.0, 'jimmy eat world': 22.0, 'alexisonfire': 23.0, 'afi': 23.0, 'anathema': 23.0, 'enya': 24.0, 'scissor sisters': 32.0, 'shania twain': 31.0, 'audioslave': 21.0, 'billy talent': 20.0, 'bruce springsteen': 27.0, 'michael bublé': 29.0, 'mogwai': 29.0, 'yellowcard': 30.0, 'killswitch engage': 22.0, 'aly & aj': 39.0, 'bad religion': 21.0, 'stone sour': 29.0, 'blind guardian': 34.0, 'lostprophets': 30.0, 'kraftwerk': 30.0, \"lil' wayne\": 27.0, 'skillet': 28.0, 'blondie': 20.0, 'hans zimmer': 17.0, 'hot chip': 23.0, 'patrick wolf': 24.0, 'kelis': 40.0, 'nx zero': 32.0, 'pj harvey': 29.0, 'rush': 30.0, 'frank sinatra': 21.0, 'she wants revenge': 25.0, 'bonobo': 19.0, 'kid cudi': 23.0, 'far east movement': 41.0, 'the knife': 22.0, 'jeffree star': 34.0, 'george michael': 24.0, 'sepultura': 25.0, 'paris hilton': 41.0, 'siouxsie and the banshees': 32.0, 'the human league': 38.0, 'underoath': 19.0, 'the devil wears prada': 24.0, 'kat deluna': 43.0, 'bright eyes': 29.0, 'tokio hotel': 31.0, 'thom yorke': 39.0, 'alexandra burke': 41.0, 'pendulum': 18.0, 'the jimi hendrix experience': 28.0, 'martin l. gore': 42.0, 'metro station': 30.0, 'as i lay dying': 22.0, 'whitesnake': 27.0, 'the chemical brothers': 22.0, 'band of horses': 20.0, 'alesana': 25.0, 'she & him': 22.0, 'girlicious': 42.0, 'fleetwood mac': 23.0, 'daughtry': 23.0, 'dire straits': 28.0, 'calvin harris': 24.0, 'kate bush': 22.0, 'enigma': 17.0, 'flo rida': 37.0, 'orchestral manoeuvres in the dark': 35.0, 'hey monday': 36.0, 'janis joplin': 24.0, 'my bloody valentine': 22.0, 'cut copy': 20.0, 'jethro tull': 30.0, 'enter shikari': 19.0, 'babyshambles': 26.0, 'helloween': 35.0, 'simon & garfunkel': 29.0, 'lykke li': 17.0, 'joss stone': 27.0, 'def leppard': 21.0, 'neil young': 28.0, 'miranda cosgrove': 37.0, 'jeff buckley': 30.0, 'the verve': 29.0, 'arch enemy': 21.0, 'pink': 30.0, 'mindless self indulgence': 15.0, 'the rasmus': 23.0, 'ana carolina': 28.0, 'fleet foxes': 22.0, 'elton john': 23.0, 'the kills': 20.0, 'natalia kills': 37.0, 'suede': 26.0, 'dio': 31.0, 'creed': 20.0, 'laura pausini': 26.0, 'skid row': 28.0, 'imogen heap': 18.0, 'cocteau twins': 22.0, 'the birthday massacre': 16.0, 'the black keys': 19.0, 'selena gomez': 35.0, 'iron & wine': 18.0, 'the cardigans': 16.0, 'sonata arctica': 25.0, '宇多田ヒカル': 24.0, 'brandy': 31.0, 'anberlin': 20.0, 'death': 24.0, 'willow smith': 36.0, '浜崎あゆみ': 23.0, 'genesis': 25.0, 'katatonia': 19.0, 'taking back sunday': 20.0, 'a fine frenzy': 21.0, 'akon': 29.0, 'city and colour': 17.0, 'gary numan': 28.0, 'epica': 23.0, 'kreator': 26.0, 'múm': 30.0, '50 cent': 21.0, 'foals': 17.0, 'fiona apple': 18.0, 'two door cinema club': 21.0, 'silverchair': 19.0, 'broken social scene': 22.0, 'of montreal': 23.0, 'lynyrd skynyrd': 21.0, 'soundgarden': 25.0, 'angels & airwaves': 25.0, 'simple minds': 34.0, 'the shins': 21.0, 'dashboard confessional': 17.0, 'rainbow': 26.0, 'kris allen': 26.0, 'mew': 23.0, 'george harrison': 35.0, 'drake': 20.0, 'eurythmics': 28.0, \"plain white t's\": 22.0, 'saosin': 18.0, 'asking alexandria': 22.0, 'new found glory': 22.0, 'tiësto': 17.0, 'stereophonics': 20.0, 'chico buarque': 25.0, 'lamb of god': 20.0, 'akira yamaoka': 12.0, 'black label society': 24.0, 'sex pistols': 16.0, 'danity kane': 31.0, 'the subways': 24.0, 'charlie brown jr.': 22.0, 'pitbull': 27.0, 'matanza': 21.0, 'jamiroquai': 12.0, 'the hives': 22.0, 'empire of the sun': 12.0, 'cream': 24.0, 'de/vision': 30.0, 'kt tunstall': 21.0, 'engenheiros do hawaii': 18.0, 'blessthefall': 25.0, 'ultravox': 29.0, 'prince': 17.0, 'tenacious d': 16.0, 'recoil': 31.0, 'jason derülo': 29.0, 'nofx': 15.0, 'black rebel motorcycle club': 18.0, 'simon curtis': 30.0, 'camouflage': 31.0, '65daysofstatic': 17.0, 'trivium': 18.0, 'hole': 14.0, 'sara bareilles': 20.0, 'beastie boys': 12.0, 'katharine mcphee': 29.0, 'ladyhawke': 21.0, 'and one': 26.0, 'eagles': 19.0, 'funeral for a friend': 19.0, 'sting': 21.0, 'anastacia': 24.0, 'tarja': 23.0, 'silverstein': 15.0, 'johann sebastian bach': 12.0, 'mastodon': 14.0, 'alphaville': 24.0, 'king crimson': 21.0, 'the script': 17.0, 'the sisters of mercy': 21.0, 'marisa monte': 17.0, 'atb': 13.0, 'emilie autumn': 11.0, 'amy macdonald': 23.0, 'ludwig van beethoven': 11.0, 'wanessa': 29.0, 'frank zappa': 18.0, 'gossip': 17.0, 'armin van buuren': 12.0, 'bauhaus': 20.0, 'wolfmother': 13.0, 'bon iver': 16.0, 'brand new': 16.0, '2pac': 20.0, 'electric light orchestra': 19.0, 'nick drake': 19.0, 'yazoo': 27.0, 'wilco': 21.0, 'ricky martin': 24.0, '*nsync': 28.0, 'lcd soundsystem': 17.0, 'sade': 15.0, 'deerhunter': 22.0, 'seether': 14.0, 'clint mansell': 11.0, 'echo & the bunnymen': 19.0, '倖田來未': 23.0, 'róisín murphy': 17.0, 'antony and the johnsons': 13.0, 'spoon': 19.0, 'james morrison': 17.0, 'grizzly bear': 23.0, 'cássia eller': 15.0, 'mando diao': 15.0, 'sublime': 14.0, 'anthrax': 22.0, 'cocorosie': 16.0, 'wolfgang amadeus mozart': 16.0, 'switchfoot': 15.0, 'high school musical': 26.0, 'we the kings': 19.0, 'pulp': 18.0, 'heidi montag': 25.0, 'hadouken!': 11.0, 'september': 23.0, 'bob marley & the wailers': 14.0, 'amon amarth': 17.0, 'devendra banhart': 17.0, 'nas': 16.0, 'gloria': 22.0, 'miles davis': 16.0, 'ulver': 11.0, 'beach house': 14.0, 'dead can dance': 21.0, 'skank': 15.0, 'alphabeat': 21.0, 'pain of salvation': 19.0, 'sky ferreira': 25.0, 'mandy moore': 25.0, 'maxïmo park': 19.0, 'hoobastank': 18.0, 'the postal service': 17.0, 'billy idol': 16.0, 'goo goo dolls': 11.0, 'parkway drive': 14.0, 'infected mushroom': 10.0, 'talking heads': 16.0, 'dimmu borgir': 13.0, 'cradle of filth': 12.0, 'yelle': 17.0, 'nouvelle vague': 12.0, 'thalía': 23.0, 'bruce dickinson': 25.0, 'flying lotus': 12.0, '安室奈美恵': 20.0, 'the academy is...': 16.0, 'toni braxton': 22.0, 'razorlight': 18.0, \"jack's mannequin\": 13.0, 'darin': 22.0, 'the red jumpsuit apparatus': 18.0, 'blackfield': 16.0, 'amon tobin': 14.0, 'stevie wonder': 15.0, 'ace of base': 18.0, 'sarah mclachlan': 15.0, 'zz top': 16.0, 'p.o.d.': 12.0, 'kate voegele': 18.0, 'the maine': 20.0, 'paradise lost': 11.0, 'natalie imbruglia': 16.0, 'kamelot': 15.0, 'unkle': 16.0, 'sarah brightman': 11.0, 'lenny kravitz': 11.0, 'john williams': 11.0, 'matchbox twenty': 13.0, 'pavement': 19.0, 'cute is what we aim for': 15.0, 'manu chao': 13.0, 'raimundos': 15.0, 'blonde redhead': 17.0, 'all that remains': 15.0, 'dulce maría': 25.0, 'ok go': 13.0, 'august burns red': 15.0, 'jet': 20.0, 'bryan adams': 13.0, 'inna': 21.0, 'talk talk': 21.0, 'apparat': 13.0, 'w.a.s.p.': 18.0, 'archive': 17.0, 'shontelle': 23.0, 'corinne bailey rae': 14.0, 'angra': 20.0, 'the horrors': 11.0, 'neutral milk hotel': 16.0, 'little joy': 20.0, 'westlife': 17.0, 'red': 14.0, 'capital inicial': 12.0, 'ryan adams': 16.0, '4minute': 23.0, 'testament': 20.0, 'combichrist': 12.0, 'burial': 8.0, 'the flaming lips': 17.0, 'forfun': 16.0, 'autechre': 17.0, '소녀시대': 18.0, 'phil collins': 13.0, 'david gilmour': 20.0, 'ivete sangalo': 22.0, 'you me at six': 16.0, 'dark tranquillity': 16.0, 'lupe fiasco': 15.0, 'relient k': 12.0, 'uffie': 18.0, 'breathe carolina': 18.0, 'cpm 22': 15.0, 'the runaways': 15.0, 'journey': 10.0, 'venetian snares': 14.0, 'soft cell': 20.0, 'godsmack': 14.0, 'machine head': 15.0, 'slash': 15.0, 'the decemberists': 16.0, 'dragonette': 19.0, 'brandon flowers': 18.0, 'the distillers': 10.0, 'soilwork': 18.0, 'the corrs': 14.0, 'alter bridge': 12.0, 'sandy e junior': 21.0, 'billy joel': 17.0, 'snoop dogg': 14.0, 'camel': 18.0, 'basshunter': 18.0, '2ne1': 20.0, 'apoptygma berzerk': 13.0, 'eyes set to kill': 19.0, 'tricky': 15.0, 'mylène farmer': 11.0, 'jay sean': 21.0, 'morcheeba': 11.0, 'we are scientists': 16.0, 'clan of xymox': 14.0, 'the sounds': 10.0, 'fear factory': 11.0, 'japan': 19.0, 'yes': 16.0, 'mayday parade': 17.0, 'móveis coloniais de acaju': 17.0, 'nina simone': 7.0, 'janelle monáe': 13.0, 'oomph!': 16.0, 'the raconteurs': 15.0, 'vnv nation': 13.0, 'stone temple pilots': 12.0, 'the album leaf': 16.0, 'suicide silence': 15.0, 'brian eno': 10.0, 'jennifer hudson': 21.0, 'eels': 12.0, 'amorphis': 12.0, 'rufus wainwright': 13.0, 'aaliyah': 16.0, 'christina milian': 21.0, 'at the drive-in': 11.0, 'frankmusik': 15.0, '[unknown]': 8.0, 'mary j. blige': 15.0, 'versaemerge': 21.0, 'jamie cullum': 9.0, 'aretha franklin': 10.0, 'christian chávez': 21.0, 'the dillinger escape plan': 8.0, 'the bravery': 14.0, 'chiodos': 9.0, 't. rex': 13.0, 'adriana calcanhotto': 10.0, 'eddie vedder': 15.0, 'stars': 11.0, 'serj tankian': 16.0, 'avantasia': 16.0, 'david cook': 12.0, 'the radio dept.': 12.0, 'dave matthews band': 10.0, 'hammerfall': 16.0, 'deadmau5': 8.0, 'the presets': 12.0, 'zемфира': 12.0, 'poets of the fall': 9.0, 'forever the sickest kids': 16.0, 'dead kennedys': 11.0, 'story of the year': 15.0, 'roxy music': 19.0, 'nitzer ebb': 18.0, 'ashanti': 20.0, 'michelle branch': 17.0, 'take that': 13.0, 'four year strong': 14.0, 'rilo kiley': 10.0, 'the yardbirds': 17.0, 'rascal flatts': 14.0, 'the 69 eyes': 10.0, 'edguy': 18.0, 'nelly': 15.0, 'zero 7': 9.0, 'os mutantes': 19.0, 'the dead weather': 14.0, 'rancid': 13.0, 'spandau ballet': 17.0, 'shinedown': 12.0, 'dead by april': 14.0, 'raul seixas': 11.0, 'cazuza': 11.0, 'amerie': 20.0, 'biffy clyro': 13.0, 'paolo nutini': 11.0, 'andrew bird': 11.0, 'sneaker pimps': 14.0, 'chevelle': 9.0, 'the jesus and mary chain': 11.0, 'brad paisley': 12.0, 'brokencyde': 14.0, 'squarepusher': 18.0, 'isis': 11.0, 'blutengel': 9.0, 'cake': 13.0, 'chuck berry': 15.0, 'passion pit': 9.0, 'dj shadow': 9.0, 'hellogoodbye': 10.0, 'riverside': 16.0, 'mr. big': 11.0, 'wu-tang clan': 8.0, 'ólafur arnalds': 14.0, 'exodus': 19.0, 'the vines': 15.0, 'adema': 15.0, 'leonard cohen': 11.0, 'europe': 14.0, 'hatebreed': 7.0, 'fever ray': 13.0, 'vive la fête': 12.0, 'cannibal corpse': 11.0, 'queensrÿche': 16.0, 'prefuse 73': 14.0, '植松伸夫': 10.0, 'skinny puppy': 11.0, 'tina turner': 13.0, 'lights': 14.0, 'hollywood undead': 13.0, 'manowar': 18.0, 'howard shore': 9.0, 'abc': 16.0, 'thrice': 10.0, 'sandy leah': 15.0, 'shiny toy guns': 9.0, 'keyshia cole': 16.0, 'staind': 9.0, 'millencolin': 8.0, 'j dilla': 12.0, 'caetano veloso': 14.0, 'alkaline trio': 9.0, 'burzum': 7.0, 'frédéric chopin': 7.0, 'john frusciante': 14.0, 'sodom': 15.0, 'ratatat': 8.0, 'faithless': 13.0, 'vanessa da mata': 16.0, 'josh groban': 9.0, 'converge': 6.0, 'bush': 11.0, 'static-x': 9.0, 'stratovarius': 13.0, 'santigold': 9.0, 'five finger death punch': 10.0, 'dirty pretty things': 14.0, 'cypress hill': 7.0, 'yngwie malmsteen': 14.0, '36 crazyfists': 10.0, 'behemoth': 10.0, 'jefferson airplane': 16.0, 'thievery corporation': 8.0, 'jessie james': 18.0, 'iced earth': 19.0, 'the flashbulb': 11.0, 'alexandre desplat': 11.0, \"the b-52's\": 10.0, '+44': 15.0, 'cine': 15.0, 'cassie': 16.0, 'a flock of seagulls': 15.0, 'restart': 15.0, 'diana vickers': 14.0, 'era': 6.0, 'deathstars': 11.0, 'kristinia debarge': 16.0, 'boston': 10.0, 'mudvayne': 10.0, 'protest the hero': 7.0, 'blue öyster cult': 11.0, 'poison': 15.0, 'moptop': 16.0, 'peter gabriel': 12.0, 'attack attack!': 14.0, 'erykah badu': 9.0, 'coil': 6.0, 'sheryl crow': 11.0, 'jorge & mateus': 14.0, 'senses fail': 11.0, 'the wombats': 16.0, 'shayne ward': 16.0, 'lolene': 18.0, 'yeasayer': 9.0, 'tokyo police club': 12.0, 'type o negative': 9.0, 'die ärzte': 8.0, 'katie melua': 9.0, 'stars of the lid': 11.0, 'the donnas': 10.0, 'elvis costello': 13.0, 'jónsi': 17.0, 'telefon tel aviv': 10.0, 'mesh': 17.0, 'the roots': 10.0, 'vanessa carlton': 15.0, 'maria gadú': 12.0, 'dredg': 11.0, 'camera obscura': 10.0, 'hooverphonic': 12.0, 'bowling for soup': 13.0, 'julieta venegas': 12.0, 'jewel': 12.0, 'a skylit drive': 15.0, 'melanie c': 16.0, 'b.b. king': 11.0, 'fugazi': 7.0, 'mf doom': 9.0, 'guano apes': 6.0, 'santana': 9.0, 'yui': 10.0, \"howlin' wolf\": 12.0, 'alesha dixon': 17.0, 'luan santana': 15.0, 'sick puppies': 9.0, 'bloodhound gang': 9.0, 'slowdive': 10.0, 'agalloch': 13.0, 'syd barrett': 14.0, 'the cribs': 11.0, 'noize mc': 8.0, 'say anything': 10.0, 'pain': 11.0, 'automatic loveletter': 16.0, 'dixie chicks': 12.0, 'eluveitie': 11.0, 'dr. dre': 10.0, 'the dandy warhols': 7.0, 'the mountain goats': 8.0, 'alejandro sanz': 11.0, 'the magnetic fields': 8.0, 'icehouse': 16.0, 'melvins': 8.0, 'savage garden': 9.0, 'client': 15.0, 'king diamond': 12.0, 'amiina': 16.0, 'danny elfman': 6.0, 'sonic syndicate': 9.0, 'bee gees': 11.0, 'anti-flag': 8.0, 'billie holiday': 6.0, 'ayreon': 12.0, 'hammock': 13.0, 'robert pattinson': 13.0, 'o teatro mágico': 10.0, 'digitalism': 12.0, 'stevie ray vaughan': 9.0, 'circa survive': 6.0, 'cat stevens': 11.0, 'josé gonzález': 8.0, 'cinema bizarre': 13.0, 'heart': 8.0, 'richard ashcroft': 11.0, 'joe satriani': 9.0, 'laura marling': 9.0, 'gnarls barkley': 5.0, 'stereolab': 9.0, 'ayria': 8.0, 'the new pornographers': 11.0, 'crowded house': 11.0, 'plaid': 13.0, 'caliban': 8.0, 'in this moment': 9.0, 'дельфин': 10.0, 'rouge': 15.0, 'claudia leitte': 16.0, 'emarosa': 11.0, 'coheed and cambria': 8.0, 'eisley': 9.0, 'john lee hooker': 12.0, 'covenant': 12.0, 'pennywise': 10.0, 'camp rock': 15.0, 'front 242': 10.0, 'joan jett and the blackhearts': 11.0, 'mallu magalhães': 10.0, 'kansas': 9.0, 'the dresden dolls': 8.0, 'finch': 9.0, 'therion': 9.0, 'motion city soundtrack': 10.0, 'morbid angel': 13.0, 'сплин': 13.0, 'annie': 11.0, 'the stone roses': 12.0, 'delta goodrem': 12.0, 'édith piaf': 7.0, 'soda stereo': 8.0, 'iggy pop': 10.0, 'madness': 11.0, 'ghostface killah': 9.0, 'buddy holly': 11.0, 'kid abelha': 12.0, 'vangelis': 11.0, 'james horner': 9.0, 'hinder': 10.0, 'copeland': 9.0, 'hypocrisy': 9.0, 'captain beefheart & his magic band': 9.0, 'mr. bungle': 13.0, 'hawthorne heights': 8.0, 'madlib': 7.0, 'strike': 11.0, 'the lonely island': 9.0, 'paulina rubio': 15.0, 'from first to last': 11.0, 'bombay bicycle club': 10.0, 'uriah heep': 13.0, 'peter bjorn and john': 9.0, 'marillion': 10.0, 'ratt': 13.0, 'crashdïet': 13.0, 'mono': 9.0, 'thompson twins': 15.0, 'blue october': 8.0, 'stevie ray vaughan and double trouble': 11.0, 'carla bruni': 7.0, 'cash cash': 10.0, 'dannii minogue': 15.0}\n"
     ]
    }
   ],
   "source": [
    "print(weight_nodes)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "import random \n",
    "\n",
    "def axelrod (Graph, value):\n",
    "    \n",
    "    graph = copy_graph(Graph)\n",
    "    nodes = list(graph.nodes())\n",
    "    name_genres = ['genre1', 'genre2', 'genre3']\n",
    "    weight_actives, artist_actives = calculate_active_weights(graph)\n",
    "    iteration = 0\n",
    "    count = 0\n",
    "    \n",
    "    #Si pasa mucho rato (seguido) sin que ningún género cambie damos por finalizado el proceso\n",
    "    for not_change in range (value):\n",
    "\n",
    "        if iteration%1000000 == 0:\n",
    "            print(iteration)\n",
    "            print(not_change)\n",
    "        \n",
    "        #Escogemos los dos nodos (activo y pasivo) de forma totalmente aleatoria\n",
    "        active_agent = get_random_active(weight_actives, artist_actives)\n",
    "        passive_agent = get_random_passive(graph, active_agent)\n",
    "            \n",
    "        #Escogemos de cada uno un género\n",
    "\n",
    "        all_passive_genres = list(graph.node[passive_agent]['attr_dict'].values())[0:3]\n",
    "        passive_genres = list(filter(lambda x: x==x, all_passive_genres))\n",
    "        all_active_genres = list(graph.node[active_agent]['attr_dict'].values())[0:3]\n",
    "        active_genres = list(filter(lambda x: x==x, all_active_genres))\n",
    "        \n",
    "        missing_actives = list(set(active_genres).difference(passive_genres))\n",
    "\n",
    "        if (len(missing_actives) > 0):\n",
    "            \n",
    "            num_common_genres = len(set(active_genres).intersection(set(passive_genres)))\n",
    "            threshold = 1 - num_common_genres/3 #(numero de tags comunes)\n",
    "            prob = random.uniform(0,1)\n",
    "\n",
    "            \n",
    "            #Con probabilidad X cambiamos el género del nodo pasivo por el del nodo activo\n",
    "            if prob > threshold:\n",
    "                not_change = 0\n",
    "                count += 1\n",
    "                active_genre = missing_actives[0]\n",
    "                num_passive_genre = 2\n",
    "                while all_passive_genres[num_passive_genre] in active_genres:\n",
    "                    num_passive_genre -=1   \n",
    "\n",
    "                graph.node[passive_agent]['attr_dict'][name_genres[num_passive_genre]] = active_genre\n",
    "                \n",
    "        iteration+=1\n",
    "        \n",
    "    print(count)\n",
    "    return graph\n",
    "\n",
    "\n",
    "def copy_graph(graph):\n",
    "    copy_graph = nx.Graph()\n",
    "    nodes = list(graph.nodes(data=True))\n",
    "\n",
    "    for node in nodes:\n",
    "        name = node[0]\n",
    "        genre1 = node[1]['attr_dict']['genre1']\n",
    "        genre2 = node[1]['attr_dict']['genre2']\n",
    "        genre3 = node[1]['attr_dict']['genre3']\n",
    "        freq = node[1]['attr_dict']['freq']\n",
    "        \n",
    "        copy_graph.add_node(name, attr_dict = {'genre1': genre1,\n",
    "                                                     'genre2': genre2,\n",
    "                                                     'genre3': genre3, \n",
    "                                                     'freq': freq})\n",
    "        \n",
    "    edges = G.edges(data=True)\n",
    "    for edge in edges:\n",
    "        copy_graph.add_edge(edge[0], edge[1], weight = edge[2]['weight'])\n",
    "                 \n",
    "    return copy_graph\n",
    "\n",
    "def get_random_active(freq, artists):    \n",
    "    return get_random_node(freq, artists)\n",
    "\n",
    "def get_random_passive(graph, active_node):   \n",
    "    dict_G = graph.neighbors(active_node)\n",
    "    artists = []\n",
    "    freq = []\n",
    "    node = None\n",
    "    \n",
    "    edges = sorted(graph.edges(active_node, data=True),key= lambda x: x[2]['weight'],reverse=True)\n",
    "\n",
    "    for active, passive, weight in edges:\n",
    "        artists.append(passive)\n",
    "        freq.append(weight['weight'])\n",
    "        \n",
    "    return get_random_node(freq, artists)\n",
    "\n",
    "def get_random_node(freq, artists):   \n",
    "    freq, artists = zip(*sorted(zip(freq, artists), reverse = True))\n",
    "    total_freq = sum(freq)\n",
    "    rand_int = random.randint(0,total_freq-1)\n",
    "    i=0\n",
    "    counter = 0\n",
    "    for value in freq:\n",
    "        counter += value\n",
    "        if counter > rand_int:\n",
    "            return artists[i]\n",
    "        i += 1       \n",
    "\n",
    "#Para elegir el nodo activo tenemos en cuenta los pesos de las aristas del nodo.      \n",
    "def calculate_active_weights(graph):\n",
    "    freq = []\n",
    "    artists = []\n",
    "    for node in graph.nodes():\n",
    "        edges = graph.edges(node, data=True)\n",
    "        weight_node = 0\n",
    "        for active, passive, weight in edges:\n",
    "            weight_node += weight['weight']\n",
    "        artists.append(node)\n",
    "        freq.append(weight_node)\n",
    "        \n",
    "    return freq, artists"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': nan, 'freq': 522}}"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G.node['britney spears']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0\n",
      "0\n",
      "42\n"
     ]
    }
   ],
   "source": [
    "G_axelrod = axelrod(G,200)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "4562"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G_axelrod.number_of_nodes()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'pop', 'genre2': 'dance', 'genre3': nan, 'freq': 522}}"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G_axelrod.node['britney spears']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'indie rock',\n",
       "  'genre2': 'indie',\n",
       "  'genre3': 'rock',\n",
       "  'freq': 248}}"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G_axelrod.node['arctic monkeys']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'rock',\n",
       "  'genre2': 'emo',\n",
       "  'genre3': 'pop rock',\n",
       "  'freq': 157}}"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G_axelrod.node['my chemical romance']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'hip-hop',\n",
       "  'genre2': 'pop',\n",
       "  'genre3': 'rnb',\n",
       "  'freq': 304}}"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G_axelrod.node['black eyed peas']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'industrial metal',\n",
       "  'genre2': 'metal',\n",
       "  'genre3': 'industrial',\n",
       "  'freq': 140}}"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G_axelrod.node['rammstein']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'pop',\n",
       "  'genre2': 'black metal',\n",
       "  'genre3': 'rnb',\n",
       "  'freq': 100}}"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G_axelrod.node['justin bieber']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'nu metal',\n",
       "  'genre2': 'metal',\n",
       "  'genre3': 'heavy metal',\n",
       "  'freq': 112}}"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G_axelrod.node['slipknot']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'house',\n",
       "  'genre2': 'dance',\n",
       "  'genre3': 'electronic',\n",
       "  'freq': 155}}"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G_axelrod.node['david guetta']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'pop',\n",
       "  'genre2': 'dance',\n",
       "  'genre3': 'electronic',\n",
       "  'freq': 611}}"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G_axelrod.node['lady gaga']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'black metal',\n",
       "  'genre2': 'dark ambient',\n",
       "  'genre3': 'ambient',\n",
       "  'freq': 19}}"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G_axelrod.node['burzum']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'attr_dict': {'genre1': 'rock',\n",
       "  'genre2': 'alternative rock',\n",
       "  'genre3': 'alternative',\n",
       "  'freq': 222}}"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "G_axelrod.node['red hot chili peppers']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "('rock', 'pop', 'indie', 'electronic', 'alternative', 'hip-hop', 'folk', 'classic rock', 'punk', 'indie rock', 'dance', 'alternative rock', 'rnb', 'rap', 'hard rock', 'experimental', 'ambient', 'new wave', 'metal', 'soul', 'hardcore', 'soundtrack', 'jazz', 'industrial', 'post-hardcore', 'metalcore', 'progressive rock', 'instrumental', 'country', 'heavy metal', 'pop punk', 'emo', 'pop rock', 'blues', 'post-punk', 'synth pop', 'death metal', 'trip-hop', 'indie pop', 'progressive metal', 'mpb', 'post-rock', 'ebm', 'black metal', 'j-pop', 'idm', 'thrash metal', 'classical', 'britpop', 'reggae', 'power metal', 'j-rock', 'chillout', 'melodic death metal', 'deathcore', 'k-pop', 'funk', 'shoegaze', 'screamo', 'gothic metal', 'ska', 'power pop', 'psychedelic', 'nu metal', 'industrial metal', 'christian', 'world', 'grunge', 'blues rock', 'darkwave', 'christian rock', 'folk metal', 'symphonic metal', 'house', 'gothic', 'lo-fi', 'grindcore', 'doom metal', 'underground hip-hop', 'trance', 'latin pop', 'electropop', 'new age', 'bossa nova', 'hardcore punk', 'glam rock', 'minimal', 'melodic hardcore', 'gothic rock', 'futurepop', 'glam metal', 'garage rock', 'disco', 'chanson', 'contemporary country', 'alt-country', 'rockabilly', 'electroclash', 'dream pop', 'dark electro', 'techno', 'disney', 'drum and bass', 'stoner', 'technical death metal', 'anime', 'musical', 'psychedelic rock', 'dancehall', 'brutal death metal', 'rapcore', 'math rock', 'composer', 'psytrance', 'avant-garde', 'dubstep', 'speed metal', 'rock n roll', 'psychobilly', 'swing', 'new rave', 'sludge metal', 'noise rock', 'gospel', 'dub', 'opera', 'horror punk', 'contemporary classical', 'industrial rock', 'dark ambient', 'ska-punk', 'samba', 'piano rock', 'deathrock', 'soft rock', 'reggaeton', 'drone', 'viking metal', 'southern rock', 'celtic', 'alternative metal', 'lounge', 'ethereal', 'neo soul', 'mathcore', 'southern rap', 'gangsta rap', 'folk rock', 'breakcore', 'ethnic', 'medieval', '8-bit', 'neofolk', 'grime', 'art rock', 'acid jazz', 'symphonic black metal', 'groove metal', 'ragga', 'new romantic', 'atmospheric black metal', 'noise', 'east coast rap', 'worship', 'post-metal', 'indie folk', 'eurodance', 'easy listening', 'chicago blues', 'bebop', 'minimal techno', 'latin rock', 'teen pop', 'minimalism', 'space rock', 'post-grunge', 'glitch', 'twee pop', 'trancecore', 'psybient', 'roots reggae', 'country pop', 'sleaze rock', 'progressive trance', 'folk punk', 'avant-garde metal', 'vocal trance', 'surf rock', 'proto-punk', 'pagan metal', 'orchestral', 'neoclassical', 'melodic metalcore', 'urban', 'freak folk', 'noisecore', 'noise pop', 'electric blues', 'indietronica', 'crunk', 'country rock', 'breakbeat', 'acoustic rock', 'alternative hip-hop', 'nu jazz', 'jazz hop', 'classical crossover', 'electro-industrial', 'electro house', 'contemporary christian', 'christian metalcore', 'west coast rap', 'aggrotech') \n",
      " (625.75, 605.75, 485.5, 381.75, 263.5, 229.75, 150.5, 144.0, 136.5, 126.25, 125.0, 122.5, 121.5, 116.5, 112.25, 109.25, 108.25, 103.75, 98.5, 98.0, 91.75, 91.25, 87.0, 84.75, 83.75, 80.5, 74.25, 72.5, 64.0, 63.5, 63.25, 62.25, 61.75, 61.25, 59.75, 59.25, 59.25, 57.0, 55.5, 54.25, 51.25, 50.0, 48.5, 48.5, 47.5, 46.5, 45.25, 44.5, 44.25, 40.0, 38.5, 38.25, 35.25, 34.75, 33.75, 33.5, 32.25, 30.5, 30.5, 30.25, 29.25, 28.0, 27.75, 26.25, 26.0, 25.25, 25.0, 24.0, 24.0, 23.75, 23.0, 22.5, 22.25, 22.25, 22.25, 22.0, 21.0, 21.0, 20.75, 20.75, 20.25, 20.0, 19.75, 18.5, 18.25, 18.0, 17.75, 17.0, 16.5, 16.5, 15.5, 15.5, 15.0, 15.0, 14.5, 14.0, 13.5, 13.25, 13.25, 13.25, 13.0, 13.0, 12.5, 12.25, 11.75, 11.75, 11.25, 11.0, 11.0, 10.75, 10.5, 10.5, 10.5, 10.25, 10.25, 9.5, 9.25, 9.25, 9.25, 9.0, 9.0, 8.75, 8.75, 8.75, 8.75, 8.5, 8.5, 8.5, 8.25, 8.25, 8.0, 8.0, 8.0, 8.0, 7.75, 7.75, 7.75, 7.5, 7.25, 7.25, 7.0, 6.75, 6.75, 6.5, 6.5, 6.25, 6.25, 6.0, 6.0, 5.75, 5.5, 5.5, 5.25, 5.25, 5.25, 5.25, 5.0, 5.0, 4.75, 4.75, 4.75, 4.5, 4.5, 4.25, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 3.75, 3.75, 3.5, 3.5, 3.25, 3.25, 3.25, 3.0, 3.0, 3.0, 2.75, 2.75, 2.5, 2.5, 2.5, 2.5, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.0, 2.0, 1.75, 1.75, 1.75, 1.5, 1.5, 1.5, 1.5, 1.5, 1.25, 1.0, 1.0, 0.75, 0.25, 0.25, 0.25, 0.25, 0.0, 0.0)\n"
     ]
    }
   ],
   "source": [
    "G_axelrod_pl_total_genres, G_axelrod_pl_total_counts = get_complete_genres_counts(G_axelrod, list_tags)\n",
    "print(G_axelrod_pl_total_genres,'\\n',G_axelrod_pl_total_counts)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[<matplotlib.lines.Line2D at 0x7f8dfb6df6d8>]"
      ]
     },
     "execution_count": 64,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "[encoded data, 178128 characters]\n",
      "text/plain": [
       "<Figure size 1080x720 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "plt.figure(figsize=(15,10))\n",
    "plt.figure(1)\n",
    "plt.subplot(211)\n",
    "plt.xticks(rotation='vertical')\n",
    "plt.plot(G_pl_total_genres, G_pl_total_counts)\n",
    "\n",
    "plt.subplot(212)\n",
    "plt.xticks(rotation='vertical')\n",
    "plt.plot(G_axelrod_pl_total_genres, G_axelrod_pl_total_counts)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 65,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 112656 characters]\n",
      "text/plain": [
       "<Figure size 1080x720 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "plt.figure(figsize=(15,10))\n",
    "plt.plot(G_pl_total_genres, G_pl_total_counts)\n",
    "plt.plot(G_axelrod_pl_total_genres, G_axelrod_pl_total_counts)\n",
    "plt.xticks(rotation='vertical')\n",
    "plt.savefig(\".jpg\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 8. GET TOP TAGS\n",
    "\n",
    "Visualización de las subidas y bajadas de los géneros musicales"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 145,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_top_tags(initial_positions, final_positions, initial_counts, final_counts, tags, opt_print=False):\n",
    "    tag_positions = np.empty(len(tags), dtype=[('tag', 'S20'), ('init', int), ('final', int), ('diff',int), ('init_count', int), ('final_count', int), ('diff_count', int)])\n",
    "    for i in range (len(tags)):\n",
    "        tag = tags[i]\n",
    "        initial_idx = initial_positions.index(tag) \n",
    "        final_idx = final_positions.index(tag) \n",
    "        init_count = initial_counts[initial_idx]\n",
    "        final_count = final_counts[final_idx]\n",
    "        tag_positions[i][0] = tag\n",
    "        tag_positions[i][1] = initial_idx\n",
    "        tag_positions[i][2] = final_idx\n",
    "        tag_positions[i][3] = initial_idx - final_idx\n",
    "        tag_positions[i][4] = init_count\n",
    "        tag_positions[i][5] = final_count\n",
    "        tag_positions[i][6] = final_count - init_count\n",
    "\n",
    "    tag_positions.sort(order='final')\n",
    "    \n",
    "    if opt_print:\n",
    "        for tag, ini, fin, dif, ini_c, fin_c, dif_c in tag_positions:\n",
    "            i+=1\n",
    "            sign = ''\n",
    "            sign2 = ''\n",
    "            \n",
    "            if dif > 0:\n",
    "                sign = '+'\n",
    "            if dif_c > 0:\n",
    "                sign2 = '+'\n",
    "            print(str(fin)+'.',tag.decode('utf-8'),'('+str(ini)+', '+sign+str(dif)+', '+str(ini_c)+', '+str(fin_c)+', ',sign2+str(dif_c)+')')  \n",
    "        \n",
    "    return tag_positions\n",
    "\n",
    "def get_positions(tag_positions):\n",
    "    list_positions = []\n",
    "    i=0\n",
    "    for tag, ini, fin, dif, ini_c, fin_c, dif_c in tag_positions:\n",
    "        list_positions.append(dif)\n",
    "    list_positions.sort(reverse = True)\n",
    "    \n",
    "    return list_positions"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0. rock (0, 0, 626, 625,  0)\n",
      "1. pop (1, 0, 603, 605,  +2)\n",
      "2. indie (2, 0, 486, 485,  -1)\n",
      "3. electronic (3, 0, 382, 381,  0)\n",
      "4. alternative (4, 0, 263, 263,  0)\n",
      "5. hip-hop (5, 0, 230, 229,  -1)\n",
      "6. folk (6, 0, 150, 150,  0)\n",
      "7. classic rock (7, 0, 143, 144,  0)\n",
      "8. punk (8, 0, 136, 136,  0)\n",
      "9. indie rock (9, 0, 127, 126,  -1)\n",
      "10. dance (10, 0, 124, 125,  0)\n",
      "11. alternative rock (11, 0, 123, 122,  0)\n",
      "12. rnb (12, 0, 121, 121,  0)\n",
      "13. rap (13, 0, 116, 116,  0)\n",
      "14. hard rock (14, 0, 112, 112,  0)\n",
      "15. experimental (15, 0, 109, 109,  0)\n",
      "16. ambient (16, 0, 108, 108,  0)\n",
      "17. new wave (17, 0, 103, 103,  0)\n",
      "18. metal (18, 0, 98, 98,  0)\n",
      "19. soul (19, 0, 98, 98,  0)\n",
      "20. hardcore (20, 0, 91, 91,  0)\n",
      "21. soundtrack (21, 0, 91, 91,  0)\n",
      "22. jazz (22, 0, 87, 87,  0)\n",
      "23. industrial (23, 0, 84, 84,  0)\n",
      "24. post-hardcore (24, 0, 83, 83,  0)\n",
      "25. metalcore (25, 0, 80, 80,  0)\n",
      "26. progressive rock (26, 0, 74, 74,  0)\n",
      "27. instrumental (27, 0, 72, 72,  0)\n",
      "28. country (28, 0, 64, 64,  0)\n",
      "29. heavy metal (30, +1, 63, 63,  0)\n",
      "30. pop punk (29, -1, 63, 63,  0)\n",
      "31. emo (31, 0, 62, 62,  0)\n",
      "32. pop rock (32, 0, 62, 61,  0)\n",
      "33. blues (33, 0, 61, 61,  0)\n",
      "34. post-punk (34, 0, 59, 59,  0)\n",
      "35. synth pop (35, 0, 59, 59,  0)\n",
      "36. death metal (36, 0, 59, 59,  0)\n",
      "37. trip-hop (37, 0, 57, 57,  0)\n",
      "38. indie pop (38, 0, 56, 55,  -1)\n",
      "39. progressive metal (39, 0, 54, 54,  0)\n",
      "40. mpb (40, 0, 51, 51,  0)\n",
      "41. post-rock (41, 0, 50, 50,  0)\n",
      "42. ebm (42, 0, 48, 48,  0)\n",
      "43. black metal (43, 0, 48, 48,  0)\n",
      "44. j-pop (44, 0, 47, 47,  0)\n",
      "45. idm (45, 0, 46, 46,  0)\n",
      "46. thrash metal (46, 0, 45, 45,  0)\n",
      "47. classical (47, 0, 44, 44,  0)\n",
      "48. britpop (48, 0, 44, 44,  0)\n",
      "49. reggae (49, 0, 40, 40,  0)\n",
      "50. power metal (50, 0, 38, 38,  0)\n",
      "51. j-rock (51, 0, 38, 38,  0)\n",
      "52. chillout (52, 0, 35, 35,  0)\n",
      "53. melodic death metal (53, 0, 34, 34,  0)\n",
      "54. deathcore (54, 0, 33, 33,  0)\n",
      "55. k-pop (55, 0, 33, 33,  0)\n",
      "56. funk (56, 0, 32, 32,  0)\n",
      "57. shoegaze (58, +1, 30, 30,  0)\n",
      "58. screamo (57, -1, 30, 30,  0)\n",
      "59. gothic metal (59, 0, 30, 30,  0)\n",
      "60. ska (60, 0, 29, 29,  0)\n",
      "61. power pop (61, 0, 28, 28,  0)\n",
      "62. psychedelic (62, 0, 27, 27,  0)\n",
      "63. nu metal (63, 0, 26, 26,  0)\n",
      "64. industrial metal (64, 0, 26, 26,  0)\n",
      "65. christian (65, 0, 25, 25,  0)\n",
      "66. world (66, 0, 25, 25,  0)\n",
      "67. grunge (67, 0, 24, 24,  0)\n",
      "68. blues rock (71, +3, 22, 24,  +1)\n",
      "69. darkwave (68, -1, 23, 23,  0)\n",
      "70. christian rock (69, -1, 23, 23,  0)\n",
      "71. folk metal (70, -1, 22, 22,  0)\n",
      "72. symphonic metal (72, 0, 22, 22,  0)\n",
      "73. house (73, 0, 22, 22,  0)\n",
      "74. gothic (74, 0, 22, 22,  0)\n",
      "75. lo-fi (75, 0, 21, 22,  0)\n",
      "76. grindcore (76, 0, 21, 21,  0)\n",
      "77. doom metal (77, 0, 21, 21,  0)\n",
      "78. underground hip-hop (78, 0, 20, 20,  0)\n",
      "79. trance (79, 0, 20, 20,  0)\n",
      "80. latin pop (80, 0, 20, 20,  0)\n",
      "81. electropop (81, 0, 20, 20,  0)\n",
      "82. new age (82, 0, 19, 19,  0)\n",
      "83. bossa nova (83, 0, 18, 18,  0)\n",
      "84. hardcore punk (84, 0, 18, 18,  0)\n",
      "85. glam rock (85, 0, 18, 18,  0)\n",
      "86. minimal (86, 0, 17, 17,  0)\n",
      "87. melodic hardcore (87, 0, 17, 17,  0)\n",
      "88. gothic rock (89, +1, 16, 16,  0)\n",
      "89. futurepop (88, -1, 17, 16,  0)\n",
      "90. glam metal (90, 0, 15, 15,  0)\n",
      "91. garage rock (91, 0, 15, 15,  0)\n",
      "92. disco (92, 0, 15, 15,  0)\n",
      "93. chanson (93, 0, 15, 15,  0)\n",
      "94. contemporary country (95, +1, 14, 14,  0)\n",
      "95. alt-country (94, -1, 15, 14,  -1)\n",
      "96. rockabilly (96, 0, 13, 13,  0)\n",
      "97. electroclash (97, 0, 13, 13,  0)\n",
      "98. dream pop (98, 0, 13, 13,  0)\n",
      "99. dark electro (99, 0, 13, 13,  0)\n",
      "100. techno (100, 0, 13, 13,  0)\n",
      "101. disney (102, +1, 12, 13,  0)\n",
      "102. drum and bass (101, -1, 12, 12,  0)\n",
      "103. stoner (103, 0, 12, 12,  0)\n",
      "104. technical death meta (104, 0, 11, 11,  0)\n",
      "105. anime (105, 0, 11, 11,  0)\n",
      "106. musical (106, 0, 11, 11,  0)\n",
      "107. psychedelic rock (108, +1, 10, 11,  0)\n",
      "108. dancehall (107, -1, 11, 11,  0)\n",
      "109. brutal death metal (109, 0, 10, 10,  0)\n",
      "110. rapcore (110, 0, 10, 10,  0)\n",
      "111. math rock (111, 0, 10, 10,  0)\n",
      "112. composer (112, 0, 10, 10,  0)\n",
      "113. psytrance (113, 0, 10, 10,  0)\n",
      "114. avant-garde (114, 0, 10, 10,  0)\n",
      "115. dubstep (115, 0, 9, 9,  0)\n",
      "116. speed metal (116, 0, 9, 9,  0)\n",
      "117. rock n roll (117, 0, 9, 9,  0)\n",
      "118. psychobilly (118, 0, 9, 9,  0)\n",
      "119. swing (119, 0, 9, 9,  0)\n",
      "120. new rave (120, 0, 9, 9,  0)\n",
      "121. sludge metal (121, 0, 8, 8,  0)\n",
      "122. noise rock (122, 0, 8, 8,  0)\n",
      "123. gospel (123, 0, 8, 8,  0)\n",
      "124. dub (124, 0, 8, 8,  0)\n",
      "125. opera (125, 0, 8, 8,  0)\n",
      "126. horror punk (128, +2, 8, 8,  0)\n",
      "127. contemporary classic (126, -1, 8, 8,  0)\n",
      "128. industrial rock (127, -1, 8, 8,  0)\n",
      "129. dark ambient (129, 0, 8, 8,  0)\n",
      "130. ska-punk (130, 0, 8, 8,  0)\n",
      "131. samba (131, 0, 8, 8,  0)\n",
      "132. piano rock (132, 0, 8, 8,  0)\n",
      "133. deathrock (133, 0, 8, 8,  0)\n",
      "134. soft rock (134, 0, 7, 7,  0)\n",
      "135. reggaeton (135, 0, 7, 7,  0)\n",
      "136. drone (136, 0, 7, 7,  0)\n",
      "137. viking metal (137, 0, 7, 7,  0)\n",
      "138. southern rock (138, 0, 7, 7,  0)\n",
      "139. celtic (139, 0, 7, 7,  0)\n",
      "140. alternative metal (140, 0, 7, 7,  0)\n",
      "141. lounge (141, 0, 6, 6,  0)\n",
      "142. ethereal (142, 0, 6, 6,  0)\n",
      "143. neo soul (143, 0, 6, 6,  0)\n",
      "144. mathcore (144, 0, 6, 6,  0)\n",
      "145. southern rap (145, 0, 6, 6,  0)\n",
      "146. gangsta rap (146, 0, 6, 6,  0)\n",
      "147. folk rock (147, 0, 6, 6,  0)\n",
      "148. breakcore (148, 0, 6, 6,  0)\n",
      "149. ethnic (149, 0, 5, 5,  0)\n",
      "150. medieval (150, 0, 5, 5,  0)\n",
      "151. 8-bit (151, 0, 5, 5,  0)\n",
      "152. neofolk (152, 0, 5, 5,  0)\n",
      "153. grime (153, 0, 5, 5,  0)\n",
      "154. art rock (154, 0, 5, 5,  0)\n",
      "155. acid jazz (155, 0, 5, 5,  0)\n",
      "156. symphonic black meta (156, 0, 5, 5,  0)\n",
      "157. groove metal (158, +1, 5, 5,  0)\n",
      "158. ragga (159, +1, 4, 4,  0)\n",
      "159. new romantic (157, -2, 5, 4,  0)\n",
      "160. atmospheric black me (160, 0, 4, 4,  0)\n",
      "161. noise (161, 0, 4, 4,  0)\n",
      "162. east coast rap (162, 0, 4, 4,  0)\n",
      "163. worship (163, 0, 4, 4,  0)\n",
      "164. post-metal (164, 0, 4, 4,  0)\n",
      "165. indie folk (165, 0, 4, 4,  0)\n",
      "166. eurodance (166, 0, 4, 4,  0)\n",
      "167. easy listening (167, 0, 4, 4,  0)\n",
      "168. chicago blues (168, 0, 4, 4,  0)\n",
      "169. bebop (169, 0, 4, 4,  0)\n",
      "170. minimal techno (170, 0, 3, 3,  0)\n",
      "171. latin rock (171, 0, 3, 3,  0)\n",
      "172. teen pop (172, 0, 3, 3,  0)\n",
      "173. minimalism (173, 0, 3, 3,  0)\n",
      "174. space rock (174, 0, 3, 3,  0)\n",
      "175. post-grunge (175, 0, 3, 3,  0)\n",
      "176. glitch (176, 0, 3, 3,  0)\n",
      "177. twee pop (177, 0, 3, 3,  0)\n",
      "178. trancecore (178, 0, 3, 3,  0)\n",
      "179. psybient (179, 0, 3, 3,  0)\n",
      "180. roots reggae (180, 0, 2, 2,  0)\n",
      "181. country pop (181, 0, 2, 2,  0)\n",
      "182. sleaze rock (182, 0, 2, 2,  0)\n",
      "183. progressive trance (183, 0, 2, 2,  0)\n",
      "184. folk punk (185, +1, 2, 2,  0)\n",
      "185. avant-garde metal (186, +1, 2, 2,  0)\n",
      "186. vocal trance (187, +1, 2, 2,  0)\n",
      "187. surf rock (188, +1, 2, 2,  0)\n",
      "188. proto-punk (189, +1, 2, 2,  0)\n",
      "189. pagan metal (184, -5, 2, 2,  0)\n",
      "190. orchestral (190, 0, 2, 2,  0)\n",
      "191. neoclassical (191, 0, 2, 2,  0)\n",
      "192. melodic metalcore (192, 0, 2, 2,  0)\n",
      "193. urban (193, 0, 2, 2,  0)\n",
      "194. freak folk (194, 0, 2, 2,  0)\n",
      "195. noisecore (195, 0, 1, 1,  0)\n",
      "196. noise pop (196, 0, 1, 1,  0)\n",
      "197. electric blues (197, 0, 1, 1,  0)\n",
      "198. indietronica (198, 0, 1, 1,  0)\n",
      "199. crunk (199, 0, 1, 1,  0)\n",
      "200. country rock (200, 0, 1, 1,  0)\n",
      "201. breakbeat (201, 0, 1, 1,  0)\n",
      "202. acoustic rock (202, 0, 1, 1,  0)\n",
      "203. alternative hip-hop (203, 0, 1, 1,  0)\n",
      "204. nu jazz (204, 0, 1, 1,  0)\n",
      "205. jazz hop (205, 0, 1, 1,  0)\n",
      "206. classical crossover (206, 0, 0, 0,  0)\n",
      "207. electro-industrial (207, 0, 0, 0,  0)\n",
      "208. electro house (208, 0, 0, 0,  0)\n",
      "209. contemporary christi (209, 0, 0, 0,  0)\n",
      "210. christian metalcore (210, 0, 0, 0,  0)\n",
      "211. west coast rap (211, 0, 0, 0,  0)\n",
      "212. aggrotech (212, 0, 0, 0,  0)\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "array([(b'rock',   0,   0,  0, 626, 625,  0),\n",
       "       (b'pop',   1,   1,  0, 603, 605,  2),\n",
       "       (b'indie',   2,   2,  0, 486, 485, -1),\n",
       "       (b'electronic',   3,   3,  0, 382, 381,  0),\n",
       "       (b'alternative',   4,   4,  0, 263, 263,  0),\n",
       "       (b'hip-hop',   5,   5,  0, 230, 229, -1),\n",
       "       (b'folk',   6,   6,  0, 150, 150,  0),\n",
       "       (b'classic rock',   7,   7,  0, 143, 144,  0),\n",
       "       (b'punk',   8,   8,  0, 136, 136,  0),\n",
       "       (b'indie rock',   9,   9,  0, 127, 126, -1),\n",
       "       (b'dance',  10,  10,  0, 124, 125,  0),\n",
       "       (b'alternative rock',  11,  11,  0, 123, 122,  0),\n",
       "       (b'rnb',  12,  12,  0, 121, 121,  0),\n",
       "       (b'rap',  13,  13,  0, 116, 116,  0),\n",
       "       (b'hard rock',  14,  14,  0, 112, 112,  0),\n",
       "       (b'experimental',  15,  15,  0, 109, 109,  0),\n",
       "       (b'ambient',  16,  16,  0, 108, 108,  0),\n",
       "       (b'new wave',  17,  17,  0, 103, 103,  0),\n",
       "       (b'metal',  18,  18,  0,  98,  98,  0),\n",
       "       (b'soul',  19,  19,  0,  98,  98,  0),\n",
       "       (b'hardcore',  20,  20,  0,  91,  91,  0),\n",
       "       (b'soundtrack',  21,  21,  0,  91,  91,  0),\n",
       "       (b'jazz',  22,  22,  0,  87,  87,  0),\n",
       "       (b'industrial',  23,  23,  0,  84,  84,  0),\n",
       "       (b'post-hardcore',  24,  24,  0,  83,  83,  0),\n",
       "       (b'metalcore',  25,  25,  0,  80,  80,  0),\n",
       "       (b'progressive rock',  26,  26,  0,  74,  74,  0),\n",
       "       (b'instrumental',  27,  27,  0,  72,  72,  0),\n",
       "       (b'country',  28,  28,  0,  64,  64,  0),\n",
       "       (b'heavy metal',  30,  29,  1,  63,  63,  0),\n",
       "       (b'pop punk',  29,  30, -1,  63,  63,  0),\n",
       "       (b'emo',  31,  31,  0,  62,  62,  0),\n",
       "       (b'pop rock',  32,  32,  0,  62,  61,  0),\n",
       "       (b'blues',  33,  33,  0,  61,  61,  0),\n",
       "       (b'post-punk',  34,  34,  0,  59,  59,  0),\n",
       "       (b'synth pop',  35,  35,  0,  59,  59,  0),\n",
       "       (b'death metal',  36,  36,  0,  59,  59,  0),\n",
       "       (b'trip-hop',  37,  37,  0,  57,  57,  0),\n",
       "       (b'indie pop',  38,  38,  0,  56,  55, -1),\n",
       "       (b'progressive metal',  39,  39,  0,  54,  54,  0),\n",
       "       (b'mpb',  40,  40,  0,  51,  51,  0),\n",
       "       (b'post-rock',  41,  41,  0,  50,  50,  0),\n",
       "       (b'ebm',  42,  42,  0,  48,  48,  0),\n",
       "       (b'black metal',  43,  43,  0,  48,  48,  0),\n",
       "       (b'j-pop',  44,  44,  0,  47,  47,  0),\n",
       "       (b'idm',  45,  45,  0,  46,  46,  0),\n",
       "       (b'thrash metal',  46,  46,  0,  45,  45,  0),\n",
       "       (b'classical',  47,  47,  0,  44,  44,  0),\n",
       "       (b'britpop',  48,  48,  0,  44,  44,  0),\n",
       "       (b'reggae',  49,  49,  0,  40,  40,  0),\n",
       "       (b'power metal',  50,  50,  0,  38,  38,  0),\n",
       "       (b'j-rock',  51,  51,  0,  38,  38,  0),\n",
       "       (b'chillout',  52,  52,  0,  35,  35,  0),\n",
       "       (b'melodic death metal',  53,  53,  0,  34,  34,  0),\n",
       "       (b'deathcore',  54,  54,  0,  33,  33,  0),\n",
       "       (b'k-pop',  55,  55,  0,  33,  33,  0),\n",
       "       (b'funk',  56,  56,  0,  32,  32,  0),\n",
       "       (b'shoegaze',  58,  57,  1,  30,  30,  0),\n",
       "       (b'screamo',  57,  58, -1,  30,  30,  0),\n",
       "       (b'gothic metal',  59,  59,  0,  30,  30,  0),\n",
       "       (b'ska',  60,  60,  0,  29,  29,  0),\n",
       "       (b'power pop',  61,  61,  0,  28,  28,  0),\n",
       "       (b'psychedelic',  62,  62,  0,  27,  27,  0),\n",
       "       (b'nu metal',  63,  63,  0,  26,  26,  0),\n",
       "       (b'industrial metal',  64,  64,  0,  26,  26,  0),\n",
       "       (b'christian',  65,  65,  0,  25,  25,  0),\n",
       "       (b'world',  66,  66,  0,  25,  25,  0),\n",
       "       (b'grunge',  67,  67,  0,  24,  24,  0),\n",
       "       (b'blues rock',  71,  68,  3,  22,  24,  1),\n",
       "       (b'darkwave',  68,  69, -1,  23,  23,  0),\n",
       "       (b'christian rock',  69,  70, -1,  23,  23,  0),\n",
       "       (b'folk metal',  70,  71, -1,  22,  22,  0),\n",
       "       (b'symphonic metal',  72,  72,  0,  22,  22,  0),\n",
       "       (b'house',  73,  73,  0,  22,  22,  0),\n",
       "       (b'gothic',  74,  74,  0,  22,  22,  0),\n",
       "       (b'lo-fi',  75,  75,  0,  21,  22,  0),\n",
       "       (b'grindcore',  76,  76,  0,  21,  21,  0),\n",
       "       (b'doom metal',  77,  77,  0,  21,  21,  0),\n",
       "       (b'underground hip-hop',  78,  78,  0,  20,  20,  0),\n",
       "       (b'trance',  79,  79,  0,  20,  20,  0),\n",
       "       (b'latin pop',  80,  80,  0,  20,  20,  0),\n",
       "       (b'electropop',  81,  81,  0,  20,  20,  0),\n",
       "       (b'new age',  82,  82,  0,  19,  19,  0),\n",
       "       (b'bossa nova',  83,  83,  0,  18,  18,  0),\n",
       "       (b'hardcore punk',  84,  84,  0,  18,  18,  0),\n",
       "       (b'glam rock',  85,  85,  0,  18,  18,  0),\n",
       "       (b'minimal',  86,  86,  0,  17,  17,  0),\n",
       "       (b'melodic hardcore',  87,  87,  0,  17,  17,  0),\n",
       "       (b'gothic rock',  89,  88,  1,  16,  16,  0),\n",
       "       (b'futurepop',  88,  89, -1,  17,  16,  0),\n",
       "       (b'glam metal',  90,  90,  0,  15,  15,  0),\n",
       "       (b'garage rock',  91,  91,  0,  15,  15,  0),\n",
       "       (b'disco',  92,  92,  0,  15,  15,  0),\n",
       "       (b'chanson',  93,  93,  0,  15,  15,  0),\n",
       "       (b'contemporary country',  95,  94,  1,  14,  14,  0),\n",
       "       (b'alt-country',  94,  95, -1,  15,  14, -1),\n",
       "       (b'rockabilly',  96,  96,  0,  13,  13,  0),\n",
       "       (b'electroclash',  97,  97,  0,  13,  13,  0),\n",
       "       (b'dream pop',  98,  98,  0,  13,  13,  0),\n",
       "       (b'dark electro',  99,  99,  0,  13,  13,  0),\n",
       "       (b'techno', 100, 100,  0,  13,  13,  0),\n",
       "       (b'disney', 102, 101,  1,  12,  13,  0),\n",
       "       (b'drum and bass', 101, 102, -1,  12,  12,  0),\n",
       "       (b'stoner', 103, 103,  0,  12,  12,  0),\n",
       "       (b'technical death meta', 104, 104,  0,  11,  11,  0),\n",
       "       (b'anime', 105, 105,  0,  11,  11,  0),\n",
       "       (b'musical', 106, 106,  0,  11,  11,  0),\n",
       "       (b'psychedelic rock', 108, 107,  1,  10,  11,  0),\n",
       "       (b'dancehall', 107, 108, -1,  11,  11,  0),\n",
       "       (b'brutal death metal', 109, 109,  0,  10,  10,  0),\n",
       "       (b'rapcore', 110, 110,  0,  10,  10,  0),\n",
       "       (b'math rock', 111, 111,  0,  10,  10,  0),\n",
       "       (b'composer', 112, 112,  0,  10,  10,  0),\n",
       "       (b'psytrance', 113, 113,  0,  10,  10,  0),\n",
       "       (b'avant-garde', 114, 114,  0,  10,  10,  0),\n",
       "       (b'dubstep', 115, 115,  0,   9,   9,  0),\n",
       "       (b'speed metal', 116, 116,  0,   9,   9,  0),\n",
       "       (b'rock n roll', 117, 117,  0,   9,   9,  0),\n",
       "       (b'psychobilly', 118, 118,  0,   9,   9,  0),\n",
       "       (b'swing', 119, 119,  0,   9,   9,  0),\n",
       "       (b'new rave', 120, 120,  0,   9,   9,  0),\n",
       "       (b'sludge metal', 121, 121,  0,   8,   8,  0),\n",
       "       (b'noise rock', 122, 122,  0,   8,   8,  0),\n",
       "       (b'gospel', 123, 123,  0,   8,   8,  0),\n",
       "       (b'dub', 124, 124,  0,   8,   8,  0),\n",
       "       (b'opera', 125, 125,  0,   8,   8,  0),\n",
       "       (b'horror punk', 128, 126,  2,   8,   8,  0),\n",
       "       (b'contemporary classic', 126, 127, -1,   8,   8,  0),\n",
       "       (b'industrial rock', 127, 128, -1,   8,   8,  0),\n",
       "       (b'dark ambient', 129, 129,  0,   8,   8,  0),\n",
       "       (b'ska-punk', 130, 130,  0,   8,   8,  0),\n",
       "       (b'samba', 131, 131,  0,   8,   8,  0),\n",
       "       (b'piano rock', 132, 132,  0,   8,   8,  0),\n",
       "       (b'deathrock', 133, 133,  0,   8,   8,  0),\n",
       "       (b'soft rock', 134, 134,  0,   7,   7,  0),\n",
       "       (b'reggaeton', 135, 135,  0,   7,   7,  0),\n",
       "       (b'drone', 136, 136,  0,   7,   7,  0),\n",
       "       (b'viking metal', 137, 137,  0,   7,   7,  0),\n",
       "       (b'southern rock', 138, 138,  0,   7,   7,  0),\n",
       "       (b'celtic', 139, 139,  0,   7,   7,  0),\n",
       "       (b'alternative metal', 140, 140,  0,   7,   7,  0),\n",
       "       (b'lounge', 141, 141,  0,   6,   6,  0),\n",
       "       (b'ethereal', 142, 142,  0,   6,   6,  0),\n",
       "       (b'neo soul', 143, 143,  0,   6,   6,  0),\n",
       "       (b'mathcore', 144, 144,  0,   6,   6,  0),\n",
       "       (b'southern rap', 145, 145,  0,   6,   6,  0),\n",
       "       (b'gangsta rap', 146, 146,  0,   6,   6,  0),\n",
       "       (b'folk rock', 147, 147,  0,   6,   6,  0),\n",
       "       (b'breakcore', 148, 148,  0,   6,   6,  0),\n",
       "       (b'ethnic', 149, 149,  0,   5,   5,  0),\n",
       "       (b'medieval', 150, 150,  0,   5,   5,  0),\n",
       "       (b'8-bit', 151, 151,  0,   5,   5,  0),\n",
       "       (b'neofolk', 152, 152,  0,   5,   5,  0),\n",
       "       (b'grime', 153, 153,  0,   5,   5,  0),\n",
       "       (b'art rock', 154, 154,  0,   5,   5,  0),\n",
       "       (b'acid jazz', 155, 155,  0,   5,   5,  0),\n",
       "       (b'symphonic black meta', 156, 156,  0,   5,   5,  0),\n",
       "       (b'groove metal', 158, 157,  1,   5,   5,  0),\n",
       "       (b'ragga', 159, 158,  1,   4,   4,  0),\n",
       "       (b'new romantic', 157, 159, -2,   5,   4,  0),\n",
       "       (b'atmospheric black me', 160, 160,  0,   4,   4,  0),\n",
       "       (b'noise', 161, 161,  0,   4,   4,  0),\n",
       "       (b'east coast rap', 162, 162,  0,   4,   4,  0),\n",
       "       (b'worship', 163, 163,  0,   4,   4,  0),\n",
       "       (b'post-metal', 164, 164,  0,   4,   4,  0),\n",
       "       (b'indie folk', 165, 165,  0,   4,   4,  0),\n",
       "       (b'eurodance', 166, 166,  0,   4,   4,  0),\n",
       "       (b'easy listening', 167, 167,  0,   4,   4,  0),\n",
       "       (b'chicago blues', 168, 168,  0,   4,   4,  0),\n",
       "       (b'bebop', 169, 169,  0,   4,   4,  0),\n",
       "       (b'minimal techno', 170, 170,  0,   3,   3,  0),\n",
       "       (b'latin rock', 171, 171,  0,   3,   3,  0),\n",
       "       (b'teen pop', 172, 172,  0,   3,   3,  0),\n",
       "       (b'minimalism', 173, 173,  0,   3,   3,  0),\n",
       "       (b'space rock', 174, 174,  0,   3,   3,  0),\n",
       "       (b'post-grunge', 175, 175,  0,   3,   3,  0),\n",
       "       (b'glitch', 176, 176,  0,   3,   3,  0),\n",
       "       (b'twee pop', 177, 177,  0,   3,   3,  0),\n",
       "       (b'trancecore', 178, 178,  0,   3,   3,  0),\n",
       "       (b'psybient', 179, 179,  0,   3,   3,  0),\n",
       "       (b'roots reggae', 180, 180,  0,   2,   2,  0),\n",
       "       (b'country pop', 181, 181,  0,   2,   2,  0),\n",
       "       (b'sleaze rock', 182, 182,  0,   2,   2,  0),\n",
       "       (b'progressive trance', 183, 183,  0,   2,   2,  0),\n",
       "       (b'folk punk', 185, 184,  1,   2,   2,  0),\n",
       "       (b'avant-garde metal', 186, 185,  1,   2,   2,  0),\n",
       "       (b'vocal trance', 187, 186,  1,   2,   2,  0),\n",
       "       (b'surf rock', 188, 187,  1,   2,   2,  0),\n",
       "       (b'proto-punk', 189, 188,  1,   2,   2,  0),\n",
       "       (b'pagan metal', 184, 189, -5,   2,   2,  0),\n",
       "       (b'orchestral', 190, 190,  0,   2,   2,  0),\n",
       "       (b'neoclassical', 191, 191,  0,   2,   2,  0),\n",
       "       (b'melodic metalcore', 192, 192,  0,   2,   2,  0),\n",
       "       (b'urban', 193, 193,  0,   2,   2,  0),\n",
       "       (b'freak folk', 194, 194,  0,   2,   2,  0),\n",
       "       (b'noisecore', 195, 195,  0,   1,   1,  0),\n",
       "       (b'noise pop', 196, 196,  0,   1,   1,  0),\n",
       "       (b'electric blues', 197, 197,  0,   1,   1,  0),\n",
       "       (b'indietronica', 198, 198,  0,   1,   1,  0),\n",
       "       (b'crunk', 199, 199,  0,   1,   1,  0),\n",
       "       (b'country rock', 200, 200,  0,   1,   1,  0),\n",
       "       (b'breakbeat', 201, 201,  0,   1,   1,  0),\n",
       "       (b'acoustic rock', 202, 202,  0,   1,   1,  0),\n",
       "       (b'alternative hip-hop', 203, 203,  0,   1,   1,  0),\n",
       "       (b'nu jazz', 204, 204,  0,   1,   1,  0),\n",
       "       (b'jazz hop', 205, 205,  0,   1,   1,  0),\n",
       "       (b'classical crossover', 206, 206,  0,   0,   0,  0),\n",
       "       (b'electro-industrial', 207, 207,  0,   0,   0,  0),\n",
       "       (b'electro house', 208, 208,  0,   0,   0,  0),\n",
       "       (b'contemporary christi', 209, 209,  0,   0,   0,  0),\n",
       "       (b'christian metalcore', 210, 210,  0,   0,   0,  0),\n",
       "       (b'west coast rap', 211, 211,  0,   0,   0,  0),\n",
       "       (b'aggrotech', 212, 212,  0,   0,   0,  0)],\n",
       "      dtype=[('tag', 'S20'), ('init', '<i8'), ('final', '<i8'), ('diff', '<i8'), ('init_count', '<i8'), ('final_count', '<i8'), ('diff_count', '<i8')])"
      ]
     },
     "execution_count": 40,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "get_top_tags(G_pl_total_genres,  G_axelrod_pl_total_genres, G_pl_total_counts, G_axelrod_pl_total_counts, list_tags, True)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 9. PRUEBAS\n",
    "\n",
    "## Prueba A"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 139,
   "metadata": {},
   "outputs": [],
   "source": [
    "#G = generate_graph(m, df_artists, 0)\n",
    "#G_axelrod1 = axelrod(G,200)\n",
    "#G_axelrod2 = axelrod(G,2000)\n",
    "#G_axelrod3 = axelrod(G,20000)\n",
    "#G_axelrod4 = axelrod(G,200000)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "#G_pl_total_genres, G_pl_total_counts = get_complete_genres_counts(G, list_tags)\n",
    "#G_axelrod1_pl_total_genres, G_axelrod1_pl_total_counts = get_complete_genres_counts(G_axelrod1, list_tags)\n",
    "#G_axelrod2_pl_total_genres, G_axelrod2_pl_total_counts = get_complete_genres_counts(G_axelrod2, list_tags)\n",
    "#G_axelrod3_pl_total_genres, G_axelrod3_pl_total_counts = get_complete_genres_counts(G_axelrod3, list_tags)\n",
    "#G_axelrod4_pl_total_genres, G_axelrod4_pl_total_counts = get_complete_genres_counts(G_axelrod4, list_tags)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 132,
   "metadata": {},
   "outputs": [],
   "source": [
    "num_de_cambios = []\n",
    "G_pl_total_genres = ('rock', 'pop', 'indie', 'electronic', 'alternative', 'hip-hop', 'folk', 'classic rock', 'punk', 'indie rock', 'dance', 'alternative rock', 'rnb', 'rap', 'hard rock', 'experimental', 'ambient', 'new wave', 'metal', 'soul', 'hardcore', 'soundtrack', 'jazz', 'industrial', 'post-hardcore', 'metalcore', 'progressive rock', 'instrumental', 'country', 'pop punk', 'heavy metal', 'emo', 'pop rock', 'blues', 'post-punk', 'synth pop', 'death metal', 'trip-hop', 'indie pop', 'progressive metal', 'mpb', 'post-rock', 'ebm', 'black metal', 'j-pop', 'idm', 'thrash metal', 'classical', 'britpop', 'reggae', 'power metal', 'j-rock', 'chillout', 'melodic death metal', 'deathcore', 'k-pop', 'funk', 'screamo', 'shoegaze', 'gothic metal', 'ska', 'power pop', 'psychedelic', 'nu metal', 'industrial metal', 'christian', 'world', 'grunge', 'darkwave', 'christian rock', 'folk metal', 'blues rock', 'symphonic metal', 'house', 'gothic', 'lo-fi', 'grindcore', 'doom metal', 'underground hip-hop', 'trance', 'latin pop', 'electropop', 'new age', 'bossa nova', 'hardcore punk', 'glam rock', 'minimal', 'melodic hardcore', 'futurepop', 'gothic rock', 'glam metal', 'garage rock', 'disco', 'chanson', 'alt-country', 'contemporary country', 'rockabilly', 'electroclash', 'dream pop', 'dark electro', 'techno', 'drum and bass', 'disney', 'stoner', 'technical death metal', 'anime', 'musical', 'dancehall', 'psychedelic rock', 'brutal death metal', 'rapcore', 'math rock', 'composer', 'psytrance', 'avant-garde', 'dubstep', 'speed metal', 'rock n roll', 'psychobilly', 'swing', 'new rave', 'sludge metal', 'noise rock', 'gospel', 'dub', 'opera', 'contemporary classical', 'industrial rock', 'horror punk', 'dark ambient', 'ska-punk', 'samba', 'piano rock', 'deathrock', 'soft rock', 'reggaeton', 'drone', 'viking metal', 'southern rock', 'celtic', 'alternative metal', 'lounge', 'ethereal', 'neo soul', 'mathcore', 'southern rap', 'gangsta rap', 'folk rock', 'breakcore', 'ethnic', 'medieval', '8-bit', 'neofolk', 'grime', 'art rock', 'acid jazz', 'symphonic black metal', 'new romantic', 'groove metal', 'ragga', 'atmospheric black metal', 'noise', 'east coast rap', 'worship', 'post-metal', 'indie folk', 'eurodance', 'easy listening', 'chicago blues', 'bebop', 'minimal techno', 'latin rock', 'teen pop', 'minimalism', 'space rock', 'post-grunge', 'glitch', 'twee pop', 'trancecore', 'psybient', 'roots reggae', 'country pop', 'sleaze rock', 'progressive trance', 'pagan metal', 'folk punk', 'avant-garde metal', 'vocal trance', 'surf rock', 'proto-punk', 'orchestral', 'neoclassical', 'melodic metalcore', 'urban', 'freak folk', 'noisecore', 'noise pop', 'electric blues', 'indietronica', 'crunk', 'country rock', 'breakbeat', 'acoustic rock', 'alternative hip-hop', 'nu jazz', 'jazz hop', 'classical crossover', 'electro-industrial', 'electro house', 'contemporary christian', 'christian metalcore', 'west coast rap', 'aggrotech')\n",
    "G_pl_total_counts = (626.0, 603.75, 486.75, 382.0, 263.0, 230.75, 150.0, 143.75, 136.25, 127.25, 124.25, 123.0, 121.0, 116.5, 112.75, 109.25, 108.25, 103.75, 98.5, 98.0, 91.75, 91.25, 87.0, 84.75, 83.75, 80.5, 74.25, 72.5, 64.25, 63.25, 63.25, 62.25, 62.0, 61.75, 59.75, 59.0, 59.0, 57.0, 56.5, 54.25, 51.25, 50.0, 48.5, 48.5, 47.5, 46.75, 45.25, 44.5, 44.0, 40.0, 38.5, 38.25, 35.0, 34.75, 33.75, 33.5, 32.25, 30.5, 30.25, 30.25, 29.25, 28.0, 27.75, 26.75, 26.0, 25.25, 25.0, 24.0, 23.25, 23.0, 22.5, 22.5, 22.25, 22.25, 22.25, 21.5, 21.0, 21.0, 20.75, 20.75, 20.25, 20.25, 19.75, 18.5, 18.25, 18.0, 17.75, 17.0, 17.0, 16.5, 15.5, 15.5, 15.0, 15.0, 15.0, 14.5, 13.5, 13.25, 13.25, 13.25, 13.0, 12.5, 12.5, 12.25, 11.75, 11.75, 11.25, 11.0, 10.75, 10.75, 10.5, 10.5, 10.5, 10.25, 10.25, 9.5, 9.25, 9.25, 9.25, 9.0, 9.0, 8.75, 8.75, 8.75, 8.75, 8.5, 8.5, 8.25, 8.25, 8.25, 8.0, 8.0, 8.0, 8.0, 7.75, 7.75, 7.75, 7.5, 7.25, 7.25, 7.0, 6.75, 6.75, 6.5, 6.5, 6.25, 6.25, 6.0, 6.0, 5.75, 5.5, 5.5, 5.25, 5.25, 5.25, 5.25, 5.0, 5.0, 5.0, 4.75, 4.75, 4.5, 4.5, 4.25, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 3.75, 3.75, 3.5, 3.5, 3.25, 3.25, 3.25, 3.0, 3.0, 3.0, 2.75, 2.75, 2.5, 2.5, 2.5, 2.5, 2.5, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.0, 2.0, 1.75, 1.75, 1.75, 1.5, 1.5, 1.5, 1.5, 1.5, 1.25, 1.0, 1.0, 0.75, 0.25, 0.25, 0.25, 0.25, 0.0, 0.0)\n",
    "G_axelrod1_pl_total_genres = ('rock', 'pop', 'indie', 'electronic', 'alternative', 'hip-hop', 'folk', 'classic rock', 'punk', 'indie rock', 'dance', 'alternative rock', 'rnb', 'rap', 'hard rock', 'experimental', 'ambient', 'new wave', 'metal', 'soul', 'hardcore', 'soundtrack', 'jazz', 'industrial', 'post-hardcore', 'metalcore', 'progressive rock', 'instrumental', 'country', 'pop punk', 'heavy metal', 'emo', 'blues', 'pop rock', 'post-punk', 'synth pop', 'death metal', 'trip-hop', 'indie pop', 'progressive metal', 'mpb', 'post-rock', 'ebm', 'black metal', 'j-pop', 'idm', 'thrash metal', 'classical', 'britpop', 'reggae', 'power metal', 'j-rock', 'chillout', 'melodic death metal', 'deathcore', 'k-pop', 'funk', 'shoegaze', 'gothic metal', 'screamo', 'ska', 'psychedelic', 'power pop', 'nu metal', 'industrial metal', 'christian', 'world', 'grunge', 'darkwave', 'christian rock', 'gothic', 'folk metal', 'blues rock', 'symphonic metal', 'house', 'lo-fi', 'grindcore', 'doom metal', 'underground hip-hop', 'trance', 'latin pop', 'electropop', 'new age', 'hardcore punk', 'bossa nova', 'minimal', 'glam rock', 'futurepop', 'melodic hardcore', 'gothic rock', 'glam metal', 'garage rock', 'disco', 'chanson', 'alt-country', 'contemporary country', 'rockabilly', 'dream pop', 'dark electro', 'techno', 'electroclash', 'drum and bass', 'stoner', 'disney', 'technical death metal', 'anime', 'musical', 'dancehall', 'psychedelic rock', 'brutal death metal', 'rapcore', 'math rock', 'composer', 'psytrance', 'avant-garde', 'dubstep', 'speed metal', 'psychobilly', 'swing', 'sludge metal', 'noise rock', 'new rave', 'gospel', 'dub', 'opera', 'contemporary classical', 'rock n roll', 'industrial rock', 'horror punk', 'dark ambient', 'ska-punk', 'samba', 'piano rock', 'deathrock', 'soft rock', 'reggaeton', 'drone', 'viking metal', 'southern rock', 'celtic', 'alternative metal', 'lounge', 'ethereal', 'neo soul', 'mathcore', 'southern rap', 'gangsta rap', 'folk rock', 'breakcore', 'ethnic', 'medieval', '8-bit', 'neofolk', 'grime', 'acid jazz', 'new romantic', 'groove metal', 'ragga', 'atmospheric black metal', 'art rock', 'symphonic black metal', 'noise', 'east coast rap', 'worship', 'post-metal', 'indie folk', 'easy listening', 'chicago blues', 'bebop', 'minimal techno', 'latin rock', 'eurodance', 'teen pop', 'minimalism', 'space rock', 'post-grunge', 'glitch', 'twee pop', 'trancecore', 'psybient', 'roots reggae', 'country pop', 'sleaze rock', 'progressive trance', 'pagan metal', 'folk punk', 'avant-garde metal', 'acoustic rock', 'vocal trance', 'surf rock', 'proto-punk', 'orchestral', 'neoclassical', 'melodic metalcore', 'urban', 'freak folk', 'noisecore', 'noise pop', 'electric blues', 'indietronica', 'crunk', 'country rock', 'breakbeat', 'alternative hip-hop', 'nu jazz', 'jazz hop', 'classical crossover', 'electro-industrial', 'electro house', 'contemporary christian', 'christian metalcore', 'west coast rap', 'aggrotech') \n",
    "G_axelrod1_pl_total_counts = (625.75, 604.0, 486.5, 382.75, 265.25, 230.25, 150.0, 144.5, 137.25, 129.0, 124.0, 124.0, 121.25, 116.5, 112.5, 109.0, 108.25, 103.75, 99.0, 98.25, 91.75, 90.75, 87.0, 84.75, 83.75, 80.5, 74.25, 72.5, 64.25, 63.25, 63.0, 62.25, 61.75, 61.5, 60.0, 59.25, 59.0, 57.25, 56.5, 54.25, 51.25, 50.0, 48.5, 48.0, 47.5, 46.75, 45.25, 44.5, 41.75, 40.0, 38.5, 38.25, 35.0, 34.75, 33.75, 33.5, 32.25, 30.25, 30.25, 30.0, 29.25, 28.0, 28.0, 26.25, 26.0, 25.25, 25.0, 24.0, 23.25, 22.75, 22.5, 22.5, 22.5, 22.25, 22.25, 21.5, 21.0, 21.0, 20.75, 20.75, 20.25, 20.0, 19.75, 18.75, 18.5, 17.75, 17.5, 17.0, 16.5, 16.5, 15.5, 15.5, 15.0, 15.0, 15.0, 14.5, 13.5, 13.25, 13.25, 13.0, 12.75, 12.5, 12.25, 12.25, 11.75, 11.75, 11.25, 11.0, 10.75, 10.75, 10.5, 10.5, 10.5, 10.25, 10.25, 9.5, 9.25, 9.25, 9.0, 8.75, 8.75, 8.75, 8.75, 8.75, 8.5, 8.5, 8.25, 8.25, 8.25, 8.25, 8.0, 8.0, 8.0, 8.0, 7.75, 7.75, 7.75, 7.5, 7.25, 7.25, 7.0, 6.75, 6.75, 6.5, 6.5, 6.25, 6.25, 6.0, 6.0, 5.75, 5.5, 5.5, 5.25, 5.25, 5.25, 5.0, 5.0, 4.75, 4.75, 4.75, 4.5, 4.5, 4.5, 4.25, 4.0, 4.0, 4.0, 4.0, 4.0, 3.75, 3.75, 3.75, 3.5, 3.5, 3.25, 3.25, 3.25, 3.0, 3.0, 3.0, 2.75, 2.75, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.0, 2.0, 1.75, 1.75, 1.75, 1.5, 1.5, 1.5, 1.5, 1.25, 1.0, 1.0, 0.75, 0.25, 0.25, 0.25, 0.25, 0.0, 0.0)\n",
    "G_axelrod2_pl_total_genres = ('rock', 'pop', 'indie', 'electronic', 'alternative', 'hip-hop', 'folk', 'classic rock', 'punk', 'alternative rock', 'indie rock', 'rnb', 'dance', 'rap', 'hard rock', 'ambient', 'experimental', 'new wave', 'metal', 'soul', 'hardcore', 'soundtrack', 'jazz', 'industrial', 'post-hardcore', 'metalcore', 'progressive rock', 'instrumental', 'country', 'heavy metal', 'blues', 'emo', 'pop punk', 'pop rock', 'post-punk', 'death metal', 'trip-hop', 'synth pop', 'indie pop', 'progressive metal', 'mpb', 'post-rock', 'ebm', 'black metal', 'j-pop', 'idm', 'thrash metal', 'classical', 'britpop', 'reggae', 'power metal', 'j-rock', 'melodic death metal', 'chillout', 'deathcore', 'k-pop', 'funk', 'screamo', 'shoegaze', 'gothic metal', 'ska', 'power pop', 'nu metal', 'psychedelic', 'industrial metal', 'christian', 'world', 'darkwave', 'christian rock', 'house', 'gothic', 'folk metal', 'blues rock', 'symphonic metal', 'grunge', 'lo-fi', 'grindcore', 'doom metal', 'underground hip-hop', 'trance', 'electropop', 'new age', 'latin pop', 'minimal', 'hardcore punk', 'bossa nova', 'melodic hardcore', 'gothic rock', 'glam rock', 'futurepop', 'glam metal', 'disco', 'chanson', 'contemporary country', 'garage rock', 'dream pop', 'rockabilly', 'alt-country', 'techno', 'electroclash', 'dark electro', 'stoner', 'drum and bass', 'disney', 'technical death metal', 'anime', 'musical', 'psychedelic rock', 'dancehall', 'composer', 'brutal death metal', 'psytrance', 'avant-garde', 'rapcore', 'math rock', 'dubstep', 'speed metal', 'rock n roll', 'psychobilly', 'swing', 'sludge metal', 'noise rock', 'new rave', 'gospel', 'dub', 'horror punk', 'deathrock', 'soft rock', 'opera', 'contemporary classical', 'ska-punk', 'samba', 'industrial rock', 'drone', 'dark ambient', 'reggaeton', 'viking metal', 'celtic', 'southern rap', 'alternative metal', 'southern rock', 'piano rock', 'ethereal', 'mathcore', 'lounge', 'neo soul', 'folk rock', 'gangsta rap', 'breakcore', 'ethnic', '8-bit', 'medieval', 'neofolk', 'grime', 'art rock', 'acid jazz', 'symphonic black metal', 'indie folk', 'groove metal', 'ragga', 'new romantic', 'atmospheric black metal', 'noise', 'worship', 'post-metal', 'east coast rap', 'chicago blues', 'bebop', 'minimal techno', 'eurodance', 'easy listening', 'trancecore', 'teen pop', 'minimalism', 'space rock', 'post-grunge', 'latin rock', 'glitch', 'twee pop', 'psybient', 'roots reggae', 'proto-punk', 'country pop', 'progressive trance', 'pagan metal', 'folk punk', 'avant-garde metal', 'vocal trance', 'surf rock', 'orchestral', 'neoclassical', 'melodic metalcore', 'freak folk', 'urban', 'sleaze rock', 'noisecore', 'noise pop', 'electric blues', 'country rock', 'indietronica', 'breakbeat', 'acoustic rock', 'crunk', 'nu jazz', 'jazz hop', 'alternative hip-hop', 'classical crossover', 'electro-industrial', 'electro house', 'contemporary christian', 'christian metalcore', 'west coast rap', 'aggrotech')\n",
    "G_axelrod2_pl_total_counts = (630.5, 607.25, 485.0, 381.0, 268.5, 230.25, 148.5, 144.5, 138.0, 125.0, 124.75, 123.25, 118.5, 116.75, 111.25, 110.0, 109.0, 104.5, 97.5, 95.75, 91.25, 90.75, 88.5, 84.5, 83.75, 81.25, 73.25, 72.75, 65.25, 63.75, 63.0, 62.5, 62.25, 61.5, 60.75, 59.25, 58.0, 57.5, 55.75, 55.25, 51.5, 50.0, 49.75, 48.5, 47.5, 47.0, 44.75, 44.25, 43.25, 40.0, 39.5, 39.25, 34.75, 34.25, 33.75, 33.5, 31.75, 30.5, 30.25, 30.0, 28.5, 27.5, 27.25, 26.75, 25.75, 25.5, 25.0, 23.25, 23.0, 22.5, 22.5, 22.5, 22.0, 21.75, 21.75, 21.0, 21.0, 21.0, 20.75, 20.75, 20.0, 19.75, 19.5, 18.25, 18.25, 18.25, 17.5, 17.5, 17.5, 17.0, 15.5, 15.25, 15.25, 15.0, 14.5, 13.75, 13.5, 13.5, 13.25, 13.25, 13.25, 12.75, 12.5, 12.25, 11.75, 11.75, 11.5, 10.75, 10.75, 10.75, 10.75, 10.25, 10.25, 10.0, 9.5, 9.5, 9.25, 9.25, 9.25, 9.0, 8.75, 8.75, 8.75, 8.75, 8.75, 8.5, 8.5, 8.25, 8.25, 8.25, 8.0, 8.0, 8.0, 8.0, 8.0, 7.75, 7.5, 7.25, 7.0, 7.0, 6.75, 6.75, 6.75, 6.5, 6.5, 6.25, 6.25, 6.0, 6.0, 5.75, 5.75, 5.5, 5.25, 5.25, 5.25, 5.25, 5.0, 5.0, 5.0, 4.75, 4.75, 4.75, 4.5, 4.25, 4.0, 4.0, 4.0, 4.0, 3.75, 3.75, 3.75, 3.5, 3.5, 3.5, 3.25, 3.25, 3.25, 3.25, 3.0, 3.0, 2.75, 2.75, 2.75, 2.5, 2.5, 2.5, 2.5, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.0, 2.0, 1.75, 1.75, 1.75, 1.75, 1.5, 1.5, 1.5, 1.25, 1.0, 1.0, 1.0, 0.75, 0.25, 0.25, 0.25, 0.25, 0.0, 0.0)\n",
    "G_axelrod3_pl_total_genres = ('pop', 'rock', 'indie', 'electronic', 'alternative', 'hip-hop', 'classic rock', 'folk', 'indie rock', 'punk', 'pop rock', 'dance', 'rnb', 'alternative rock', 'experimental', 'rap', 'new wave', 'ambient', 'hard rock', 'jazz', 'metal', 'soundtrack', 'soul', 'metalcore', 'industrial', 'hardcore', 'post-hardcore', 'instrumental', 'progressive rock', 'emo', 'blues', 'pop punk', 'country', 'progressive metal', 'post-punk', 'trip-hop', 'heavy metal', 'death metal', 'indie pop', 'mpb', 'synth pop', 'ebm', 'black metal', 'classical', 'post-rock', 'j-pop', 'thrash metal', 'idm', 'reggae', 'j-rock', 'britpop', 'power metal', 'melodic death metal', 'chillout', 'deathcore', 'industrial metal', 'k-pop', 'gothic metal', 'funk', 'psychedelic', 'screamo', 'shoegaze', 'power pop', 'christian', 'ska', 'electropop', 'darkwave', 'blues rock', 'nu metal', 'world', 'underground hip-hop', 'samba', 'house', 'folk metal', 'doom metal', 'christian rock', 'symphonic metal', 'lo-fi', 'grindcore', 'new age', 'trance', 'grunge', 'gothic', 'latin pop', 'hardcore punk', 'glam rock', 'futurepop', 'bossa nova', 'minimal', 'glam metal', 'garage rock', 'melodic hardcore', 'disney', 'chanson', 'contemporary country', 'alt-country', 'disco', 'psychedelic rock', 'gothic rock', 'rockabilly', 'electroclash', 'dub', 'dark electro', 'stoner', 'drum and bass', 'technical death metal', 'dancehall', 'brutal death metal', 'anime', 'dream pop', 'rock n roll', 'rapcore', 'techno', 'psytrance', 'math rock', 'composer', 'dubstep', 'avant-garde', 'musical', 'psychobilly', 'noise rock', 'swing', 'southern rap', 'viking metal', 'gospel', 'contemporary classical', 'sludge metal', 'opera', 'deathrock', 'alternative metal', 'speed metal', 'horror punk', 'dark ambient', 'ska-punk', 'piano rock', 'mathcore', 'drone', 'reggaeton', 'southern rock', 'industrial rock', 'ethereal', 'celtic', 'new romantic', 'new rave', 'neo soul', 'lounge', 'grime', 'ethnic', 'soft rock', 'noise', 'neofolk', 'medieval', 'folk rock', 'acid jazz', 'minimal techno', '8-bit', 'groove metal', 'country pop', 'ragga', 'post-grunge', 'chicago blues', 'atmospheric black metal', 'art rock', 'worship', 'eurodance', 'east coast rap', 'post-metal', 'gangsta rap', 'breakcore', 'symphonic black metal', 'indie folk', 'glitch', 'trancecore', 'bebop', 'minimalism', 'latin rock', 'easy listening', 'space rock', 'psybient', 'vocal trance', 'twee pop', 'avant-garde metal', 'teen pop', 'roots reggae', 'progressive trance', 'pagan metal', 'electric blues', 'surf rock', 'orchestral', 'folk punk', 'sleaze rock', 'neoclassical', 'indietronica', 'urban', 'proto-punk', 'noisecore', 'freak folk', 'melodic metalcore', 'country rock', 'breakbeat', 'noise pop', 'crunk', 'acoustic rock', 'christian metalcore', 'nu jazz', 'classical crossover', 'alternative hip-hop', 'jazz hop', 'electro house', 'contemporary christian', 'west coast rap', 'electro-industrial', 'aggrotech') \n",
    "G_axelrod3_pl_total_counts = (610.5, 603.25, 477.5, 374.5, 301.5, 229.75, 153.0, 145.25, 130.25, 126.75, 120.5, 116.25, 115.0, 114.0, 113.75, 111.5, 109.5, 107.5, 105.0, 96.25, 95.0, 89.0, 86.75, 86.25, 82.5, 82.0, 81.5, 73.0, 70.75, 67.5, 67.5, 63.75, 63.5, 60.75, 60.0, 59.75, 57.75, 57.5, 54.5, 54.25, 52.0, 50.25, 50.25, 45.5, 44.5, 44.5, 44.25, 42.0, 40.5, 40.5, 39.75, 37.5, 37.0, 35.0, 32.25, 31.0, 30.0, 30.0, 29.5, 29.25, 28.75, 28.0, 27.5, 27.25, 27.0, 26.5, 25.75, 25.75, 25.5, 24.5, 23.25, 23.0, 22.75, 22.5, 21.75, 21.75, 21.5, 21.25, 21.0, 20.75, 20.5, 20.0, 20.0, 19.5, 19.5, 19.25, 18.0, 18.0, 17.5, 16.75, 16.25, 16.0, 15.75, 15.0, 14.5, 14.5, 13.75, 13.5, 13.25, 13.0, 12.75, 12.75, 12.75, 12.0, 11.25, 11.0, 11.0, 11.0, 11.0, 10.75, 10.5, 10.5, 10.25, 10.25, 10.0, 10.0, 9.75, 9.75, 9.5, 9.25, 9.25, 9.0, 9.0, 8.5, 8.5, 8.5, 8.25, 8.25, 8.25, 8.25, 8.0, 8.0, 8.0, 7.75, 7.5, 7.5, 7.25, 7.0, 6.75, 6.75, 6.75, 6.75, 6.25, 6.25, 6.25, 6.25, 5.75, 5.75, 5.5, 5.5, 5.5, 5.5, 5.5, 5.25, 5.0, 5.0, 4.75, 4.75, 4.5, 4.5, 4.5, 4.5, 4.5, 4.25, 4.25, 4.25, 4.0, 4.0, 4.0, 3.75, 3.75, 3.75, 3.5, 3.5, 3.25, 3.25, 3.25, 3.0, 3.0, 2.75, 2.75, 2.75, 2.5, 2.5, 2.5, 2.5, 2.5, 2.25, 2.25, 2.25, 2.0, 2.0, 2.0, 1.75, 1.75, 1.75, 1.75, 1.5, 1.5, 1.5, 1.25, 1.25, 1.25, 1.0, 0.75, 0.75, 0.75, 0.5, 0.25, 0.25, 0.0, 0.0, 0.0)\n",
    "G_axelrod4_pl_total_genres = ('alternative', 'indie', 'pop rock', 'pop', 'rock', 'electronic', 'new wave', 'hip-hop', 'trip-hop', 'indie rock', 'classic rock', 'jazz', 'progressive metal', 'ambient', 'ska-punk', 'punk', 'experimental', 'folk', 'rap', 'metalcore', 'alt-country', 'hard rock', 'blues', 'hardcore', 'industrial', 'soundtrack', 'metal', 'eurodance', 'alternative rock', 'instrumental', 'ebm', 'soul', 'emo', 'rnb', 'black metal', 'post-punk', 'dance', 'post-hardcore', 'country', 'progressive rock', 'death metal', 'pop punk', 'classical', 'thrash metal', 'post-rock', 'heavy metal', 'screamo', 'synth pop', 'mpb', 'industrial metal', 'psychedelic', 'reggae', 'power metal', 'j-rock', 'j-pop', 'melodic hardcore', 'doom metal', 'idm', 'k-pop', 'trance', 'indie pop', 'funk', 'shoegaze', 'deathcore', 'underground hip-hop', 'power pop', 'glam rock', 'melodic death metal', 'house', 'britpop', 'psychedelic rock', 'electropop', 'gothic metal', 'world', 'new age', 'christian', 'chillout', 'ska', 'darkwave', 'christian rock', 'nu metal', 'lo-fi', 'folk metal', 'grunge', 'grindcore', 'technical death metal', 'gothic', 'glam metal', 'disco', 'minimal', 'symphonic metal', 'rockabilly', 'blues rock', 'hardcore punk', 'gothic rock', 'contemporary country', 'futurepop', 'chanson', 'bossa nova', 'composer', 'rapcore', 'dancehall', 'psytrance', 'ethereal', 'rock n roll', 'drum and bass', 'avant-garde', 'stoner', 'latin pop', 'easy listening', 'psychobilly', 'gangsta rap', 'dark ambient', 'anime', 'samba', 'math rock', 'horror punk', 'musical', 'sludge metal', 'gospel', 'deathrock', 'brutal death metal', 'viking metal', 'noise rock', 'grime', 'electroclash', 'psybient', 'garage rock', 'dark electro', 'soft rock', 'dubstep', 'contemporary classical', 'symphonic black metal', 'industrial rock', 'dub', 'swing', 'reggaeton', 'opera', 'lounge', 'dream pop', 'southern rock', 'mathcore', 'ethnic', 'drone', 'celtic', 'avant-garde metal', 'disney', 'country pop', 'breakcore', 'post-metal', 'techno', 'noise', 'ragga', 'piano rock', 'medieval', 'groove metal', 'chicago blues', 'art rock', 'alternative metal', 'neofolk', 'latin rock', '8-bit', 'new rave', 'minimalism', 'acid jazz', 'trancecore', 'folk rock', 'atmospheric black metal', 'indietronica', 'folk punk', 'minimal techno', 'worship', 'speed metal', 'vocal trance', 'breakbeat', 'space rock', 'sleaze rock', 'roots reggae', 'nu jazz', 'surf rock', 'orchestral', 'neoclassical', 'glitch', 'bebop', 'proto-punk', 'progressive trance', 'new romantic', 'freak folk', 'twee pop', 'electric blues', 'teen pop', 'southern rap', 'noise pop', 'melodic metalcore', 'crunk', 'post-grunge', 'pagan metal', 'noisecore', 'neo soul', 'electro-industrial', 'indie folk', 'urban', 'east coast rap', 'alternative hip-hop', 'electro house', 'country rock', 'contemporary christian', 'acoustic rock', 'west coast rap', 'jazz hop', 'classical crossover', 'christian metalcore', 'aggrotech') \n",
    "G_axelrod4_pl_total_counts = (473.0, 428.0, 423.5, 410.5, 380.25, 341.0, 274.5, 232.0, 173.25, 162.25, 144.75, 134.0, 132.0, 117.75, 117.5, 108.5, 103.5, 101.75, 91.75, 84.5, 82.75, 80.5, 78.0, 76.0, 74.75, 74.5, 74.5, 73.5, 69.75, 68.0, 66.5, 64.75, 63.75, 62.75, 62.5, 61.0, 59.5, 58.5, 58.25, 56.5, 55.0, 54.5, 46.5, 46.0, 45.0, 44.25, 44.0, 42.75, 41.5, 40.75, 40.5, 36.75, 36.75, 36.75, 33.5, 32.25, 32.0, 31.5, 29.0, 27.5, 27.5, 27.0, 26.75, 26.5, 25.75, 25.25, 25.0, 24.5, 24.25, 24.25, 24.0, 23.5, 23.25, 22.5, 22.25, 21.75, 21.75, 21.0, 20.25, 20.25, 20.0, 19.25, 19.0, 18.5, 18.0, 17.75, 17.0, 17.0, 15.75, 15.25, 15.0, 14.75, 13.75, 13.5, 13.5, 13.5, 13.25, 13.0, 12.75, 12.5, 11.75, 11.5, 11.0, 10.75, 10.5, 10.5, 10.5, 9.75, 9.5, 9.5, 9.0, 9.0, 9.0, 9.0, 8.75, 8.75, 8.75, 8.5, 8.25, 8.25, 8.0, 8.0, 7.75, 7.75, 7.75, 7.75, 7.5, 7.5, 7.5, 7.25, 7.25, 7.25, 7.0, 7.0, 7.0, 6.75, 6.75, 6.5, 6.5, 6.5, 6.25, 6.25, 6.25, 6.25, 6.0, 6.0, 5.5, 5.5, 5.25, 5.0, 4.75, 4.75, 4.5, 4.5, 4.5, 4.5, 4.25, 4.25, 4.25, 4.0, 4.0, 4.0, 3.75, 3.75, 3.75, 3.5, 3.5, 3.5, 3.25, 3.25, 3.0, 2.75, 2.75, 2.5, 2.5, 2.25, 2.25, 2.25, 2.25, 2.0, 2.0, 2.0, 2.0, 2.0, 1.75, 1.75, 1.75, 1.75, 1.5, 1.5, 1.25, 1.25, 1.25, 1.25, 1.25, 1.0, 1.0, 1.0, 1.0, 1.0, 0.75, 0.5, 0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.0, 0.0, 0.0, 0.0, 0.0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 149,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 60584 characters]\n",
      "text/plain": [
       "<Figure size 1080x720 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "font = {'family' : 'serif',\n",
    "        'size'   : 22}\n",
    "plt.rc('font', **font)\n",
    "fig, ax = plt.subplots(1, figsize=(15,10))\n",
    "ax.plot(G_pl_total_counts, color=\"black\", linewidth=10, label = \"0 (original)\")\n",
    "ax.legend(loc=\"upper right\", title = \"Criterio de parada\", prop ={'size': 20})\n",
    "plt.title(\"Apariciones de los géneros musicales \\n (grafo original)\")\n",
    "plt.ylabel(\"Número de apariciones\")\n",
    "plt.xlabel(\"Géneros musicales (número)\")\n",
    "plt.xticks(rotation='vertical')\n",
    "plt.savefig(\"axelrodA_original.png\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 158,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 87804 characters]\n",
      "text/plain": [
       "<Figure size 1080x720 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "font = {'family' : 'serif',\n",
    "        'size'   : 22}\n",
    "plt.rc('font', **font)\n",
    "fig, ax = plt.subplots(1, figsize=(15,10))\n",
    "ax.plot(G_pl_total_counts, color=\"black\", linewidth=10, label = \"0 (original)\")\n",
    "ax.plot(G_axelrod1_pl_total_counts, color = \"b\", linewidth = 6, linestyle = '-', label = \"200\")\n",
    "ax.plot(G_axelrod2_pl_total_counts, color = \"dodgerblue\", linewidth = 6, linestyle = '-.', label = \"2000\")\n",
    "ax.plot(G_axelrod3_pl_total_counts, color= \"lightskyblue\", linewidth = 6 ,linestyle = ':', label = \"20000\")\n",
    "ax.plot(G_axelrod4_pl_total_counts, color = \"magenta\", linewidth=4, linestyle = '-', label = \"200000\")\n",
    "ax.legend(loc=\"upper right\", title = \"Criterio de parada\", prop ={'size': 20})\n",
    "plt.title(\"Apariciones de los géneros musicales \\n(resultado A)\")\n",
    "plt.ylabel(\"Número de apariciones\")\n",
    "plt.xlabel(\"Géneros musicales (número)\")\n",
    "plt.xticks(rotation='vertical')\n",
    "plt.savefig(\"axelrodA_all_sorted.png\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 143,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0. alternative (4, +4, 263, 473,  +210)\n",
      "1. indie (2, +1, 486, 428,  -58)\n",
      "2. pop rock (32, +30, 62, 423,  +361)\n",
      "3. pop (1, -2, 603, 410,  -193)\n",
      "4. rock (0, -4, 626, 380,  -245)\n",
      "5. electronic (3, -2, 382, 341,  -41)\n",
      "6. new wave (17, +11, 103, 274,  +170)\n",
      "7. hip-hop (5, -2, 230, 232,  +1)\n",
      "8. trip-hop (37, +29, 57, 173,  +116)\n",
      "9. indie rock (9, 0, 127, 162,  +35)\n",
      "10. classic rock (7, -3, 143, 144,  +1)\n",
      "11. jazz (22, +11, 87, 134,  +47)\n",
      "12. progressive metal (39, +27, 54, 132,  +77)\n",
      "13. ambient (16, +3, 108, 117,  +9)\n",
      "14. ska-punk (130, +116, 8, 117,  +109)\n",
      "15. punk (8, -7, 136, 108,  -27)\n",
      "16. experimental (15, -1, 109, 103,  -5)\n",
      "17. folk (6, -11, 150, 101,  -48)\n",
      "18. rap (13, -5, 116, 91,  -24)\n",
      "19. metalcore (25, +6, 80, 84,  +4)\n",
      "20. alt-country (94, +74, 15, 82,  +67)\n",
      "21. hard rock (14, -7, 112, 80,  -32)\n",
      "22. blues (33, +11, 61, 78,  +16)\n",
      "23. hardcore (20, -3, 91, 76,  -15)\n",
      "24. industrial (23, -1, 84, 74,  -10)\n",
      "25. soundtrack (21, -4, 91, 74,  -16)\n",
      "26. metal (18, -8, 98, 74,  -24)\n",
      "27. eurodance (166, +139, 4, 73,  +69)\n",
      "28. alternative rock (11, -17, 123, 69,  -53)\n",
      "29. instrumental (27, -2, 72, 68,  -4)\n",
      "30. ebm (42, +12, 48, 66,  +18)\n",
      "31. soul (19, -12, 98, 64,  -33)\n",
      "32. emo (31, -1, 62, 63,  +1)\n",
      "33. rnb (12, -21, 121, 62,  -58)\n",
      "34. black metal (43, +9, 48, 62,  +14)\n",
      "35. post-punk (34, -1, 59, 61,  +1)\n",
      "36. dance (10, -26, 124, 59,  -64)\n",
      "37. post-hardcore (24, -13, 83, 58,  -25)\n",
      "38. country (28, -10, 64, 58,  -6)\n",
      "39. progressive rock (26, -13, 74, 56,  -17)\n",
      "40. death metal (36, -4, 59, 55,  -4)\n",
      "41. pop punk (29, -12, 63, 54,  -8)\n",
      "42. classical (47, +5, 44, 46,  +2)\n",
      "43. thrash metal (46, +3, 45, 46,  0)\n",
      "44. post-rock (41, -3, 50, 45,  -5)\n",
      "45. heavy metal (30, -15, 63, 44,  -19)\n",
      "46. screamo (57, +11, 30, 44,  +13)\n",
      "47. synth pop (35, -12, 59, 42,  -16)\n",
      "48. mpb (40, -8, 51, 41,  -9)\n",
      "49. industrial metal (64, +15, 26, 40,  +14)\n",
      "50. psychedelic (62, +12, 27, 40,  +12)\n",
      "51. reggae (49, -2, 40, 36,  -3)\n",
      "52. power metal (50, -2, 38, 36,  -1)\n",
      "53. j-rock (51, -2, 38, 36,  -1)\n",
      "54. j-pop (44, -10, 47, 33,  -14)\n",
      "55. melodic hardcore (87, +32, 17, 32,  +15)\n",
      "56. doom metal (77, +21, 21, 32,  +11)\n",
      "57. idm (45, -12, 46, 31,  -15)\n",
      "58. k-pop (55, -3, 33, 29,  -4)\n",
      "59. trance (79, +20, 20, 27,  +6)\n",
      "60. indie pop (38, -22, 56, 27,  -29)\n",
      "61. funk (56, -5, 32, 27,  -5)\n",
      "62. shoegaze (58, -4, 30, 26,  -3)\n",
      "63. deathcore (54, -9, 33, 26,  -7)\n",
      "64. underground hip-hop (78, +14, 20, 25,  +5)\n",
      "65. power pop (61, -4, 28, 25,  -2)\n",
      "66. glam rock (85, +19, 18, 25,  +7)\n",
      "67. melodic death metal (53, -14, 34, 24,  -10)\n",
      "68. house (73, +5, 22, 24,  +2)\n",
      "69. britpop (48, -21, 44, 24,  -19)\n",
      "70. psychedelic rock (108, +38, 10, 24,  +13)\n",
      "71. electropop (81, +10, 20, 23,  +3)\n",
      "72. gothic metal (59, -13, 30, 23,  -7)\n",
      "73. world (66, -7, 25, 22,  -2)\n",
      "74. new age (82, +8, 19, 22,  +2)\n",
      "75. christian (65, -10, 25, 21,  -3)\n",
      "76. chillout (52, -24, 35, 21,  -13)\n",
      "77. ska (60, -17, 29, 21,  -8)\n",
      "78. darkwave (68, -10, 23, 20,  -3)\n",
      "79. christian rock (69, -10, 23, 20,  -2)\n",
      "80. nu metal (63, -17, 26, 20,  -6)\n",
      "81. lo-fi (75, -6, 21, 19,  -2)\n",
      "82. folk metal (70, -12, 22, 19,  -3)\n",
      "83. grunge (67, -16, 24, 18,  -5)\n",
      "84. grindcore (76, -8, 21, 18,  -3)\n",
      "85. technical death meta (104, +19, 11, 17,  +6)\n",
      "86. gothic (74, -12, 22, 17,  -5)\n",
      "87. glam metal (90, +3, 15, 17,  +1)\n",
      "88. disco (92, +4, 15, 15,  0)\n",
      "89. minimal (86, -3, 17, 15,  -2)\n",
      "90. symphonic metal (72, -18, 22, 15,  -7)\n",
      "91. rockabilly (96, +5, 13, 14,  +1)\n",
      "92. blues rock (71, -21, 22, 13,  -8)\n",
      "93. hardcore punk (84, -9, 18, 13,  -4)\n",
      "94. gothic rock (89, -5, 16, 13,  -3)\n",
      "95. contemporary country (95, 0, 14, 13,  -1)\n",
      "96. futurepop (88, -8, 17, 13,  -3)\n",
      "97. chanson (93, -4, 15, 13,  -2)\n",
      "98. bossa nova (83, -15, 18, 12,  -5)\n",
      "99. composer (112, +13, 10, 12,  +2)\n",
      "100. rapcore (110, +10, 10, 11,  +1)\n",
      "101. dancehall (107, +6, 11, 11,  0)\n",
      "102. psytrance (113, +11, 10, 11,  0)\n",
      "103. ethereal (142, +39, 6, 10,  +4)\n",
      "104. rock n roll (117, +13, 9, 10,  +1)\n",
      "105. drum and bass (101, -4, 12, 10,  -2)\n",
      "106. avant-garde (114, +8, 10, 10,  0)\n",
      "107. stoner (103, -4, 12, 9,  -2)\n",
      "108. latin pop (80, -28, 20, 9,  -10)\n",
      "109. easy listening (167, +58, 4, 9,  +5)\n",
      "110. psychobilly (118, +8, 9, 9,  0)\n",
      "111. gangsta rap (146, +35, 6, 9,  +2)\n",
      "112. dark ambient (129, +17, 8, 9,  0)\n",
      "113. anime (105, -8, 11, 9,  -2)\n",
      "114. samba (131, +17, 8, 8,  0)\n",
      "115. math rock (111, -4, 10, 8,  -1)\n",
      "116. horror punk (128, +12, 8, 8,  0)\n",
      "117. musical (106, -11, 11, 8,  -2)\n",
      "118. sludge metal (121, +3, 8, 8,  0)\n",
      "119. gospel (123, +4, 8, 8,  0)\n",
      "120. deathrock (133, +13, 8, 8,  0)\n",
      "121. brutal death metal (109, -12, 10, 8,  -2)\n",
      "122. viking metal (137, +15, 7, 7,  0)\n",
      "123. noise rock (122, -1, 8, 7,  -1)\n",
      "124. grime (153, +29, 5, 7,  +2)\n",
      "125. electroclash (97, -28, 13, 7,  -5)\n",
      "126. psybient (179, +53, 3, 7,  +4)\n",
      "127. garage rock (91, -36, 15, 7,  -8)\n",
      "128. dark electro (99, -29, 13, 7,  -5)\n",
      "129. soft rock (134, +5, 7, 7,  0)\n",
      "130. dubstep (115, -15, 9, 7,  -2)\n",
      "131. contemporary classic (126, -5, 8, 7,  -1)\n",
      "132. symphonic black meta (156, +24, 5, 7,  +2)\n",
      "133. industrial rock (127, -6, 8, 7,  -1)\n",
      "134. dub (124, -10, 8, 7,  -1)\n",
      "135. swing (119, -16, 9, 6,  -2)\n",
      "136. reggaeton (135, -1, 7, 6,  -1)\n",
      "137. opera (125, -12, 8, 6,  -2)\n",
      "138. lounge (141, +3, 6, 6,  0)\n",
      "139. dream pop (98, -41, 13, 6,  -6)\n",
      "140. southern rock (138, -2, 7, 6,  -1)\n",
      "141. mathcore (144, +3, 6, 6,  0)\n",
      "142. ethnic (149, +7, 5, 6,  0)\n",
      "143. drone (136, -7, 7, 6,  -1)\n",
      "144. celtic (139, -5, 7, 6,  -1)\n",
      "145. avant-garde metal (186, +41, 2, 6,  +3)\n",
      "146. disney (102, -44, 12, 5,  -7)\n",
      "147. country pop (181, +34, 2, 5,  +2)\n",
      "148. breakcore (148, 0, 6, 5,  0)\n",
      "149. post-metal (164, +15, 4, 5,  +1)\n",
      "150. techno (100, -50, 13, 4,  -8)\n",
      "151. noise (161, +10, 4, 4,  0)\n",
      "152. ragga (159, +7, 4, 4,  0)\n",
      "153. piano rock (132, -21, 8, 4,  -3)\n",
      "154. medieval (150, -4, 5, 4,  -1)\n",
      "155. groove metal (158, +3, 5, 4,  0)\n",
      "156. chicago blues (168, +12, 4, 4,  0)\n",
      "157. art rock (154, -3, 5, 4,  -1)\n",
      "158. alternative metal (140, -18, 7, 4,  -2)\n",
      "159. neofolk (152, -7, 5, 4,  -1)\n",
      "160. latin rock (171, +11, 3, 4,  0)\n",
      "161. 8-bit (151, -10, 5, 4,  -1)\n",
      "162. new rave (120, -42, 9, 3,  -5)\n",
      "163. minimalism (173, +10, 3, 3,  0)\n",
      "164. acid jazz (155, -9, 5, 3,  -1)\n",
      "165. trancecore (178, +13, 3, 3,  0)\n",
      "166. folk rock (147, -19, 6, 3,  -2)\n",
      "167. atmospheric black me (160, -7, 4, 3,  -1)\n",
      "168. indietronica (198, +30, 1, 3,  +1)\n",
      "169. folk punk (185, +16, 2, 3,  0)\n",
      "170. minimal techno (170, 0, 3, 3,  0)\n",
      "171. worship (163, -8, 4, 2,  -1)\n",
      "172. speed metal (116, -56, 9, 2,  -6)\n",
      "173. vocal trance (187, +14, 2, 2,  0)\n",
      "174. breakbeat (201, +27, 1, 2,  +1)\n",
      "175. space rock (174, -1, 3, 2,  -1)\n",
      "176. sleaze rock (182, +6, 2, 2,  0)\n",
      "177. roots reggae (180, +3, 2, 2,  0)\n",
      "178. nu jazz (204, +26, 1, 2,  +1)\n",
      "179. surf rock (188, +9, 2, 2,  0)\n",
      "180. orchestral (190, +10, 2, 2,  0)\n",
      "181. neoclassical (191, +10, 2, 2,  0)\n",
      "182. glitch (176, -6, 3, 2,  -1)\n",
      "183. bebop (169, -14, 4, 2,  -2)\n",
      "184. proto-punk (189, +5, 2, 1,  0)\n",
      "185. progressive trance (183, -2, 2, 1,  0)\n",
      "186. new romantic (157, -29, 5, 1,  -3)\n",
      "187. freak folk (194, +7, 2, 1,  0)\n",
      "188. twee pop (177, -11, 3, 1,  -1)\n",
      "189. electric blues (197, +8, 1, 1,  0)\n",
      "190. teen pop (172, -18, 3, 1,  -2)\n",
      "191. southern rap (145, -46, 6, 1,  -5)\n",
      "192. noise pop (196, +4, 1, 1,  0)\n",
      "193. melodic metalcore (192, -1, 2, 1,  -1)\n",
      "194. crunk (199, +5, 1, 1,  0)\n",
      "195. post-grunge (175, -20, 3, 1,  -2)\n",
      "196. pagan metal (184, -12, 2, 1,  -1)\n",
      "197. noisecore (195, -2, 1, 1,  0)\n",
      "198. neo soul (143, -55, 6, 1,  -5)\n",
      "199. electro-industrial (207, +8, 0, 1,  0)\n",
      "200. indie folk (165, -35, 4, 0,  -3)\n",
      "201. urban (193, -8, 2, 0,  -1)\n",
      "202. east coast rap (162, -40, 4, 0,  -4)\n",
      "203. alternative hip-hop (203, 0, 1, 0,  0)\n",
      "204. electro house (208, +4, 0, 0,  0)\n",
      "205. country rock (200, -5, 1, 0,  -1)\n",
      "206. contemporary christi (209, +3, 0, 0,  0)\n",
      "207. acoustic rock (202, -5, 1, 0,  -1)\n",
      "208. west coast rap (211, +3, 0, 0,  0)\n",
      "209. jazz hop (205, -4, 1, 0,  -1)\n",
      "210. classical crossover (206, -4, 0, 0,  0)\n",
      "211. christian metalcore (210, -1, 0, 0,  0)\n",
      "212. aggrotech (212, 0, 0, 0,  0)\n"
     ]
    }
   ],
   "source": [
    "positionsA = get_top_tags(G_pl_total_genres,  G_axelrod4_pl_total_genres, G_pl_total_counts, G_axelrod4_pl_total_counts, list_tags, True)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 157,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 46680 characters]\n",
      "text/plain": [
       "<Figure size 1080x720 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "print_positionsA = get_positions(positionsA)\n",
    "plt.figure(figsize=(15,10))\n",
    "plt.plot(print_positionsA)\n",
    "plt.title(\"Cambios de posición en el ranking \\n(resultado A)\")\n",
    "plt.ylabel(\"Posiciones\")\n",
    "plt.xlabel(\"Géneros musicales (número)\")\n",
    "plt.xticks(rotation='vertical')\n",
    "plt.savefig(\"toptagsA.jpg\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Prueba B"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 139,
   "metadata": {},
   "outputs": [],
   "source": [
    "#G = generate_graph(m, df_artists, 0)\n",
    "#G_axelrod1B = axelrod(G,200)\n",
    "#G_axelrod2B = axelrod(G_axelrod1B,2000)\n",
    "#G_axelrod3B = axelrod(G_axelrod2B,20000)\n",
    "#G_axelrod4B = axelrod(G_axelrod3B,200000)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "#G_pl_total_genres, G_pl_total_counts = get_complete_genres_counts(G, list_tags)\n",
    "#G_axelrod1B_pl_total_genres, G_axelrod1B_pl_total_counts = get_complete_genres_counts(G_axelrod1B, list_tags)\n",
    "#G_axelrod2B_pl_total_genres, G_axelrod2B_pl_total_counts = get_complete_genres_counts(G_axelrod2B, list_tags)\n",
    "#G_axelrod3B_pl_total_genres, G_axelrod3B_pl_total_counts = get_complete_genres_counts(G_axelrod3B, list_tags)\n",
    "#G_axelrod4B_pl_total_genres, G_axelrod4B_pl_total_counts = get_complete_genres_counts(G_axelrod4B, list_tags)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 162,
   "metadata": {},
   "outputs": [],
   "source": [
    "num_de_cambios = []\n",
    "G_pl_total_genres = ('rock', 'pop', 'indie', 'electronic', 'alternative', 'hip-hop', 'folk', 'classic rock', 'punk', 'indie rock', 'dance', 'alternative rock', 'rnb', 'rap', 'hard rock', 'experimental', 'ambient', 'new wave', 'metal', 'soul', 'hardcore', 'soundtrack', 'jazz', 'industrial', 'post-hardcore', 'metalcore', 'progressive rock', 'instrumental', 'country', 'pop punk', 'heavy metal', 'emo', 'pop rock', 'blues', 'post-punk', 'synth pop', 'death metal', 'trip-hop', 'indie pop', 'progressive metal', 'mpb', 'post-rock', 'ebm', 'black metal', 'j-pop', 'idm', 'thrash metal', 'classical', 'britpop', 'reggae', 'power metal', 'j-rock', 'chillout', 'melodic death metal', 'deathcore', 'k-pop', 'funk', 'screamo', 'shoegaze', 'gothic metal', 'ska', 'power pop', 'psychedelic', 'nu metal', 'industrial metal', 'christian', 'world', 'grunge', 'darkwave', 'christian rock', 'folk metal', 'blues rock', 'symphonic metal', 'house', 'gothic', 'lo-fi', 'grindcore', 'doom metal', 'underground hip-hop', 'trance', 'latin pop', 'electropop', 'new age', 'bossa nova', 'hardcore punk', 'glam rock', 'minimal', 'melodic hardcore', 'futurepop', 'gothic rock', 'glam metal', 'garage rock', 'disco', 'chanson', 'alt-country', 'contemporary country', 'rockabilly', 'electroclash', 'dream pop', 'dark electro', 'techno', 'drum and bass', 'disney', 'stoner', 'technical death metal', 'anime', 'musical', 'dancehall', 'psychedelic rock', 'brutal death metal', 'rapcore', 'math rock', 'composer', 'psytrance', 'avant-garde', 'dubstep', 'speed metal', 'rock n roll', 'psychobilly', 'swing', 'new rave', 'sludge metal', 'noise rock', 'gospel', 'dub', 'opera', 'contemporary classical', 'industrial rock', 'horror punk', 'dark ambient', 'ska-punk', 'samba', 'piano rock', 'deathrock', 'soft rock', 'reggaeton', 'drone', 'viking metal', 'southern rock', 'celtic', 'alternative metal', 'lounge', 'ethereal', 'neo soul', 'mathcore', 'southern rap', 'gangsta rap', 'folk rock', 'breakcore', 'ethnic', 'medieval', '8-bit', 'neofolk', 'grime', 'art rock', 'acid jazz', 'symphonic black metal', 'new romantic', 'groove metal', 'ragga', 'atmospheric black metal', 'noise', 'east coast rap', 'worship', 'post-metal', 'indie folk', 'eurodance', 'easy listening', 'chicago blues', 'bebop', 'minimal techno', 'latin rock', 'teen pop', 'minimalism', 'space rock', 'post-grunge', 'glitch', 'twee pop', 'trancecore', 'psybient', 'roots reggae', 'country pop', 'sleaze rock', 'progressive trance', 'pagan metal', 'folk punk', 'avant-garde metal', 'vocal trance', 'surf rock', 'proto-punk', 'orchestral', 'neoclassical', 'melodic metalcore', 'urban', 'freak folk', 'noisecore', 'noise pop', 'electric blues', 'indietronica', 'crunk', 'country rock', 'breakbeat', 'acoustic rock', 'alternative hip-hop', 'nu jazz', 'jazz hop', 'classical crossover', 'electro-industrial', 'electro house', 'contemporary christian', 'christian metalcore', 'west coast rap', 'aggrotech')\n",
    "G_pl_total_counts = (626.0, 603.75, 486.75, 382.0, 263.0, 230.75, 150.0, 143.75, 136.25, 127.25, 124.25, 123.0, 121.0, 116.5, 112.75, 109.25, 108.25, 103.75, 98.5, 98.0, 91.75, 91.25, 87.0, 84.75, 83.75, 80.5, 74.25, 72.5, 64.25, 63.25, 63.25, 62.25, 62.0, 61.75, 59.75, 59.0, 59.0, 57.0, 56.5, 54.25, 51.25, 50.0, 48.5, 48.5, 47.5, 46.75, 45.25, 44.5, 44.0, 40.0, 38.5, 38.25, 35.0, 34.75, 33.75, 33.5, 32.25, 30.5, 30.25, 30.25, 29.25, 28.0, 27.75, 26.75, 26.0, 25.25, 25.0, 24.0, 23.25, 23.0, 22.5, 22.5, 22.25, 22.25, 22.25, 21.5, 21.0, 21.0, 20.75, 20.75, 20.25, 20.25, 19.75, 18.5, 18.25, 18.0, 17.75, 17.0, 17.0, 16.5, 15.5, 15.5, 15.0, 15.0, 15.0, 14.5, 13.5, 13.25, 13.25, 13.25, 13.0, 12.5, 12.5, 12.25, 11.75, 11.75, 11.25, 11.0, 10.75, 10.75, 10.5, 10.5, 10.5, 10.25, 10.25, 9.5, 9.25, 9.25, 9.25, 9.0, 9.0, 8.75, 8.75, 8.75, 8.75, 8.5, 8.5, 8.25, 8.25, 8.25, 8.0, 8.0, 8.0, 8.0, 7.75, 7.75, 7.75, 7.5, 7.25, 7.25, 7.0, 6.75, 6.75, 6.5, 6.5, 6.25, 6.25, 6.0, 6.0, 5.75, 5.5, 5.5, 5.25, 5.25, 5.25, 5.25, 5.0, 5.0, 5.0, 4.75, 4.75, 4.5, 4.5, 4.25, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 3.75, 3.75, 3.5, 3.5, 3.25, 3.25, 3.25, 3.0, 3.0, 3.0, 2.75, 2.75, 2.5, 2.5, 2.5, 2.5, 2.5, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.0, 2.0, 1.75, 1.75, 1.75, 1.5, 1.5, 1.5, 1.5, 1.5, 1.25, 1.0, 1.0, 0.75, 0.25, 0.25, 0.25, 0.25, 0.0, 0.0)\n",
    "G_axelrod1B_pl_total_genres = ('rock', 'pop', 'indie', 'electronic', 'alternative', 'hip-hop', 'folk', 'classic rock', 'punk', 'indie rock', 'dance', 'alternative rock', 'rnb', 'rap', 'hard rock', 'experimental', 'ambient', 'new wave', 'metal', 'soul', 'hardcore', 'soundtrack', 'jazz', 'industrial', 'post-hardcore', 'metalcore', 'progressive rock', 'instrumental', 'country', 'pop punk', 'heavy metal', 'emo', 'blues', 'pop rock', 'post-punk', 'synth pop', 'death metal', 'trip-hop', 'indie pop', 'progressive metal', 'mpb', 'post-rock', 'ebm', 'black metal', 'j-pop', 'idm', 'thrash metal', 'classical', 'britpop', 'reggae', 'power metal', 'j-rock', 'chillout', 'melodic death metal', 'deathcore', 'k-pop', 'funk', 'shoegaze', 'gothic metal', 'screamo', 'ska', 'psychedelic', 'power pop', 'nu metal', 'industrial metal', 'christian', 'world', 'grunge', 'darkwave', 'christian rock', 'gothic', 'folk metal', 'blues rock', 'symphonic metal', 'house', 'lo-fi', 'grindcore', 'doom metal', 'underground hip-hop', 'trance', 'latin pop', 'electropop', 'new age', 'hardcore punk', 'bossa nova', 'minimal', 'glam rock', 'futurepop', 'melodic hardcore', 'gothic rock', 'glam metal', 'garage rock', 'disco', 'chanson', 'alt-country', 'contemporary country', 'rockabilly', 'dream pop', 'dark electro', 'techno', 'electroclash', 'drum and bass', 'stoner', 'disney', 'technical death metal', 'anime', 'musical', 'dancehall', 'psychedelic rock', 'brutal death metal', 'rapcore', 'math rock', 'composer', 'psytrance', 'avant-garde', 'dubstep', 'speed metal', 'psychobilly', 'swing', 'sludge metal', 'noise rock', 'new rave', 'gospel', 'dub', 'opera', 'contemporary classical', 'rock n roll', 'industrial rock', 'horror punk', 'dark ambient', 'ska-punk', 'samba', 'piano rock', 'deathrock', 'soft rock', 'reggaeton', 'drone', 'viking metal', 'southern rock', 'celtic', 'alternative metal', 'lounge', 'ethereal', 'neo soul', 'mathcore', 'southern rap', 'gangsta rap', 'folk rock', 'breakcore', 'ethnic', 'medieval', '8-bit', 'neofolk', 'grime', 'acid jazz', 'new romantic', 'groove metal', 'ragga', 'atmospheric black metal', 'art rock', 'symphonic black metal', 'noise', 'east coast rap', 'worship', 'post-metal', 'indie folk', 'easy listening', 'chicago blues', 'bebop', 'minimal techno', 'latin rock', 'eurodance', 'teen pop', 'minimalism', 'space rock', 'post-grunge', 'glitch', 'twee pop', 'trancecore', 'psybient', 'roots reggae', 'country pop', 'sleaze rock', 'progressive trance', 'pagan metal', 'folk punk', 'avant-garde metal', 'acoustic rock', 'vocal trance', 'surf rock', 'proto-punk', 'orchestral', 'neoclassical', 'melodic metalcore', 'urban', 'freak folk', 'noisecore', 'noise pop', 'electric blues', 'indietronica', 'crunk', 'country rock', 'breakbeat', 'alternative hip-hop', 'nu jazz', 'jazz hop', 'classical crossover', 'electro-industrial', 'electro house', 'contemporary christian', 'christian metalcore', 'west coast rap', 'aggrotech') \n",
    "G_axelrod1B_pl_total_counts = (625.75, 604.0, 486.5, 382.75, 265.25, 230.25, 150.0, 144.5, 137.25, 129.0, 124.0, 124.0, 121.25, 116.5, 112.5, 109.0, 108.25, 103.75, 99.0, 98.25, 91.75, 90.75, 87.0, 84.75, 83.75, 80.5, 74.25, 72.5, 64.25, 63.25, 63.0, 62.25, 61.75, 61.5, 60.0, 59.25, 59.0, 57.25, 56.5, 54.25, 51.25, 50.0, 48.5, 48.0, 47.5, 46.75, 45.25, 44.5, 41.75, 40.0, 38.5, 38.25, 35.0, 34.75, 33.75, 33.5, 32.25, 30.25, 30.25, 30.0, 29.25, 28.0, 28.0, 26.25, 26.0, 25.25, 25.0, 24.0, 23.25, 22.75, 22.5, 22.5, 22.5, 22.25, 22.25, 21.5, 21.0, 21.0, 20.75, 20.75, 20.25, 20.0, 19.75, 18.75, 18.5, 17.75, 17.5, 17.0, 16.5, 16.5, 15.5, 15.5, 15.0, 15.0, 15.0, 14.5, 13.5, 13.25, 13.25, 13.0, 12.75, 12.5, 12.25, 12.25, 11.75, 11.75, 11.25, 11.0, 10.75, 10.75, 10.5, 10.5, 10.5, 10.25, 10.25, 9.5, 9.25, 9.25, 9.0, 8.75, 8.75, 8.75, 8.75, 8.75, 8.5, 8.5, 8.25, 8.25, 8.25, 8.25, 8.0, 8.0, 8.0, 8.0, 7.75, 7.75, 7.75, 7.5, 7.25, 7.25, 7.0, 6.75, 6.75, 6.5, 6.5, 6.25, 6.25, 6.0, 6.0, 5.75, 5.5, 5.5, 5.25, 5.25, 5.25, 5.0, 5.0, 4.75, 4.75, 4.75, 4.5, 4.5, 4.5, 4.25, 4.0, 4.0, 4.0, 4.0, 4.0, 3.75, 3.75, 3.75, 3.5, 3.5, 3.25, 3.25, 3.25, 3.0, 3.0, 3.0, 2.75, 2.75, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.0, 2.0, 1.75, 1.75, 1.75, 1.5, 1.5, 1.5, 1.5, 1.25, 1.0, 1.0, 0.75, 0.25, 0.25, 0.25, 0.25, 0.0, 0.0)\n",
    "G_axelrod2B_pl_total_genres = ('rock', 'pop', 'indie', 'electronic', 'alternative', 'hip-hop', 'folk', 'classic rock', 'punk', 'alternative rock', 'indie rock', 'rnb', 'dance', 'rap', 'hard rock', 'ambient', 'experimental', 'new wave', 'metal', 'soul', 'hardcore', 'soundtrack', 'jazz', 'industrial', 'post-hardcore', 'metalcore', 'progressive rock', 'instrumental', 'country', 'heavy metal', 'blues', 'emo', 'pop punk', 'pop rock', 'post-punk', 'death metal', 'trip-hop', 'synth pop', 'indie pop', 'progressive metal', 'mpb', 'post-rock', 'ebm', 'black metal', 'j-pop', 'idm', 'thrash metal', 'classical', 'britpop', 'reggae', 'power metal', 'j-rock', 'melodic death metal', 'chillout', 'deathcore', 'k-pop', 'funk', 'screamo', 'shoegaze', 'gothic metal', 'ska', 'power pop', 'nu metal', 'psychedelic', 'industrial metal', 'christian', 'world', 'darkwave', 'christian rock', 'house', 'gothic', 'folk metal', 'blues rock', 'symphonic metal', 'grunge', 'lo-fi', 'grindcore', 'doom metal', 'underground hip-hop', 'trance', 'electropop', 'new age', 'latin pop', 'minimal', 'hardcore punk', 'bossa nova', 'melodic hardcore', 'gothic rock', 'glam rock', 'futurepop', 'glam metal', 'disco', 'chanson', 'contemporary country', 'garage rock', 'dream pop', 'rockabilly', 'alt-country', 'techno', 'electroclash', 'dark electro', 'stoner', 'drum and bass', 'disney', 'technical death metal', 'anime', 'musical', 'psychedelic rock', 'dancehall', 'composer', 'brutal death metal', 'psytrance', 'avant-garde', 'rapcore', 'math rock', 'dubstep', 'speed metal', 'rock n roll', 'psychobilly', 'swing', 'sludge metal', 'noise rock', 'new rave', 'gospel', 'dub', 'horror punk', 'deathrock', 'soft rock', 'opera', 'contemporary classical', 'ska-punk', 'samba', 'industrial rock', 'drone', 'dark ambient', 'reggaeton', 'viking metal', 'celtic', 'southern rap', 'alternative metal', 'southern rock', 'piano rock', 'ethereal', 'mathcore', 'lounge', 'neo soul', 'folk rock', 'gangsta rap', 'breakcore', 'ethnic', '8-bit', 'medieval', 'neofolk', 'grime', 'art rock', 'acid jazz', 'symphonic black metal', 'indie folk', 'groove metal', 'ragga', 'new romantic', 'atmospheric black metal', 'noise', 'worship', 'post-metal', 'east coast rap', 'chicago blues', 'bebop', 'minimal techno', 'eurodance', 'easy listening', 'trancecore', 'teen pop', 'minimalism', 'space rock', 'post-grunge', 'latin rock', 'glitch', 'twee pop', 'psybient', 'roots reggae', 'proto-punk', 'country pop', 'progressive trance', 'pagan metal', 'folk punk', 'avant-garde metal', 'vocal trance', 'surf rock', 'orchestral', 'neoclassical', 'melodic metalcore', 'freak folk', 'urban', 'sleaze rock', 'noisecore', 'noise pop', 'electric blues', 'country rock', 'indietronica', 'breakbeat', 'acoustic rock', 'crunk', 'nu jazz', 'jazz hop', 'alternative hip-hop', 'classical crossover', 'electro-industrial', 'electro house', 'contemporary christian', 'christian metalcore', 'west coast rap', 'aggrotech')\n",
    "G_axelrod2B_pl_total_counts = (630.5, 607.25, 485.0, 381.0, 268.5, 230.25, 148.5, 144.5, 138.0, 125.0, 124.75, 123.25, 118.5, 116.75, 111.25, 110.0, 109.0, 104.5, 97.5, 95.75, 91.25, 90.75, 88.5, 84.5, 83.75, 81.25, 73.25, 72.75, 65.25, 63.75, 63.0, 62.5, 62.25, 61.5, 60.75, 59.25, 58.0, 57.5, 55.75, 55.25, 51.5, 50.0, 49.75, 48.5, 47.5, 47.0, 44.75, 44.25, 43.25, 40.0, 39.5, 39.25, 34.75, 34.25, 33.75, 33.5, 31.75, 30.5, 30.25, 30.0, 28.5, 27.5, 27.25, 26.75, 25.75, 25.5, 25.0, 23.25, 23.0, 22.5, 22.5, 22.5, 22.0, 21.75, 21.75, 21.0, 21.0, 21.0, 20.75, 20.75, 20.0, 19.75, 19.5, 18.25, 18.25, 18.25, 17.5, 17.5, 17.5, 17.0, 15.5, 15.25, 15.25, 15.0, 14.5, 13.75, 13.5, 13.5, 13.25, 13.25, 13.25, 12.75, 12.5, 12.25, 11.75, 11.75, 11.5, 10.75, 10.75, 10.75, 10.75, 10.25, 10.25, 10.0, 9.5, 9.5, 9.25, 9.25, 9.25, 9.0, 8.75, 8.75, 8.75, 8.75, 8.75, 8.5, 8.5, 8.25, 8.25, 8.25, 8.0, 8.0, 8.0, 8.0, 8.0, 7.75, 7.5, 7.25, 7.0, 7.0, 6.75, 6.75, 6.75, 6.5, 6.5, 6.25, 6.25, 6.0, 6.0, 5.75, 5.75, 5.5, 5.25, 5.25, 5.25, 5.25, 5.0, 5.0, 5.0, 4.75, 4.75, 4.75, 4.5, 4.25, 4.0, 4.0, 4.0, 4.0, 3.75, 3.75, 3.75, 3.5, 3.5, 3.5, 3.25, 3.25, 3.25, 3.25, 3.0, 3.0, 2.75, 2.75, 2.75, 2.5, 2.5, 2.5, 2.5, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.0, 2.0, 1.75, 1.75, 1.75, 1.75, 1.5, 1.5, 1.5, 1.25, 1.0, 1.0, 1.0, 0.75, 0.25, 0.25, 0.25, 0.25, 0.0, 0.0)\n",
    "G_axelrod3B_pl_total_genres = ('pop', 'rock', 'indie', 'electronic', 'alternative', 'hip-hop', 'classic rock', 'folk', 'indie rock', 'punk', 'pop rock', 'dance', 'rnb', 'alternative rock', 'experimental', 'rap', 'new wave', 'ambient', 'hard rock', 'jazz', 'metal', 'soundtrack', 'soul', 'metalcore', 'industrial', 'hardcore', 'post-hardcore', 'instrumental', 'progressive rock', 'emo', 'blues', 'pop punk', 'country', 'progressive metal', 'post-punk', 'trip-hop', 'heavy metal', 'death metal', 'indie pop', 'mpb', 'synth pop', 'ebm', 'black metal', 'classical', 'post-rock', 'j-pop', 'thrash metal', 'idm', 'reggae', 'j-rock', 'britpop', 'power metal', 'melodic death metal', 'chillout', 'deathcore', 'industrial metal', 'k-pop', 'gothic metal', 'funk', 'psychedelic', 'screamo', 'shoegaze', 'power pop', 'christian', 'ska', 'electropop', 'darkwave', 'blues rock', 'nu metal', 'world', 'underground hip-hop', 'samba', 'house', 'folk metal', 'doom metal', 'christian rock', 'symphonic metal', 'lo-fi', 'grindcore', 'new age', 'trance', 'grunge', 'gothic', 'latin pop', 'hardcore punk', 'glam rock', 'futurepop', 'bossa nova', 'minimal', 'glam metal', 'garage rock', 'melodic hardcore', 'disney', 'chanson', 'contemporary country', 'alt-country', 'disco', 'psychedelic rock', 'gothic rock', 'rockabilly', 'electroclash', 'dub', 'dark electro', 'stoner', 'drum and bass', 'technical death metal', 'dancehall', 'brutal death metal', 'anime', 'dream pop', 'rock n roll', 'rapcore', 'techno', 'psytrance', 'math rock', 'composer', 'dubstep', 'avant-garde', 'musical', 'psychobilly', 'noise rock', 'swing', 'southern rap', 'viking metal', 'gospel', 'contemporary classical', 'sludge metal', 'opera', 'deathrock', 'alternative metal', 'speed metal', 'horror punk', 'dark ambient', 'ska-punk', 'piano rock', 'mathcore', 'drone', 'reggaeton', 'southern rock', 'industrial rock', 'ethereal', 'celtic', 'new romantic', 'new rave', 'neo soul', 'lounge', 'grime', 'ethnic', 'soft rock', 'noise', 'neofolk', 'medieval', 'folk rock', 'acid jazz', 'minimal techno', '8-bit', 'groove metal', 'country pop', 'ragga', 'post-grunge', 'chicago blues', 'atmospheric black metal', 'art rock', 'worship', 'eurodance', 'east coast rap', 'post-metal', 'gangsta rap', 'breakcore', 'symphonic black metal', 'indie folk', 'glitch', 'trancecore', 'bebop', 'minimalism', 'latin rock', 'easy listening', 'space rock', 'psybient', 'vocal trance', 'twee pop', 'avant-garde metal', 'teen pop', 'roots reggae', 'progressive trance', 'pagan metal', 'electric blues', 'surf rock', 'orchestral', 'folk punk', 'sleaze rock', 'neoclassical', 'indietronica', 'urban', 'proto-punk', 'noisecore', 'freak folk', 'melodic metalcore', 'country rock', 'breakbeat', 'noise pop', 'crunk', 'acoustic rock', 'christian metalcore', 'nu jazz', 'classical crossover', 'alternative hip-hop', 'jazz hop', 'electro house', 'contemporary christian', 'west coast rap', 'electro-industrial', 'aggrotech') \n",
    "G_axelrod3B_pl_total_counts = (610.5, 603.25, 477.5, 374.5, 301.5, 229.75, 153.0, 145.25, 130.25, 126.75, 120.5, 116.25, 115.0, 114.0, 113.75, 111.5, 109.5, 107.5, 105.0, 96.25, 95.0, 89.0, 86.75, 86.25, 82.5, 82.0, 81.5, 73.0, 70.75, 67.5, 67.5, 63.75, 63.5, 60.75, 60.0, 59.75, 57.75, 57.5, 54.5, 54.25, 52.0, 50.25, 50.25, 45.5, 44.5, 44.5, 44.25, 42.0, 40.5, 40.5, 39.75, 37.5, 37.0, 35.0, 32.25, 31.0, 30.0, 30.0, 29.5, 29.25, 28.75, 28.0, 27.5, 27.25, 27.0, 26.5, 25.75, 25.75, 25.5, 24.5, 23.25, 23.0, 22.75, 22.5, 21.75, 21.75, 21.5, 21.25, 21.0, 20.75, 20.5, 20.0, 20.0, 19.5, 19.5, 19.25, 18.0, 18.0, 17.5, 16.75, 16.25, 16.0, 15.75, 15.0, 14.5, 14.5, 13.75, 13.5, 13.25, 13.0, 12.75, 12.75, 12.75, 12.0, 11.25, 11.0, 11.0, 11.0, 11.0, 10.75, 10.5, 10.5, 10.25, 10.25, 10.0, 10.0, 9.75, 9.75, 9.5, 9.25, 9.25, 9.0, 9.0, 8.5, 8.5, 8.5, 8.25, 8.25, 8.25, 8.25, 8.0, 8.0, 8.0, 7.75, 7.5, 7.5, 7.25, 7.0, 6.75, 6.75, 6.75, 6.75, 6.25, 6.25, 6.25, 6.25, 5.75, 5.75, 5.5, 5.5, 5.5, 5.5, 5.5, 5.25, 5.0, 5.0, 4.75, 4.75, 4.5, 4.5, 4.5, 4.5, 4.5, 4.25, 4.25, 4.25, 4.0, 4.0, 4.0, 3.75, 3.75, 3.75, 3.5, 3.5, 3.25, 3.25, 3.25, 3.0, 3.0, 2.75, 2.75, 2.75, 2.5, 2.5, 2.5, 2.5, 2.5, 2.25, 2.25, 2.25, 2.0, 2.0, 2.0, 1.75, 1.75, 1.75, 1.75, 1.5, 1.5, 1.5, 1.25, 1.25, 1.25, 1.0, 0.75, 0.75, 0.75, 0.5, 0.25, 0.25, 0.0, 0.0, 0.0)\n",
    "G_axelrod4B_pl_total_genres = ('alternative', 'indie', 'pop rock', 'pop', 'rock', 'electronic', 'new wave', 'hip-hop', 'trip-hop', 'indie rock', 'classic rock', 'jazz', 'progressive metal', 'ambient', 'ska-punk', 'punk', 'experimental', 'folk', 'rap', 'metalcore', 'alt-country', 'hard rock', 'blues', 'hardcore', 'industrial', 'soundtrack', 'metal', 'eurodance', 'alternative rock', 'instrumental', 'ebm', 'soul', 'emo', 'rnb', 'black metal', 'post-punk', 'dance', 'post-hardcore', 'country', 'progressive rock', 'death metal', 'pop punk', 'classical', 'thrash metal', 'post-rock', 'heavy metal', 'screamo', 'synth pop', 'mpb', 'industrial metal', 'psychedelic', 'reggae', 'power metal', 'j-rock', 'j-pop', 'melodic hardcore', 'doom metal', 'idm', 'k-pop', 'trance', 'indie pop', 'funk', 'shoegaze', 'deathcore', 'underground hip-hop', 'power pop', 'glam rock', 'melodic death metal', 'house', 'britpop', 'psychedelic rock', 'electropop', 'gothic metal', 'world', 'new age', 'christian', 'chillout', 'ska', 'darkwave', 'christian rock', 'nu metal', 'lo-fi', 'folk metal', 'grunge', 'grindcore', 'technical death metal', 'gothic', 'glam metal', 'disco', 'minimal', 'symphonic metal', 'rockabilly', 'blues rock', 'hardcore punk', 'gothic rock', 'contemporary country', 'futurepop', 'chanson', 'bossa nova', 'composer', 'rapcore', 'dancehall', 'psytrance', 'ethereal', 'rock n roll', 'drum and bass', 'avant-garde', 'stoner', 'latin pop', 'easy listening', 'psychobilly', 'gangsta rap', 'dark ambient', 'anime', 'samba', 'math rock', 'horror punk', 'musical', 'sludge metal', 'gospel', 'deathrock', 'brutal death metal', 'viking metal', 'noise rock', 'grime', 'electroclash', 'psybient', 'garage rock', 'dark electro', 'soft rock', 'dubstep', 'contemporary classical', 'symphonic black metal', 'industrial rock', 'dub', 'swing', 'reggaeton', 'opera', 'lounge', 'dream pop', 'southern rock', 'mathcore', 'ethnic', 'drone', 'celtic', 'avant-garde metal', 'disney', 'country pop', 'breakcore', 'post-metal', 'techno', 'noise', 'ragga', 'piano rock', 'medieval', 'groove metal', 'chicago blues', 'art rock', 'alternative metal', 'neofolk', 'latin rock', '8-bit', 'new rave', 'minimalism', 'acid jazz', 'trancecore', 'folk rock', 'atmospheric black metal', 'indietronica', 'folk punk', 'minimal techno', 'worship', 'speed metal', 'vocal trance', 'breakbeat', 'space rock', 'sleaze rock', 'roots reggae', 'nu jazz', 'surf rock', 'orchestral', 'neoclassical', 'glitch', 'bebop', 'proto-punk', 'progressive trance', 'new romantic', 'freak folk', 'twee pop', 'electric blues', 'teen pop', 'southern rap', 'noise pop', 'melodic metalcore', 'crunk', 'post-grunge', 'pagan metal', 'noisecore', 'neo soul', 'electro-industrial', 'indie folk', 'urban', 'east coast rap', 'alternative hip-hop', 'electro house', 'country rock', 'contemporary christian', 'acoustic rock', 'west coast rap', 'jazz hop', 'classical crossover', 'christian metalcore', 'aggrotech') \n",
    "G_axelrod4B_pl_total_counts = (473.0, 428.0, 423.5, 410.5, 380.25, 341.0, 274.5, 232.0, 173.25, 162.25, 144.75, 134.0, 132.0, 117.75, 117.5, 108.5, 103.5, 101.75, 91.75, 84.5, 82.75, 80.5, 78.0, 76.0, 74.75, 74.5, 74.5, 73.5, 69.75, 68.0, 66.5, 64.75, 63.75, 62.75, 62.5, 61.0, 59.5, 58.5, 58.25, 56.5, 55.0, 54.5, 46.5, 46.0, 45.0, 44.25, 44.0, 42.75, 41.5, 40.75, 40.5, 36.75, 36.75, 36.75, 33.5, 32.25, 32.0, 31.5, 29.0, 27.5, 27.5, 27.0, 26.75, 26.5, 25.75, 25.25, 25.0, 24.5, 24.25, 24.25, 24.0, 23.5, 23.25, 22.5, 22.25, 21.75, 21.75, 21.0, 20.25, 20.25, 20.0, 19.25, 19.0, 18.5, 18.0, 17.75, 17.0, 17.0, 15.75, 15.25, 15.0, 14.75, 13.75, 13.5, 13.5, 13.5, 13.25, 13.0, 12.75, 12.5, 11.75, 11.5, 11.0, 10.75, 10.5, 10.5, 10.5, 9.75, 9.5, 9.5, 9.0, 9.0, 9.0, 9.0, 8.75, 8.75, 8.75, 8.5, 8.25, 8.25, 8.0, 8.0, 7.75, 7.75, 7.75, 7.75, 7.5, 7.5, 7.5, 7.25, 7.25, 7.25, 7.0, 7.0, 7.0, 6.75, 6.75, 6.5, 6.5, 6.5, 6.25, 6.25, 6.25, 6.25, 6.0, 6.0, 5.5, 5.5, 5.25, 5.0, 4.75, 4.75, 4.5, 4.5, 4.5, 4.5, 4.25, 4.25, 4.25, 4.0, 4.0, 4.0, 3.75, 3.75, 3.75, 3.5, 3.5, 3.5, 3.25, 3.25, 3.0, 2.75, 2.75, 2.5, 2.5, 2.25, 2.25, 2.25, 2.25, 2.0, 2.0, 2.0, 2.0, 2.0, 1.75, 1.75, 1.75, 1.75, 1.5, 1.5, 1.25, 1.25, 1.25, 1.25, 1.25, 1.0, 1.0, 1.0, 1.0, 1.0, 0.75, 0.5, 0.5, 0.5, 0.25, 0.25, 0.25, 0.25, 0.0, 0.0, 0.0, 0.0, 0.0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 165,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 87740 characters]\n",
      "text/plain": [
       "<Figure size 1080x720 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "font = {'family' : 'serif',\n",
    "        'size'   : 22}\n",
    "plt.rc('font', **font)\n",
    "fig, ax = plt.subplots(1, figsize=(15,10))\n",
    "ax.plot(G_pl_total_counts, color=\"black\", linewidth=10, label = \"0 (original)\")\n",
    "ax.plot(G_axelrod1B_pl_total_counts, color = \"b\", linewidth = 6, linestyle = '-', label = \"200\")\n",
    "ax.plot(G_axelrod2B_pl_total_counts, color = \"dodgerblue\", linewidth = 6, linestyle = '-.', label = \"2000\")\n",
    "ax.plot(G_axelrod3B_pl_total_counts, color= \"lightskyblue\", linewidth = 6 ,linestyle = ':', label = \"20000\")\n",
    "ax.plot(G_axelrod4B_pl_total_counts, color = \"magenta\", linewidth=4, linestyle = '-', label = \"200000\")\n",
    "ax.legend(loc=\"upper right\", title = \"Criterio de parada\", prop ={'size': 20})\n",
    "plt.title(\"Apariciones de los géneros musicales \\n (resultado B)\")\n",
    "plt.ylabel(\"Número de apariciones\")\n",
    "plt.xlabel(\"Géneros musicales (número)\")\n",
    "plt.xticks(rotation='vertical')\n",
    "plt.savefig(\"axelrodB._all_sorted.png\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 166,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0. alternative (4, +4, 263, 473,  +210)\n",
      "1. indie (2, +1, 486, 428,  -58)\n",
      "2. pop rock (32, +30, 62, 423,  +361)\n",
      "3. pop (1, -2, 603, 410,  -193)\n",
      "4. rock (0, -4, 626, 380,  -245)\n",
      "5. electronic (3, -2, 382, 341,  -41)\n",
      "6. new wave (17, +11, 103, 274,  +170)\n",
      "7. hip-hop (5, -2, 230, 232,  +1)\n",
      "8. trip-hop (37, +29, 57, 173,  +116)\n",
      "9. indie rock (9, 0, 127, 162,  +35)\n",
      "10. classic rock (7, -3, 143, 144,  +1)\n",
      "11. jazz (22, +11, 87, 134,  +47)\n",
      "12. progressive metal (39, +27, 54, 132,  +77)\n",
      "13. ambient (16, +3, 108, 117,  +9)\n",
      "14. ska-punk (130, +116, 8, 117,  +109)\n",
      "15. punk (8, -7, 136, 108,  -27)\n",
      "16. experimental (15, -1, 109, 103,  -5)\n",
      "17. folk (6, -11, 150, 101,  -48)\n",
      "18. rap (13, -5, 116, 91,  -24)\n",
      "19. metalcore (25, +6, 80, 84,  +4)\n",
      "20. alt-country (94, +74, 15, 82,  +67)\n",
      "21. hard rock (14, -7, 112, 80,  -32)\n",
      "22. blues (33, +11, 61, 78,  +16)\n",
      "23. hardcore (20, -3, 91, 76,  -15)\n",
      "24. industrial (23, -1, 84, 74,  -10)\n",
      "25. soundtrack (21, -4, 91, 74,  -16)\n",
      "26. metal (18, -8, 98, 74,  -24)\n",
      "27. eurodance (166, +139, 4, 73,  +69)\n",
      "28. alternative rock (11, -17, 123, 69,  -53)\n",
      "29. instrumental (27, -2, 72, 68,  -4)\n",
      "30. ebm (42, +12, 48, 66,  +18)\n",
      "31. soul (19, -12, 98, 64,  -33)\n",
      "32. emo (31, -1, 62, 63,  +1)\n",
      "33. rnb (12, -21, 121, 62,  -58)\n",
      "34. black metal (43, +9, 48, 62,  +14)\n",
      "35. post-punk (34, -1, 59, 61,  +1)\n",
      "36. dance (10, -26, 124, 59,  -64)\n",
      "37. post-hardcore (24, -13, 83, 58,  -25)\n",
      "38. country (28, -10, 64, 58,  -6)\n",
      "39. progressive rock (26, -13, 74, 56,  -17)\n",
      "40. death metal (36, -4, 59, 55,  -4)\n",
      "41. pop punk (29, -12, 63, 54,  -8)\n",
      "42. classical (47, +5, 44, 46,  +2)\n",
      "43. thrash metal (46, +3, 45, 46,  0)\n",
      "44. post-rock (41, -3, 50, 45,  -5)\n",
      "45. heavy metal (30, -15, 63, 44,  -19)\n",
      "46. screamo (57, +11, 30, 44,  +13)\n",
      "47. synth pop (35, -12, 59, 42,  -16)\n",
      "48. mpb (40, -8, 51, 41,  -9)\n",
      "49. industrial metal (64, +15, 26, 40,  +14)\n",
      "50. psychedelic (62, +12, 27, 40,  +12)\n",
      "51. reggae (49, -2, 40, 36,  -3)\n",
      "52. power metal (50, -2, 38, 36,  -1)\n",
      "53. j-rock (51, -2, 38, 36,  -1)\n",
      "54. j-pop (44, -10, 47, 33,  -14)\n",
      "55. melodic hardcore (87, +32, 17, 32,  +15)\n",
      "56. doom metal (77, +21, 21, 32,  +11)\n",
      "57. idm (45, -12, 46, 31,  -15)\n",
      "58. k-pop (55, -3, 33, 29,  -4)\n",
      "59. trance (79, +20, 20, 27,  +6)\n",
      "60. indie pop (38, -22, 56, 27,  -29)\n",
      "61. funk (56, -5, 32, 27,  -5)\n",
      "62. shoegaze (58, -4, 30, 26,  -3)\n",
      "63. deathcore (54, -9, 33, 26,  -7)\n",
      "64. underground hip-hop (78, +14, 20, 25,  +5)\n",
      "65. power pop (61, -4, 28, 25,  -2)\n",
      "66. glam rock (85, +19, 18, 25,  +7)\n",
      "67. melodic death metal (53, -14, 34, 24,  -10)\n",
      "68. house (73, +5, 22, 24,  +2)\n",
      "69. britpop (48, -21, 44, 24,  -19)\n",
      "70. psychedelic rock (108, +38, 10, 24,  +13)\n",
      "71. electropop (81, +10, 20, 23,  +3)\n",
      "72. gothic metal (59, -13, 30, 23,  -7)\n",
      "73. world (66, -7, 25, 22,  -2)\n",
      "74. new age (82, +8, 19, 22,  +2)\n",
      "75. christian (65, -10, 25, 21,  -3)\n",
      "76. chillout (52, -24, 35, 21,  -13)\n",
      "77. ska (60, -17, 29, 21,  -8)\n",
      "78. darkwave (68, -10, 23, 20,  -3)\n",
      "79. christian rock (69, -10, 23, 20,  -2)\n",
      "80. nu metal (63, -17, 26, 20,  -6)\n",
      "81. lo-fi (75, -6, 21, 19,  -2)\n",
      "82. folk metal (70, -12, 22, 19,  -3)\n",
      "83. grunge (67, -16, 24, 18,  -5)\n",
      "84. grindcore (76, -8, 21, 18,  -3)\n",
      "85. technical death meta (104, +19, 11, 17,  +6)\n",
      "86. gothic (74, -12, 22, 17,  -5)\n",
      "87. glam metal (90, +3, 15, 17,  +1)\n",
      "88. disco (92, +4, 15, 15,  0)\n",
      "89. minimal (86, -3, 17, 15,  -2)\n",
      "90. symphonic metal (72, -18, 22, 15,  -7)\n",
      "91. rockabilly (96, +5, 13, 14,  +1)\n",
      "92. blues rock (71, -21, 22, 13,  -8)\n",
      "93. hardcore punk (84, -9, 18, 13,  -4)\n",
      "94. gothic rock (89, -5, 16, 13,  -3)\n",
      "95. contemporary country (95, 0, 14, 13,  -1)\n",
      "96. futurepop (88, -8, 17, 13,  -3)\n",
      "97. chanson (93, -4, 15, 13,  -2)\n",
      "98. bossa nova (83, -15, 18, 12,  -5)\n",
      "99. composer (112, +13, 10, 12,  +2)\n",
      "100. rapcore (110, +10, 10, 11,  +1)\n",
      "101. dancehall (107, +6, 11, 11,  0)\n",
      "102. psytrance (113, +11, 10, 11,  0)\n",
      "103. ethereal (142, +39, 6, 10,  +4)\n",
      "104. rock n roll (117, +13, 9, 10,  +1)\n",
      "105. drum and bass (101, -4, 12, 10,  -2)\n",
      "106. avant-garde (114, +8, 10, 10,  0)\n",
      "107. stoner (103, -4, 12, 9,  -2)\n",
      "108. latin pop (80, -28, 20, 9,  -10)\n",
      "109. easy listening (167, +58, 4, 9,  +5)\n",
      "110. psychobilly (118, +8, 9, 9,  0)\n",
      "111. gangsta rap (146, +35, 6, 9,  +2)\n",
      "112. dark ambient (129, +17, 8, 9,  0)\n",
      "113. anime (105, -8, 11, 9,  -2)\n",
      "114. samba (131, +17, 8, 8,  0)\n",
      "115. math rock (111, -4, 10, 8,  -1)\n",
      "116. horror punk (128, +12, 8, 8,  0)\n",
      "117. musical (106, -11, 11, 8,  -2)\n",
      "118. sludge metal (121, +3, 8, 8,  0)\n",
      "119. gospel (123, +4, 8, 8,  0)\n",
      "120. deathrock (133, +13, 8, 8,  0)\n",
      "121. brutal death metal (109, -12, 10, 8,  -2)\n",
      "122. viking metal (137, +15, 7, 7,  0)\n",
      "123. noise rock (122, -1, 8, 7,  -1)\n",
      "124. grime (153, +29, 5, 7,  +2)\n",
      "125. electroclash (97, -28, 13, 7,  -5)\n",
      "126. psybient (179, +53, 3, 7,  +4)\n",
      "127. garage rock (91, -36, 15, 7,  -8)\n",
      "128. dark electro (99, -29, 13, 7,  -5)\n",
      "129. soft rock (134, +5, 7, 7,  0)\n",
      "130. dubstep (115, -15, 9, 7,  -2)\n",
      "131. contemporary classic (126, -5, 8, 7,  -1)\n",
      "132. symphonic black meta (156, +24, 5, 7,  +2)\n",
      "133. industrial rock (127, -6, 8, 7,  -1)\n",
      "134. dub (124, -10, 8, 7,  -1)\n",
      "135. swing (119, -16, 9, 6,  -2)\n",
      "136. reggaeton (135, -1, 7, 6,  -1)\n",
      "137. opera (125, -12, 8, 6,  -2)\n",
      "138. lounge (141, +3, 6, 6,  0)\n",
      "139. dream pop (98, -41, 13, 6,  -6)\n",
      "140. southern rock (138, -2, 7, 6,  -1)\n",
      "141. mathcore (144, +3, 6, 6,  0)\n",
      "142. ethnic (149, +7, 5, 6,  0)\n",
      "143. drone (136, -7, 7, 6,  -1)\n",
      "144. celtic (139, -5, 7, 6,  -1)\n",
      "145. avant-garde metal (186, +41, 2, 6,  +3)\n",
      "146. disney (102, -44, 12, 5,  -7)\n",
      "147. country pop (181, +34, 2, 5,  +2)\n",
      "148. breakcore (148, 0, 6, 5,  0)\n",
      "149. post-metal (164, +15, 4, 5,  +1)\n",
      "150. techno (100, -50, 13, 4,  -8)\n",
      "151. noise (161, +10, 4, 4,  0)\n",
      "152. ragga (159, +7, 4, 4,  0)\n",
      "153. piano rock (132, -21, 8, 4,  -3)\n",
      "154. medieval (150, -4, 5, 4,  -1)\n",
      "155. groove metal (158, +3, 5, 4,  0)\n",
      "156. chicago blues (168, +12, 4, 4,  0)\n",
      "157. art rock (154, -3, 5, 4,  -1)\n",
      "158. alternative metal (140, -18, 7, 4,  -2)\n",
      "159. neofolk (152, -7, 5, 4,  -1)\n",
      "160. latin rock (171, +11, 3, 4,  0)\n",
      "161. 8-bit (151, -10, 5, 4,  -1)\n",
      "162. new rave (120, -42, 9, 3,  -5)\n",
      "163. minimalism (173, +10, 3, 3,  0)\n",
      "164. acid jazz (155, -9, 5, 3,  -1)\n",
      "165. trancecore (178, +13, 3, 3,  0)\n",
      "166. folk rock (147, -19, 6, 3,  -2)\n",
      "167. atmospheric black me (160, -7, 4, 3,  -1)\n",
      "168. indietronica (198, +30, 1, 3,  +1)\n",
      "169. folk punk (185, +16, 2, 3,  0)\n",
      "170. minimal techno (170, 0, 3, 3,  0)\n",
      "171. worship (163, -8, 4, 2,  -1)\n",
      "172. speed metal (116, -56, 9, 2,  -6)\n",
      "173. vocal trance (187, +14, 2, 2,  0)\n",
      "174. breakbeat (201, +27, 1, 2,  +1)\n",
      "175. space rock (174, -1, 3, 2,  -1)\n",
      "176. sleaze rock (182, +6, 2, 2,  0)\n",
      "177. roots reggae (180, +3, 2, 2,  0)\n",
      "178. nu jazz (204, +26, 1, 2,  +1)\n",
      "179. surf rock (188, +9, 2, 2,  0)\n",
      "180. orchestral (190, +10, 2, 2,  0)\n",
      "181. neoclassical (191, +10, 2, 2,  0)\n",
      "182. glitch (176, -6, 3, 2,  -1)\n",
      "183. bebop (169, -14, 4, 2,  -2)\n",
      "184. proto-punk (189, +5, 2, 1,  0)\n",
      "185. progressive trance (183, -2, 2, 1,  0)\n",
      "186. new romantic (157, -29, 5, 1,  -3)\n",
      "187. freak folk (194, +7, 2, 1,  0)\n",
      "188. twee pop (177, -11, 3, 1,  -1)\n",
      "189. electric blues (197, +8, 1, 1,  0)\n",
      "190. teen pop (172, -18, 3, 1,  -2)\n",
      "191. southern rap (145, -46, 6, 1,  -5)\n",
      "192. noise pop (196, +4, 1, 1,  0)\n",
      "193. melodic metalcore (192, -1, 2, 1,  -1)\n",
      "194. crunk (199, +5, 1, 1,  0)\n",
      "195. post-grunge (175, -20, 3, 1,  -2)\n",
      "196. pagan metal (184, -12, 2, 1,  -1)\n",
      "197. noisecore (195, -2, 1, 1,  0)\n",
      "198. neo soul (143, -55, 6, 1,  -5)\n",
      "199. electro-industrial (207, +8, 0, 1,  0)\n",
      "200. indie folk (165, -35, 4, 0,  -3)\n",
      "201. urban (193, -8, 2, 0,  -1)\n",
      "202. east coast rap (162, -40, 4, 0,  -4)\n",
      "203. alternative hip-hop (203, 0, 1, 0,  0)\n",
      "204. electro house (208, +4, 0, 0,  0)\n",
      "205. country rock (200, -5, 1, 0,  -1)\n",
      "206. contemporary christi (209, +3, 0, 0,  0)\n",
      "207. acoustic rock (202, -5, 1, 0,  -1)\n",
      "208. west coast rap (211, +3, 0, 0,  0)\n",
      "209. jazz hop (205, -4, 1, 0,  -1)\n",
      "210. classical crossover (206, -4, 0, 0,  0)\n",
      "211. christian metalcore (210, -1, 0, 0,  0)\n",
      "212. aggrotech (212, 0, 0, 0,  0)\n"
     ]
    }
   ],
   "source": [
    "positionsB = get_top_tags(G_pl_total_genres,  G_axelrod4B_pl_total_genres, G_pl_total_counts, G_axelrod4B_pl_total_counts, list_tags, True)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 167,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "[encoded data, 46668 characters]\n",
      "text/plain": [
       "<Figure size 1080x720 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "print_positionsB = get_positions(positionsB)\n",
    "plt.figure(figsize=(15,10))\n",
    "plt.plot(print_positionsB)\n",
    "plt.title(\"Cambios de posición en el ranking \\n(resultado B)\")\n",
    "plt.ylabel(\"Posiciones\")\n",
    "plt.xlabel(\"Géneros musicales (número)\")\n",
    "plt.xticks(rotation='vertical')\n",
    "plt.savefig(\"toptagsB.jpg\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
