IsSubgraphIsomorphic - Maple Help

Online Help

All Products    Maple    MapleSim


GraphTheory

  

IsSubgraphIsomorphic

  

determine if subgraph isomorphism exists

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

IsSubgraphIsomorphic(G1,G2)

Parameters

G1, G2

-

graphs

Description

• 

The IsSubgraphIsomorphic command 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 unweighted graph with 6 vertices and 6 edge(s)

(1)

K24CompleteGraph2,4

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

(2)

K33CompleteGraph3,3

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

(3)

IsSubgraphIsomorphicC6,K33

true

(4)

IsSubgraphIsomorphicC6,K24

false

(5)

Compatibility

• 

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

• 

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

See Also

IsIsomorphic