IsSubgraphIsomorphic - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


GraphTheory

  

IsSubgraphIsomorphic

  

determine if a subgraph isomorphism exists

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

IsSubgraphIsomorphic(G1,G2)

Parameters

G1, G2

-

graphs

Options

• 

isomorphism = truefalse

  

Specifies whether the isomorphism should be returned when it exists. In this case the result is an expression sequence consisting of true and a set of equations specifying a mapping from the vertices of G1 to those of G2.

Description

• 

IsSubgraphIsomorphic(G) accepts either two undirected graphs or two directed graphs as input.  It returns true if G1 is isomorphic to some subgraph of G2.

• 

If the graphs are weighted graphs, the edge weights are ignored.

Examples

withGraphTheory:

An undirected graph example: C6 is isomorphic to a subgraph of K33 but not of K24.

C6CycleGraph6

C6Graph 1: an undirected graph with 6 vertices and 6 edge(s)

(1)

K24CompleteGraph2,4

K24Graph 2: an undirected graph with 6 vertices and 8 edge(s)

(2)

K33CompleteGraph3,3

K33Graph 3: an undirected graph with 6 vertices and 9 edge(s)

(3)

IsSubgraphIsomorphicC6,K33

true

(4)

IsSubgraphIsomorphicC6,K33,isomorphism

true,1=6,2=3,3=5,4=2,5=4,6=1

(5)

IsSubgraphIsomorphicC6,K24

false

(6)

Compatibility

• 

The GraphTheory[IsSubgraphIsomorphic] command was introduced in Maple 2021.

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

• 

The GraphTheory[IsSubgraphIsomorphic] command was updated in Maple 2022.

• 

The isomorphism option was introduced in Maple 2022.

• 

For more information on Maple 2022 changes, see Updates in Maple 2022.

See Also

IsIsomorphic