Skip to content

Commit

Permalink
corrected docstring
Browse files Browse the repository at this point in the history
The docstring of connected_component_subgraphs() had one parameter (copy=True) listed as a Return.
  • Loading branch information
drevicko committed Jul 1, 2014
1 parent dcbbfa4 commit 740e690
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions networkx/algorithms/components/connected.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ def connected_component_subgraphs(G, copy=True):
G : NetworkX graph
An undirected graph.
copy: bool (default=True)
If True make a copy of the graph attributes
Returns
-------
comp : generator
A generator of graphs, one for each connected component of G.
copy: bool (default=True)
If True make a copy of the graph attributes
Examples
--------
>>> G = nx.path_graph(4)
Expand Down

0 comments on commit 740e690

Please sign in to comment.