Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Corrected phrasing in SEEALSO part of is_subgraph().
Browse files Browse the repository at this point in the history
  • Loading branch information
Jori Mäntysalo committed Sep 8, 2015
1 parent a9c5092 commit d45a30b
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/sage/graphs/generic_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -12325,21 +12325,23 @@ def is_subgraph(self, other, induced=True):

OUTPUT:

boolean -- ``True`` iff the graph is a (possibly induced) subgraph of ``other``.
boolean -- ``True`` iff the graph is a (possibly induced)
subgraph of ``other``.

.. SEEALSO::

If you are interested in the (possibly induced) subgraphs isomorphic
to ``self`` in ``other``, you are looking for the following methods:
If you are interested in the (possibly induced) subgraphs
isomorphic to the graph in ``other``, you are looking for
the following methods:

- :meth:`~GenericGraph.subgraph_search` -- finds a subgraph
isomorphic to `G` inside of a `self`
- :meth:`~GenericGraph.subgraph_search` -- Find a subgraph
isomorphic to ``other`` inside of the graph.

- :meth:`~GenericGraph.subgraph_search_count` -- Counts the number
- :meth:`~GenericGraph.subgraph_search_count` -- Count the number
of such copies.

- :meth:`~GenericGraph.subgraph_search_iterator` -- Iterate over all
the copies of `G` contained in `self`.
- :meth:`~GenericGraph.subgraph_search_iterator` --
Iterate over all the copies of ``other`` contained in the graph.

EXAMPLES::

Expand Down Expand Up @@ -12369,6 +12371,7 @@ def is_subgraph(self, other, induced=True):
Traceback (most recent call last):
...
ValueError: The input parameter must be a DiGraph.

"""
from sage.graphs.graph import Graph
from sage.graphs.digraph import DiGraph
Expand Down

0 comments on commit d45a30b

Please sign in to comment.