WOLFRAM

finds a subgraph of g1 that is isomorphic to g2.

finds at most n subgraphs.

Details and Options

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Find a subgraph that is isomorphic to a graph:

Out[2]=2

Find all subgraphs that are isomorphic to a graph:

Out[1]=1

Scope  (7)Survey of the scope of standard use cases

Specification  (4)

FindIsomorphicSubgraph works with undirected graphs:

Out[1]=1

Directed graphs:

Out[1]=1

Edge-tagged graphs:

Out[1]=1

Weighted graphs:

Out[1]=1

Enumeration  (3)

Find a subgraph that is isomorphic to a graph:

Out[1]=1

Find at most two isomorphic subgraphs:

Out[1]=1

Find all isomorphic subgraphs:

Out[1]=1

Applications  (2)Sample problems that can be solved with this function

Find a substructure of a chemical structure graph that is isomorphic to the given graph:

Out[1]=1
Out[2]=2

Count the frequency of a motif in a directed family marriage network:

Out[3]=3

Highlight one instance of the motif:

Out[4]=4

Properties & Relations  (2)Properties of the function, and connections to other functions

Test whether a graph and a subgraph are isomorphic using IsomorphicSubgraphQ:

Out[1]=1
Out[2]=2
Out[3]=3

Use FindSubgraphIsomorphism to find a subgraph isomorphism:

Out[1]=1
Wolfram Research (2021), FindIsomorphicSubgraph, Wolfram Language function, https://reference.wolfram.com/language/ref/FindIsomorphicSubgraph.html.
Wolfram Research (2021), FindIsomorphicSubgraph, Wolfram Language function, https://reference.wolfram.com/language/ref/FindIsomorphicSubgraph.html.

Text

Wolfram Research (2021), FindIsomorphicSubgraph, Wolfram Language function, https://reference.wolfram.com/language/ref/FindIsomorphicSubgraph.html.

Wolfram Research (2021), FindIsomorphicSubgraph, Wolfram Language function, https://reference.wolfram.com/language/ref/FindIsomorphicSubgraph.html.

CMS

Wolfram Language. 2021. "FindIsomorphicSubgraph." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FindIsomorphicSubgraph.html.

Wolfram Language. 2021. "FindIsomorphicSubgraph." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FindIsomorphicSubgraph.html.

APA

Wolfram Language. (2021). FindIsomorphicSubgraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FindIsomorphicSubgraph.html

Wolfram Language. (2021). FindIsomorphicSubgraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FindIsomorphicSubgraph.html

BibTeX

@misc{reference.wolfram_2025_findisomorphicsubgraph, author="Wolfram Research", title="{FindIsomorphicSubgraph}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/FindIsomorphicSubgraph.html}", note=[Accessed: 26-March-2025 ]}

@misc{reference.wolfram_2025_findisomorphicsubgraph, author="Wolfram Research", title="{FindIsomorphicSubgraph}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/FindIsomorphicSubgraph.html}", note=[Accessed: 26-March-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_findisomorphicsubgraph, organization={Wolfram Research}, title={FindIsomorphicSubgraph}, year={2021}, url={https://reference.wolfram.com/language/ref/FindIsomorphicSubgraph.html}, note=[Accessed: 26-March-2025 ]}

@online{reference.wolfram_2025_findisomorphicsubgraph, organization={Wolfram Research}, title={FindIsomorphicSubgraph}, year={2021}, url={https://reference.wolfram.com/language/ref/FindIsomorphicSubgraph.html}, note=[Accessed: 26-March-2025 ]}