Skip to content

Commit

Permalink
Change copied "check whether ..." to "Yield ..."
Browse files Browse the repository at this point in the history
  • Loading branch information
dschult committed Sep 18, 2024
1 parent 21f88d8 commit 35fb140
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions networkx/algorithms/isomorphism/isomorphvf2.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ def subgraph_isomorphisms_iter(self):
>>> list(isomatcher.subgraph_isomorphisms_iter())
[]
Check whether a subgraph of H is isomorphic to G:
Yield isomorphic mappings between ``G`` and subgraphs of ``H``:
>>> isomatcher = nx.isomorphism.DiGraphMatcher(H, G)
>>> next(isomatcher.subgraph_isomorphisms_iter())
Expand All @@ -1005,13 +1005,13 @@ def subgraph_monomorphisms_iter(self):
>>> G = nx.DiGraph([("A", "B"), ("C", "B"), ("D", "C")])
>>> H = nx.DiGraph([(0, 1), (1, 2), (2, 3), (3, 2)])
Check whether a subgraph of G is monomorphic to H:
Yield monomorphic mappings between ``H`` and subgraphs of ``G``:
>>> isomatcher = nx.isomorphism.DiGraphMatcher(G, H)
>>> list(isomatcher.subgraph_monomorphisms_iter())
[]
Check whether a subgraph of H is isomorphic to G:
Yield monomorphic mappings between ``G`` and subgraphs of ``H``:
>>> isomatcher = nx.isomorphism.DiGraphMatcher(H, G)
>>> next(isomatcher.subgraph_monomorphisms_iter())
Expand Down

0 comments on commit 35fb140

Please sign in to comment.