• No results found

Graph theory

N/A
N/A
Protected

Academic year: 2022

Share "Graph theory"

Copied!
44
0
0

Loading.... (view fulltext now)

Full text

(1)

CS 207m: Discrete Structures (Minor)

Graph theory

Subgraphs: cliques, independent sets and large bipartite subgraphs

Lecture 17 Mar 16 2018

(2)

Topic 3: Graph theory

Recap of last fewlectures:

1. Basics: graphs, paths, cycles, walks, trails; connected graphs.

2. Eulerian graphs and a characterization in terms of degrees of vertices.

3. Bipartite graphs and a characterization in terms of odd length cycles.

4. Graph representation (as matrices) and isomorphism 5. How to check if two graphs are isomorphic/non-isomorphic? 6. Graph automorphisms

Reference: Sections 1.1-1.3 of Chapter 1 from Douglas West.

(3)

Topic 3: Graph theory

Recap of last fewlectures:

1. Basics: graphs, paths, cycles, walks, trails; connected graphs.

2. Eulerian graphs and a characterization in terms of degrees of vertices.

3. Bipartite graphs and a characterization in terms of odd length cycles.

4. Graph representation (as matrices) and isomorphism 5. How to check if two graphs are isomorphic/non-isomorphic?

6. Graph automorphisms

Reference: Sections 1.1-1.3 of Chapter 1 from Douglas West.

(4)

This lecture

Subgraphs and special subgraphs of a graph

I Cliques and independent sets.

I Bipartite subgraphs of a graph.

(5)

Recall: Graph isomorphism

Definition

Anisomorphism from simple graphGtoH is abijection f :V(G)→V(H) such thatuv∈E(G) ifff(u)f(v)∈E(H).

I Thus, it is a bijection that “preserves” the edge relation.

I An equivalence relationon simple graphs.

(6)

Recall: Graph isomorphism

I To show that two graphs are isomorphic, you have to 1. give names to vertices

2. specify a bijection & check that it preserves the adjacency relation

i.e., check that adjacency matrices become identical by permuting rows and columns.

I To show that two graphs arenon-isomorphic, find a structural property that is different.

(7)

Recap: Properties of isomorphic graphs

Intuitively, if two graphs are isomorphic then all structural properties, i.e., properties that do not depend on the naming of vertices are preserved.

Theorem

IfGis isomorphic to H, then the following properties are preserved:

1. G,H have same # vertices.

2. G,H have same # edges.

3. G,H have the same # vertices of degree k,∀k∈N.

4. Ghask paths/cycles of lengthr iffH hask paths/cycles of lengthr.

5. G is bipartite iffH is bipartite.

6. . . .

(8)

Recap: Graph Automorphisms

Definition

Anisomorphism from simple graphGtoH is abijection f :V(G)→V(H) such thatuv∈E(G) ifff(u)f(v)∈E(H).

What ifG=H?

Definition

Anautomorphism ofG is an isomorphism fromGto itself, i.e., abijection f :V(G)→V(G) such thatuv ∈E(G) iff

f(u)f(v)∈E(G).

(9)

Recap: Graph Automorphisms

Definition

Anisomorphism from simple graphGtoH is abijection f :V(G)→V(H) such thatuv∈E(G) ifff(u)f(v)∈E(H).

What ifG=H?

Definition

Anautomorphism ofG is an isomorphism fromGto itself, i.e., abijection f :V(G)→V(G) such thatuv ∈E(G) iff

f(u)f(v)∈E(G).

Automorphisms are a measure of symmetry.

Practical applications in graph drawing, visualization, molecular symmetry, structured boolean satisfiability, formal verification

(10)

Recap: Graph Automorphisms

Definition

Anisomorphism from simple graphGtoH is abijection f :V(G)→V(H) such thatuv∈E(G) ifff(u)f(v)∈E(H).

What ifG=H?

Definition

Anautomorphism ofG is an isomorphism fromGto itself, i.e., abijection f :V(G)→V(G) such thatuv ∈E(G) iff

f(u)f(v)∈E(G).

Automorphisms are a measure of symmetry.

Practical applications in graph drawing, visualization, molecular symmetry, structured boolean satisfiability, formal verification

