Skip to content
Prev Previous commit
manage merge conflict and ensure black edges
  • Loading branch information
mmcky committed Apr 22, 2024
commit 2077d9318966e23becd35b1c022c8805ffa20322
4 changes: 2 additions & 2 deletions lectures/_static/lecture_specific/markov_chains_II/example4
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ digraph {
rankdir=LR
0
1
0 -> 1 [label=1.0 color=red]
1 -> 0 [label=1.0 color=red]
0 -> 1 [label=1.0]
1 -> 0 [label=1.0]
}
Binary file modified lectures/_static/lecture_specific/markov_chains_II/example4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions lectures/_static/lecture_specific/markov_chains_II/figures.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: graphviz in /Users/mmcky/anaconda3/envs/quantecon/lib/python3.11/site-packages (0.20.3)\n"
"Collecting graphviz\n",
" Using cached graphviz-0.20.3-py3-none-any.whl.metadata (12 kB)\n",
"Using cached graphviz-0.20.3-py3-none-any.whl (47 kB)\n",
"Installing collected packages: graphviz\n",
"Successfully installed graphviz-0.20.3\n"
]
}
],
Expand Down Expand Up @@ -147,8 +151,8 @@
"dot.node(\"0\")\n",
"dot.node(\"1\")\n",
"\n",
"dot.edge(\"0\", \"1\", label=\"1.0\", color='red')\n",
"dot.edge(\"1\", \"0\", label=\"1.0\", color='red')\n",
"dot.edge(\"0\", \"1\", label=\"1.0\")\n",
"dot.edge(\"1\", \"0\", label=\"1.0\")\n",
"\n",
"dot\n",
"dot.render(filename='example4')"
Expand Down