diff options
Diffstat (limited to 'hw5/Tree_Introduction.ipynb')
| -rw-r--r-- | hw5/Tree_Introduction.ipynb | 41 |
1 files changed, 33 insertions, 8 deletions
diff --git a/hw5/Tree_Introduction.ipynb b/hw5/Tree_Introduction.ipynb index ed32f70..1e40837 100644 --- a/hw5/Tree_Introduction.ipynb +++ b/hw5/Tree_Introduction.ipynb @@ -99,7 +99,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 5, "metadata": { "id": "vyOHFZR5x0vs" }, @@ -108,8 +108,21 @@ "name": "stdout", "output_type": "stream", "text": [ - "zsh:1: command not found: pip\n", - "zsh:1: command not found: pip\n" + "Requirement already satisfied: EoN in /opt/homebrew/lib/python3.10/site-packages (1.1)\n", + "Requirement already satisfied: scipy in /opt/homebrew/lib/python3.10/site-packages (from EoN) (1.10.1)\n", + "Requirement already satisfied: numpy in /opt/homebrew/lib/python3.10/site-packages (from EoN) (1.24.2)\n", + "Requirement already satisfied: matplotlib in /opt/homebrew/lib/python3.10/site-packages (from EoN) (3.6.2)\n", + "Requirement already satisfied: networkx in /opt/homebrew/lib/python3.10/site-packages (from EoN) (3.0)\n", + "Requirement already satisfied: pyparsing>=2.2.1 in /opt/homebrew/lib/python3.10/site-packages (from matplotlib->EoN) (3.0.9)\n", + "Requirement already satisfied: kiwisolver>=1.0.1 in /opt/homebrew/lib/python3.10/site-packages (from matplotlib->EoN) (1.4.4)\n", + "Requirement already satisfied: contourpy>=1.0.1 in /opt/homebrew/lib/python3.10/site-packages (from matplotlib->EoN) (1.0.6)\n", + "Requirement already satisfied: pillow>=6.2.0 in /opt/homebrew/lib/python3.10/site-packages (from matplotlib->EoN) (9.2.0)\n", + "Requirement already satisfied: fonttools>=4.22.0 in /opt/homebrew/lib/python3.10/site-packages (from matplotlib->EoN) (4.38.0)\n", + "Requirement already satisfied: packaging>=20.0 in /opt/homebrew/lib/python3.10/site-packages (from matplotlib->EoN) (21.3)\n", + "Requirement already satisfied: cycler>=0.10 in /opt/homebrew/lib/python3.10/site-packages (from matplotlib->EoN) (0.11.0)\n", + "Requirement already satisfied: python-dateutil>=2.7 in /opt/homebrew/lib/python3.10/site-packages (from matplotlib->EoN) (2.8.2)\n", + "Requirement already satisfied: six>=1.5 in /opt/homebrew/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib->EoN) (1.16.0)\n", + "Requirement already satisfied: networkx in /opt/homebrew/lib/python3.10/site-packages (3.0)\n" ] } ], @@ -149,11 +162,23 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": { "id": "7pAGS6bcx1WE" }, - "outputs": [], + "outputs": [ + { + "ename": "NameError", + "evalue": "name 'nx' is not defined", + "output_type": "error", + "traceback": [ + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", + "Cell \u001b[0;32mIn[6], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m G \u001b[38;5;241m=\u001b[39m \u001b[43mnx\u001b[49m\u001b[38;5;241m.\u001b[39mDiGraph()\n\u001b[1;32m 2\u001b[0m add_edges(t, G)\n", + "\u001b[0;31mNameError\u001b[0m: name 'nx' is not defined" + ] + } + ], "source": [ "G = nx.DiGraph()\n", "add_edges(t, G)" @@ -516,7 +541,7 @@ "provenance": [] }, "kernelspec": { - "display_name": "Python 3.9.6 64-bit", + "display_name": "Python 3.11.2 64-bit", "language": "python", "name": "python3" }, @@ -530,11 +555,11 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.6" + "version": "3.11.2" }, "vscode": { "interpreter": { - "hash": "31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6" + "hash": "b0fa6594d8f4cbf19f97940f81e996739fb7646882a419484c72d19e05852a7e" } } }, |