I What are the automorphisms of P4?

I How many automorphisms does Kn have?

I How many automorphisms does K have?

(11)

Some basic stuff that we have already seen

Degree-Sum Formula (also called Handshake Lemma!) For any graphG with vertex setV and edge setE:

X

v∈V

d(v) = 2|E|

(12)

Some basic stuff that we have already seen

Subgraphs of a graph G

A subgraphH of a graphG is a graphH such that V(H)⊆V(G) andE(H)⊆E(G) (and the assignment of endpoints to edges inH is same as in G).

(13)

Some basic stuff that we have already seen

Subgraphs of a graph G

A subgraphH of a graphG is a graphH such that V(H)⊆V(G) andE(H)⊆E(G) (and the assignment of endpoints to edges inH is same as in G).

I E.g., apathin a graph Gis a subgraph of G.

I A maximal pathH is a subgraph ofGs.t. there is no other pathH0 inGsuch that H is a subgraph of H0.

(14)

Some basic stuff that we have already seen

Subgraphs of a graph G

A subgraphH of a graphG is a graphH such that V(H)⊆V(G) andE(H)⊆E(G) (and the assignment of endpoints to edges inH is same as in G).

I E.g., apathin a graph Gis a subgraph of G.

I A maximal pathH is a subgraph ofGs.t. there is no other pathH0 inGsuch that H is a subgraph of H0.

I Let us now consider some special subgraphs...

(15)

Cliques and independent sets

I Consider a large social network graph where friends are linked by an edge.

I What is the largest clique of friends?

I If we want to spread a youtube video, how many people should we send it to so that we are guaranteed everyone will see it (assuming friends forward to each other)?

(16)

Cliques and independent sets

Cliques and independent sets

I A clique in a graph is a set of pairwise adjacent vertices.

I An independent setin a graph is a set of pairwise non-adjacent vertices.

(17)

Cliques and independent sets

Cliques and independent sets

I A clique in a graph is a set of pairwise adjacent vertices.

I An independent setin a graph is a set of pairwise non-adjacent vertices.

Size of a clique/independent set is the number of vertices in it.

(18)

Cliques and independent sets

Cliques and independent sets

I A clique in a graph is a set of pairwise adjacent vertices.

I An independent setin a graph is a set of pairwise non-adjacent vertices.

Size of a clique/independent set is the number of vertices in it.

I Thus, a clique in a graphGis a complete subgraph of G.

(19)

Cliques and independent sets

Cliques and independent sets

I A clique in a graph is a set of pairwise adjacent vertices.

I An independent setin a graph is a set of pairwise non-adjacent vertices.

Size of a clique/independent set is the number of vertices in it.

I Thus, a clique in a graphGis a complete subgraph of G.

I An independent setinG is a complete subgraph of G, where Gis the complement ofGobtained by making all adjacent vertices non-adjacent and vice versa.

(20)

Cliques and independent sets

Cliques and independent sets

I A clique in a graph is a set of pairwise adjacent vertices.

I An independent setin a graph is a set of pairwise non-adjacent vertices.

Size of a clique/independent set is the number of vertices in it.

Questions:

I What is the size of the largest clique/independent set in each of the above graphs? In any complete graph?

(21)

Cliques and independent sets

Cliques and independent sets

I A clique in a graph is a set of pairwise adjacent vertices.

I An independent setin a graph is a set of pairwise non-adjacent vertices.

Size of a clique/independent set is the number of vertices in it.

Questions:

I What is the size of the largest clique/independent set in each of the above graphs? In any complete graph?

I Given graph G, integerk, does Ghave a clique of size k?

(22)

Cliques and independent sets

Cliques and independent sets

I A clique in a graph is a set of pairwise adjacent vertices.

I An independent setin a graph is a set of pairwise non-adjacent vertices.

Size of a clique/independent set is the number of vertices in it.

Questions:

I In a graph with 6 vertices, can you always find a clique or an independent set of size 3?

(23)

Cliques and independent sets

Cliques and independent sets

I A clique in a graph is a set of pairwise adjacent vertices.

I An independent setin a graph is a set of pairwise non-adjacent vertices.

