Top Banner
1 Give the parent, queue, BFI (breadth first index), and level arrays when BFS is applied to this graph starting at vertex 0. Process the neighbours of each vertex in numerical order.
40

Graph Isomorphism

Jan 06, 2016

Download

Documents

lot

Give the parent, queue, BFI (breadth first index), and level arrays when BFS is applied to this graph starting at vertex 0. Process the neighbours of each vertex in numerical order. Graph Isomorphism - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Graph Isomorphism

1

Give the parent, queue, BFI (breadth first index), and level arrays when BFS is applied to this graph starting at vertex 0.Process the neighbours of each vertex in numerical order.

Page 2: Graph Isomorphism

Graph Isomorphism

The graph isomorphism problem has no known polynomial time algorithm which works for an arbitrary graph.

Canonical form: If two graphs are isomorphic, their canonical forms must be the same, otherwise, they must be different.

For trees and planar graphs, a canonical form can be computed in polynomial time. 2

Page 3: Graph Isomorphism

Which graphs are isomorphic to graph B?

Petersen

Graph ? ? ?

3

Page 4: Graph Isomorphism

4

Page 5: Graph Isomorphism

5

Page 6: Graph Isomorphism

6

Page 7: Graph Isomorphism

7

Planar graphs: Isomorphic graphs can have planar embeddings that are not isomorphic.

Page 8: Graph Isomorphism

8

Automorphism: Isomorphism from an object to itself. How many automorphisms does this embedding have?

Page 9: Graph Isomorphism

9

Page 10: Graph Isomorphism

10

The identityautomorphism.

Page 11: Graph Isomorphism

11

Flip over a horizontal axis.

Page 12: Graph Isomorphism

12

Rotate 180º

Page 13: Graph Isomorphism

13

Flip over the vertical axis.

Page 14: Graph Isomorphism

14

Rotate 180º

Then flip over a horizonal axis.

Page 15: Graph Isomorphism

15

The original embedding.

Identity automorphism:Two line notation:0 1 2 3 4 50 1 2 3 4 5

Cycle structure notation:

(0) (1)(2)(3)(4)(5)

Page 16: Graph Isomorphism

16

Two line notation? Cycle structure notation?

Page 17: Graph Isomorphism

17

Two line notation:0 1 2 3 4 50 1 5 4 3 2

Cycle structure notation:

(0)(1) (25)(34)

Page 18: Graph Isomorphism

18

Two line notation? Cycle structure notation?

Page 19: Graph Isomorphism

19

Two line notation:0 1 2 3 4 51 0 4 5 2 3

Cycle structure notation:

(01) (24)(35)

Page 20: Graph Isomorphism

20

Two line notation? Cycle structure notation?

Page 21: Graph Isomorphism

21

Two line notation:0 1 2 3 4 51 0 3 2 4 4

Cycle structure notation:

(01) (23)(45)

Page 22: Graph Isomorphism

22

(0)(1)(25)(34)(0)(1) (2)(3)(4)(5)

(01) (24)(35) (01) (23)(45)

Permutations that are automorphisms:

identity

rotation

horizontal flip

vertical flip

Page 23: Graph Isomorphism

23

The automorphism form a group:1.The identity is always included.2.If p is an automorphism, then so is p-

1.3.If p and q are automorphisms, then so is p * q.

What is:rotate 180º horizonal flip(01) (24)(35) * (0)(1)(25)(34)

Page 24: Graph Isomorphism

24

The automorphism form a group:1.The identity is always included.2.If p is an automorphism, then so is p-

1.3.If p and q are automorphisms, then so is p * q.

What is: rotation horizonal flip (01)(24)(35) * (0)(1)(25)(34)

= (01)(23)(45) vertical flip

Page 25: Graph Isomorphism

25

Then flip over a horizonal axis.

identity

rotation

vertical flip

Page 26: Graph Isomorphism

26

Two graphs that are isomorphic but their embeddings are not:

Page 27: Graph Isomorphism

27

Page 28: Graph Isomorphism

28

Flipping this over:

Page 29: Graph Isomorphism

29

If an embedding has an automorphism to its flip then the embedding is not chiral.

Page 30: Graph Isomorphism

30

Page 31: Graph Isomorphism

31

Page 32: Graph Isomorphism

32

If an embedding has no automorphisms to its flip then the embedding is chiral.

Chiral embeddings have a sense of clickwise.

Page 33: Graph Isomorphism

33

Clockwise_BFS(r, f, d):1.Choose a root vertex r.2.Choose a first child vertex f.3.Choose a direction d (clockwise or countercloswise)4.Do BFS subject to: The children of each vertex are visited in the chosen order starting with f for the root or otherwise, starting with the BFS parent.

Page 34: Graph Isomorphism

34

r

fd

Page 35: Graph Isomorphism

35

Page 36: Graph Isomorphism

36

Page 37: Graph Isomorphism

37

Page 38: Graph Isomorphism

38

Page 39: Graph Isomorphism

39

Page 40: Graph Isomorphism

40