Skip to content

Commit 8ef7b06

Browse files
Merge pull request #3117 from marimeireles/fix-graph-example
Change graph example to receive a tuple instead of a dict
2 parents d23eddc + f646750 commit 8ef7b06

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

docs/source/examples/Exploring Graphs.ipynb

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,14 @@
7474
"metadata": {},
7575
"outputs": [],
7676
"source": [
77-
"interact(plot_random_graph, n=(2,30), m=(1,10), k=(1,10), p=(0.0, 1.0, 0.001),\n",
78-
" generator={\n",
79-
" 'lobster': random_lobster,\n",
80-
" 'power law': powerlaw_cluster,\n",
81-
" 'Newman-Watts-Strogatz': newman_watts_strogatz,\n",
82-
" u'Erdős-Rényi': erdos_renyi,\n",
83-
" });"
77+
"interact(plot_random_graph, n=(2,30), m=(1,10), k=(1,10), p=(0.0, 0.99, 0.001),\n",
78+
" generator=[\n",
79+
" ('lobster', random_lobster),\n",
80+
" ('power law', powerlaw_cluster),\n",
81+
" ('Newman-Watts-Strogatz', newman_watts_strogatz),\n",
82+
" (u'Erdős-Rényi', erdos_renyi),\n",
83+
" ]);"
8484
]
85-
},
86-
{
87-
"cell_type": "code",
88-
"execution_count": null,
89-
"metadata": {},
90-
"outputs": [],
91-
"source": []
9285
}
9386
],
9487
"metadata": {
@@ -107,7 +100,7 @@
107100
"name": "python",
108101
"nbconvert_exporter": "python",
109102
"pygments_lexer": "ipython3",
110-
"version": "3.6.4"
103+
"version": "3.9.1"
111104
}
112105
},
113106
"nbformat": 4,

0 commit comments

Comments
 (0)