CSE 321 Discrete Structures Winter 2008 Lecture 25

  • Slides: 21
Download presentation
CSE 321 Discrete Structures Winter 2008 Lecture 25 Graph Theory

CSE 321 Discrete Structures Winter 2008 Lecture 25 Graph Theory

Graph Theory • Graph formalism – G = (V, E) – Vertices – Edges

Graph Theory • Graph formalism – G = (V, E) – Vertices – Edges • Directed Graph – Edges ordered pairs • Undirected Graph – Edges sets of size two

Graph examples • Communication Networks • Road networks

Graph examples • Communication Networks • Road networks

Social networks • Community Graph – Linked In, Face Book • Transactions – Ebay

Social networks • Community Graph – Linked In, Face Book • Transactions – Ebay • Authorship – Erdos Number

The web graph

The web graph

Page Rank • Determine the value of a page based on link analysis •

Page Rank • Determine the value of a page based on link analysis • Model of randomly traversing a graph – Weighting factors on nodes – Damping (random transitions)

Graph terminology • Neighborhood • Degree

Graph terminology • Neighborhood • Degree

Degree sequence • Find a graph with degree sequence – 3, 3, 2, 1,

Degree sequence • Find a graph with degree sequence – 3, 3, 2, 1, 1 • Find a graph with degree sequence – 3, 3, 3

Handshake Theorem

Handshake Theorem

Directed Degree Theorem

Directed Degree Theorem

Special Graphs • Complete Graphs Kn • Cycle Cn • Hypercube Qn • Mesh

Special Graphs • Complete Graphs Kn • Cycle Cn • Hypercube Qn • Mesh Mn, m

Bipartite Graphs

Bipartite Graphs

2 -coloring • A graph is two colorable iff all cycles have even length

2 -coloring • A graph is two colorable iff all cycles have even length

Graph Representations • Adjacency Lists • Adjacency Matrices • Incidence Matrices

Graph Representations • Adjacency Lists • Adjacency Matrices • Incidence Matrices

Graph Connectivity

Graph Connectivity

Strong connectivity vs. Weak Connectivity

Strong connectivity vs. Weak Connectivity

Strongly Connected Components

Strongly Connected Components

Counting Paths Let A be the Adjacency Matrix. What is A 2? b a

Counting Paths Let A be the Adjacency Matrix. What is A 2? b a c d e

Graph Isomorphism I Are these two graphs the same? a y d w b

Graph Isomorphism I Are these two graphs the same? a y d w b x c z

Graph Isomorphism II Are these graphs the same?

Graph Isomorphism II Are these graphs the same?

Graph Isomorphism III Are these graphs the same?

Graph Isomorphism III Are these graphs the same?