Size of a clique/independent set is the number of vertices in it.

Questions:

I In a graph with 6 vertices, can you always find a clique or an independent set of size 3?

I Yes, becauseR(3,3) = 6!

(24)

Cliques and independent sets

Cliques and independent sets

I A clique in a graph is a set of pairwise adjacent vertices.

I An independent setin a graph is a set of pairwise non-adjacent vertices.

Size of a clique/independent set is the number of vertices in it.

Ramsey’s theorem - restated

In any graph withR(k, `) vertices, there exists either a clique of sizekor an independent set of size `.

(25)

Bipartite subgraphs of graphs

I Does a graph Galways have a bipartite subgraph?

I How large is it?

(26)

Bipartite subgraphs of graphs

I Does a graph Galways have a bipartite subgraph?

I How large is it?

Theorem

Every simple graphGhas a bipartite subgraph with at least

|E|/2 edges.

(27)

Bipartite subgraphs of graphs

I Does a graph Galways have a bipartite subgraph?

I How large is it?

Theorem

Every simple graphGhas a bipartite subgraph with at least

|E|/2 edges.

Proof: (by extremality principle)

(28)

Bipartite subgraphs of graphs

Theorem

Every simple graphGhas a bipartite subgraph with at least

|E|/2 edges.

Proof: (by extremality principle) LetH be the bipartite subgraph ofGs.t,# edges crossing bipartition is max possible.

X Y

v

(29)

Bipartite subgraphs of graphs

Theorem

Every simple graphGhas a bipartite subgraph with at least

|E|/2 edges.

Proof: (by extremality principle) LetH be the bipartite subgraph ofG s.t,# edges crossing bipartition is max possible.

I Either, ∀v∈V(G), dH(v)≥ dG2(v), then |E(H)| ≥ |E(G)|2 .

X Y

v

Here,dH(v) denotes degree ofv inH and dG(v) its degree inG.

(30)

Bipartite subgraphs of graphs

Theorem

Every simple graphGhas a bipartite subgraph with at least

|E|/2 edges.

Proof: (by extremality principle) LetH be the bipartite subgraph ofG s.t,# edges crossing bipartition is max possible.

I Either, ∀v∈V(G), dH(v)≥ dG2(v), then |E(H)| ≥ |E(G)|2 .

I Or,∃v ∈V(G) such that dH(v)< dG2(v).

X Y

v

(31)

Bipartite subgraphs of graphs

Theorem

Every simple graphGhas a bipartite subgraph with at least

|E|/2 edges.

Proof: (by extremality principle) LetH be the bipartite subgraph ofG s.t,# edges crossing bipartition is max possible.

I Either, ∀v∈V(G), dH(v)≥ dG2(v), then |E(H)| ≥ |E(G)|2 .

I Or,∃v ∈V(G) such that dH(v)< dG2(v). Then switching v to other partition contradicts choice of H.

X Y

v

(32)

Bipartite subgraphs of graphs

Theorem

Every simple graphGhas a bipartite subgraph with at least

|E|/2 edges.

Proof: (by extremality principle) LetH be the bipartite subgraph ofG s.t,# edges crossing bipartition is max possible.

I Either, ∀v∈V(G), dH(v)≥ dG2(v), then |E(H)| ≥ |E(G)|2 .

I Or,∃v ∈V(G) such that dH(v)< dG2(v). Then switching v to other partition contradicts choice of H.

X Y

v

(33)

Bipartite subgraphs of graphs

Theorem

Every simple graphGhas a bipartite subgraph with at least

|E|/2 edges.

Proof: (by extremality principle) LetH be the bipartite subgraph ofG s.t,# edges crossing bipartition is max possible.

I Either, ∀v∈V(G), dH(v)≥ dG2(v), then |E(H)| ≥ |E(G)|2 .

I Or,∃v ∈V(G) such that dH(v)< dG2(v). Then switching v to other partition contradicts choice of H.

X Y

v

I Can we make this into an algorithm to produce suchH?

(34)

Relations between vertices

I We considered a relation between graphs (isomorphism).

I But what about between vertices? Can you think of interesting relations?

(35)

Relations between vertices

I We considered a relation between graphs (isomorphism).

I But what about between vertices? Can you think of interesting relations?

1. Adjacency: uRv iff there is an edge betweenu and v. Any nice properties?

(36)

Relations between vertices

I We considered a relation between graphs (isomorphism).

I But what about between vertices? Can you think of interesting relations?

1. Adjacency: uRv iff there is an edge betweenu and v. Any nice properties?

2. Connectedness: uP v iff there is a path between u andv.

(37)

Relations between vertices

I We considered a relation between graphs (isomorphism).

I But what about between vertices? Can you think of interesting relations?

1. Adjacency: uRv iff there is an edge betweenu and v. Any nice properties?

2. Connectedness: uP v iff there is a path between u andv.

P is an equivalence relation.

(38)

Relations between vertices

I We considered a relation between graphs (isomorphism).

I But what about between vertices? Can you think of interesting relations?

1. Adjacency: uRv iff there is an edge betweenu and v. Any nice properties?

2. Connectedness: uP v iff there is a path between u andv.

P is an equivalence relation.

Definition

Amaximal connected subgraphof Gis a subgraph that is connected and is not contained in any other connected subgraph ofG.

Thecomponentsof Gare its maximal connected subgraphs.

Thus, equivalence classes ofP are the vertex sets of the

(39)

Components and cut-edges

Properties of components

I A component with no edges is called trivial. Thus isolated verices form trivial components.

I Components are pairwise disjoint.

(40)

Components and cut-edges

Properties of components

I A component with no edges is called trivial. Thus isolated verices form trivial components.

I Components are pairwise disjoint.

I What happens to the number of components when you add or delete an edge?

(41)

Components and cut-edges

Properties of components

I A component with no edges is called trivial. Thus isolated verices form trivial components.

I Components are pairwise disjoint.

I What happens to the number of components when you add or delete an edge?

I Edges whose deletion increases # components are called cut-edges.

(42)

Components and cut-edges

Properties of components

I A component with no edges is called trivial. Thus isolated verices form trivial components.

I Components are pairwise disjoint.

I What happens to the number of components when you add or delete an edge?

I Edges whose deletion increases # components are called cut-edges.

Theorem: Characterize cut-edges using cycles

(43)

Components and cut-edges

Properties of components

I A component with no edges is called trivial. Thus isolated verices form trivial components.

I Components are pairwise disjoint.

I What happens to the number of components when you add or delete an edge?

I Edges whose deletion increases # components are called cut-edges.

Theorem: Characterize cut-edges using cycles Exercise!

(44)

Components and cut-edges

Properties of components

I A component with no edges is called trivial. Thus isolated verices form trivial components.

I Components are pairwise disjoint.

I What happens to the number of components when you add or delete an edge?

I Edges whose deletion increases # components are called cut-edges.

Theorem: Characterize cut-edges using cycles

Exercise! An edge is a cut-edge iff it belongs to no cycle.

References

Related documents

Assumed a Geometric Graph model of a Wireless Sensor Network HD is not a good measure of ED for arbitrary node placement Established high probability bounds on the ED, given the HD

The increase in drug R&amp;D investment came as some of the largest funders focused on furthering their research into long-acting HIV drug formulations: the US NIH increased its

5.5 shows the effect of variation of voltage on light output and power consumption for fluorescent tube lights.. Similar variations are observed on other gas discharge lamps like

Adding a resistor Adding a resistor (R E ) to the emitter circuit stabilizes circuit stabilizes the bias circuit... Improved Biased Stability Improved Biased Stability

rGO is consisting of about nine layers of rGO sheets of a wrinkled surface morphology with an intensity ratio of D to G band (I D / I G ) of 1.17 and an interplanar d-spacing of 0.36

A cograph G is clique vertex irreducible if and only if it can be reduced to a trivial graph by recursively deleting vertices of full degree in each of the

The cliques of ∆(G) are induced by the vertices corresponding to the edges of G incident on a vertex of degree at least 3 whose other end vertices induce a complete graph and by

The Chief Mechanical Engineer has one or more deputies to assist him in his work of administration and control. One such deputy is called Works Manager or Deputy Chief