diff options
author | Jarrod Millman <jarrod.millman@gmail.com> | 2020-10-06 10:22:41 -0700 |
---|---|---|
committer | Jarrod Millman <jarrod.millman@gmail.com> | 2020-10-06 12:11:32 -0700 |
commit | 735e6d856b81989cc12dfa30d8cd8e2ddb7dcead (patch) | |
tree | d82c1413052f6fc45db9e856716e69d32e2b038a /examples | |
parent | 3d06eda1ab79b851599edac9e5b58327545c078e (diff) | |
download | networkx-735e6d856b81989cc12dfa30d8cd8e2ddb7dcead.tar.gz |
Format w/ black==20.8b1
Diffstat (limited to 'examples')
-rw-r--r-- | examples/drawing/plot_atlas.py | 4 | ||||
-rw-r--r-- | examples/drawing/plot_giant_component.py | 6 | ||||
-rw-r--r-- | examples/drawing/plot_knuth_miles.py | 4 | ||||
-rw-r--r-- | examples/drawing/plot_lanl_routes.py | 3 | ||||
-rw-r--r-- | examples/graph/plot_roget.py | 2 | ||||
-rw-r--r-- | examples/subclass/plot_antigraph.py | 2 |
6 files changed, 12 insertions, 9 deletions
diff --git a/examples/drawing/plot_atlas.py b/examples/drawing/plot_atlas.py index 6bf00f17..59ea54eb 100644 --- a/examples/drawing/plot_atlas.py +++ b/examples/drawing/plot_atlas.py @@ -22,8 +22,8 @@ from networkx.generators.atlas import graph_atlas_g def atlas6(): - """ Return the atlas of all connected graphs of 6 nodes or less. - Attempt to check for isomorphisms and remove. + """Return the atlas of all connected graphs of 6 nodes or less. + Attempt to check for isomorphisms and remove. """ Atlas = graph_atlas_g()[0:208] # 208 diff --git a/examples/drawing/plot_giant_component.py b/examples/drawing/plot_giant_component.py index c289bb34..ce7101e4 100644 --- a/examples/drawing/plot_giant_component.py +++ b/examples/drawing/plot_giant_component.py @@ -46,6 +46,10 @@ for p in pvals: for Gi in Gcc[1:]: if len(Gi) > 1: nx.draw_networkx_edges( - G.subgraph(Gi), pos, edge_color="r", alpha=0.3, width=5.0, + G.subgraph(Gi), + pos, + edge_color="r", + alpha=0.3, + width=5.0, ) plt.show() diff --git a/examples/drawing/plot_knuth_miles.py b/examples/drawing/plot_knuth_miles.py index 1a745f19..13f5f672 100644 --- a/examples/drawing/plot_knuth_miles.py +++ b/examples/drawing/plot_knuth_miles.py @@ -26,8 +26,8 @@ import networkx as nx def miles_graph(): - """ Return the cites example graph in miles_dat.txt - from the Stanford GraphBase. + """Return the cites example graph in miles_dat.txt + from the Stanford GraphBase. """ # open file miles_dat.txt.gz (or miles_dat.txt) diff --git a/examples/drawing/plot_lanl_routes.py b/examples/drawing/plot_lanl_routes.py index b1dfe9e8..7cab5a27 100644 --- a/examples/drawing/plot_lanl_routes.py +++ b/examples/drawing/plot_lanl_routes.py @@ -19,8 +19,7 @@ from networkx.drawing.nx_agraph import graphviz_layout def lanl_graph(): - """ Return the lanl internet view graph from lanl.edges - """ + """Return the lanl internet view graph from lanl.edges""" try: fh = open("lanl_routes.edgelist") except OSError: diff --git a/examples/graph/plot_roget.py b/examples/graph/plot_roget.py index 41e4347c..8f2587be 100644 --- a/examples/graph/plot_roget.py +++ b/examples/graph/plot_roget.py @@ -29,7 +29,7 @@ from networkx import nx def roget_graph(): - """ Return the thesaurus graph from the roget.dat example in + """Return the thesaurus graph from the roget.dat example in the Stanford Graph Base. """ # open file roget_dat.txt.gz diff --git a/examples/subclass/plot_antigraph.py b/examples/subclass/plot_antigraph.py index ef80f5cb..7cc612d0 100644 --- a/examples/subclass/plot_antigraph.py +++ b/examples/subclass/plot_antigraph.py @@ -60,7 +60,7 @@ class AntiGraph(nx.Graph): def neighbors(self, n): """Return an iterator over all neighbors of node n in the - dense graph. + dense graph. """ try: |