summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarrod Millman <jarrod.millman@gmail.com>2019-04-04 13:53:25 -0700
committerGitHub <noreply@github.com>2019-04-04 13:53:25 -0700
commitf9767e7a427bcccb294d6e9c1e69a452535f9e79 (patch)
tree14e3778d40a00bd0a2124d8e2f5cbefcfb32b541
parentbae9b8a554d486d75fc1989aac498c89e361a847 (diff)
parent1b7d81cf01b03a87686023c5719f7de39c5f4494 (diff)
downloadnetworkx-f9767e7a427bcccb294d6e9c1e69a452535f9e79.tar.gz
Merge pull request #3382 from jarrodmillman/gallery
Gallery
-rw-r--r--examples/advanced/plot_iterated_dynamical_systems.py (renamed from examples/advanced/iterated_dynamical_systems.py)0
-rw-r--r--examples/algorithms/plot_beam_search.py (renamed from examples/algorithms/beam_search.py)0
-rw-r--r--examples/algorithms/plot_rcm.py (renamed from examples/algorithms/rcm.py)0
-rw-r--r--examples/applications/README.txt2
-rw-r--r--examples/applications/plot_circuits.py (renamed from examples/applications/circuits.py)7
-rw-r--r--examples/graph/plot_atlas.py (renamed from examples/graph/atlas2.py)0
-rw-r--r--examples/graph/plot_expected_degree_sequence.py (renamed from examples/graph/expected_degree_sequence.py)6
-rw-r--r--examples/graph/plot_words.py (renamed from examples/graph/words.py)0
-rw-r--r--examples/pygraphviz/plot_pygraphviz_attributes.py (renamed from examples/pygraphviz/pygraphviz_attributes.py)0
-rw-r--r--examples/pygraphviz/plot_pygraphviz_draw.py (renamed from examples/pygraphviz/pygraphviz_draw.py)0
-rw-r--r--examples/pygraphviz/plot_pygraphviz_simple.py (renamed from examples/pygraphviz/pygraphviz_simple.py)0
-rw-r--r--examples/pygraphviz/plot_write_dotfile.py (renamed from examples/pygraphviz/write_dotfile.py)0
12 files changed, 10 insertions, 5 deletions
diff --git a/examples/advanced/iterated_dynamical_systems.py b/examples/advanced/plot_iterated_dynamical_systems.py
index 6d47f333..6d47f333 100644
--- a/examples/advanced/iterated_dynamical_systems.py
+++ b/examples/advanced/plot_iterated_dynamical_systems.py
diff --git a/examples/algorithms/beam_search.py b/examples/algorithms/plot_beam_search.py
index 10ed8364..10ed8364 100644
--- a/examples/algorithms/beam_search.py
+++ b/examples/algorithms/plot_beam_search.py
diff --git a/examples/algorithms/rcm.py b/examples/algorithms/plot_rcm.py
index 3b342a13..3b342a13 100644
--- a/examples/algorithms/rcm.py
+++ b/examples/algorithms/plot_rcm.py
diff --git a/examples/applications/README.txt b/examples/applications/README.txt
new file mode 100644
index 00000000..1b557aaf
--- /dev/null
+++ b/examples/applications/README.txt
@@ -0,0 +1,2 @@
+Applications
+------------
diff --git a/examples/applications/circuits.py b/examples/applications/plot_circuits.py
index 455c68af..ac54d546 100644
--- a/examples/applications/circuits.py
+++ b/examples/applications/plot_circuits.py
@@ -7,7 +7,12 @@
#
# NetworkX is distributed under a BSD license; see LICENSE.txt for more
# information.
-"""Convert a Boolean circuit to an equivalent Boolean formula.
+"""
+========
+Circuits
+========
+
+Convert a Boolean circuit to an equivalent Boolean formula.
A Boolean circuit can be exponentially more expressive than an
equivalent formula in the worst case, since the circuit can reuse
diff --git a/examples/graph/atlas2.py b/examples/graph/plot_atlas.py
index f791aed7..f791aed7 100644
--- a/examples/graph/atlas2.py
+++ b/examples/graph/plot_atlas.py
diff --git a/examples/graph/expected_degree_sequence.py b/examples/graph/plot_expected_degree_sequence.py
index 78b5bf90..0bbcf254 100644
--- a/examples/graph/expected_degree_sequence.py
+++ b/examples/graph/plot_expected_degree_sequence.py
@@ -26,7 +26,5 @@ G = expected_degree_graph(w) # configuration model
print("Degree histogram")
print("degree (#nodes) ****")
dh = nx.degree_histogram(G)
-low = min(nx.degree(G))
-for i in range(low, len(dh)):
- bar = ''.join(dh[i] * ['*'])
- print("%2s (%2s) %s" % (i, dh[i], bar))
+for i, d in enumerate(dh):
+ print("%2s (%2s) %s" % (i, d, '*'*d))
diff --git a/examples/graph/words.py b/examples/graph/plot_words.py
index 61846624..61846624 100644
--- a/examples/graph/words.py
+++ b/examples/graph/plot_words.py
diff --git a/examples/pygraphviz/pygraphviz_attributes.py b/examples/pygraphviz/plot_pygraphviz_attributes.py
index e1ad924f..e1ad924f 100644
--- a/examples/pygraphviz/pygraphviz_attributes.py
+++ b/examples/pygraphviz/plot_pygraphviz_attributes.py
diff --git a/examples/pygraphviz/pygraphviz_draw.py b/examples/pygraphviz/plot_pygraphviz_draw.py
index cd8021e2..cd8021e2 100644
--- a/examples/pygraphviz/pygraphviz_draw.py
+++ b/examples/pygraphviz/plot_pygraphviz_draw.py
diff --git a/examples/pygraphviz/pygraphviz_simple.py b/examples/pygraphviz/plot_pygraphviz_simple.py
index 7e0a93e8..7e0a93e8 100644
--- a/examples/pygraphviz/pygraphviz_simple.py
+++ b/examples/pygraphviz/plot_pygraphviz_simple.py
diff --git a/examples/pygraphviz/write_dotfile.py b/examples/pygraphviz/plot_write_dotfile.py
index 85b4fb23..85b4fb23 100644
--- a/examples/pygraphviz/write_dotfile.py
+++ b/examples/pygraphviz/plot_write_dotfile.py