|
1 | 1 | { |
2 | 2 | "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "code", |
| 5 | + "execution_count": null, |
| 6 | + "id": "2d32bc61", |
| 7 | + "metadata": {}, |
| 8 | + "outputs": [], |
| 9 | + "source": [ |
| 10 | + "!apt install libgraphviz-dev\n", |
| 11 | + "!pip install pygraphviz" |
| 12 | + ] |
| 13 | + }, |
3 | 14 | { |
4 | 15 | "cell_type": "markdown", |
5 | | - "id": "387c45ac", |
| 16 | + "id": "c70964b6", |
6 | 17 | "metadata": {}, |
7 | 18 | "source": [ |
8 | 19 | "## Sum Rule" |
|
95 | 106 | }, |
96 | 107 | { |
97 | 108 | "cell_type": "code", |
98 | | - "execution_count": 1, |
| 109 | + "execution_count": null, |
99 | 110 | "id": "4ede23c2", |
100 | 111 | "metadata": {}, |
101 | | - "outputs": [ |
102 | | - { |
103 | | - "name": "stdout", |
104 | | - "output_type": "stream", |
105 | | - "text": [ |
106 | | - "zsh:1: command not found: pip\n", |
107 | | - "['s', 'a', 'c', 'd', 't']\n", |
108 | | - "['s', 'a', 'c', 't']\n", |
109 | | - "['s', 'a', 'd', 't']\n", |
110 | | - "['s', 'b', 'c', 'd', 't']\n", |
111 | | - "['s', 'b', 'c', 't']\n", |
112 | | - "['s', 'b', 'e', 't']\n" |
113 | | - ] |
114 | | - } |
115 | | - ], |
| 112 | + "outputs": [], |
116 | 113 | "source": [ |
117 | | - "!pip install pygraphviz\n", |
118 | | - "\n", |
119 | 114 | "from networkx import DiGraph, all_simple_paths, nx_agraph\n", |
120 | 115 | "\n", |
121 | 116 | "edges = [('s', 'a'), ('s', 'b'), ('a', 'c'), ('a', 'd'), ('b', 'c'),\n", |
|
0 commit comments