Last correction to the notebook to get rid of a useless intermediate output,...

Last correction to the notebook to get rid of a useless intermediate output, graph adjacency matrix object
parent 6f4ac0eb
...@@ -2448,33 +2448,10 @@ ...@@ -2448,33 +2448,10 @@
"cell_type": "code", "cell_type": "code",
"execution_count": 23, "execution_count": 23,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [],
{
"name": "stdout",
"output_type": "stream",
"text": [
"('Anselme', {'Harpagon': {0: {'weight': 293}}, 'Le commissaire': {0: {'weight': 13}}, 'Valère': {0: {'weight': 211}}})\n",
"('Brindavoine', {'Harpagon': {0: {'weight': 20}}, 'La Merluche': {0: {'weight': 23}}})\n",
"('Cléante', {'Frosine': {0: {'weight': 32}}, 'Harpagon': {0: {'weight': 1595}}, 'La Flèche': {0: {'weight': 396}}, 'Maitre Jacques': {0: {'weight': 170}}, 'Maitre Simon': {0: {'weight': 13}}, 'Mariane': {0: {'weight': 350}}, 'Élise': {0: {'weight': 783}}})\n",
"('Dame Claude', {})\n",
"('Frosine', {'Cléante': {0: {'weight': 436}}, 'Harpagon': {0: {'weight': 1561}}, 'La Flèche': {0: {'weight': 130}}, 'Maitre Jacques': {0: {'weight': 23}}, 'Mariane': {0: {'weight': 203}}})\n",
"('Harpagon', {'Harpagon': {0: {'weight': 407}}, 'Anselme': {0: {'weight': 126}}, 'Brindavoine': {0: {'weight': 37}}, 'Cléante': {0: {'weight': 1719}}, 'Frosine': {0: {'weight': 737}}, 'La Flèche': {0: {'weight': 465}}, 'La Merluche': {0: {'weight': 6}}, 'Le commissaire': {0: {'weight': 135}}, 'Maitre Jacques': {0: {'weight': 679}}, 'Maitre Simon': {0: {'weight': 51}}, 'Mariane': {0: {'weight': 94}}, 'Valère': {0: {'weight': 1178}}, 'Élise': {0: {'weight': 514}}})\n",
"('La Flèche', {'Cléante': {0: {'weight': 962}}, 'Frosine': {0: {'weight': 301}}, 'Harpagon': {0: {'weight': 257}}})\n",
"('La Merluche', {'Harpagon': {0: {'weight': 47}}})\n",
"('Le commissaire', {'Harpagon': {0: {'weight': 146}}, 'Maitre Jacques': {0: {'weight': 148}}})\n",
"('Maitre Jacques', {'Anselme': {0: {'weight': 23}}, 'Cléante': {0: {'weight': 154}}, 'Frosine': {0: {'weight': 18}}, 'Harpagon': {0: {'weight': 1156}}, 'La Merluche': {0: {'weight': 8}}, 'Le commissaire': {0: {'weight': 46}}, 'Valère': {0: {'weight': 263}}})\n",
"('Maitre Simon', {'Harpagon': {0: {'weight': 194}}, 'La Flèche': {0: {'weight': 3}}})\n",
"('Mariane', {'Anselme': {0: {'weight': 199}}, 'Cléante': {0: {'weight': 258}}, 'Frosine': {0: {'weight': 256}}, 'Harpagon': {0: {'weight': 163}}, 'Valère': {0: {'weight': 29}}, 'Élise': {0: {'weight': 14}}})\n",
"('Valère', {'Anselme': {0: {'weight': 262}}, 'Cléante': {0: {'weight': 5}}, 'Harpagon': {0: {'weight': 1478}}, 'La Merluche': {0: {'weight': 4}}, 'Maitre Jacques': {0: {'weight': 218}}, 'Mariane': {0: {'weight': 43}}, 'Élise': {0: {'weight': 742}}})\n",
"('son clerc', {})\n",
"('Élise', {'Cléante': {0: {'weight': 154}}, 'Frosine': {0: {'weight': 10}}, 'Harpagon': {0: {'weight': 328}}, 'Mariane': {0: {'weight': 48}}, 'Valère': {0: {'weight': 527}}})\n"
]
}
],
"source": [ "source": [
"initExchangesGraph = nx.MultiDiGraph(adjacencyDf)\n", "# On crée maintenant le graphe à partir de la matrice d'ajacence générée.\n",
"for elt in initExchangesGraph.adjacency():\n", "initExchangesGraph = nx.MultiDiGraph(adjacencyDf)"
" print(elt)"
] ]
}, },
{ {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment