Scribed Notes 24 (November 22nd)
Scribed Notes 24 (November 22nd)
VERTEX DEGREE
Degree of a vertex is the number of edges falling on it. It tells us how many other
vertices are adjacent to that vertex.
The vertices having zero degree are called isolated vertices. They don't have any
other vertex connected to them.
DEGREE SEQUENCE
Degree sequence of undirected graph is list of degrees written in any order depending on
application, there should be some standard order. (increasing/non-decreasing,
decreasing/non-increasing neighbourhood, random based).
For Ex:
Decreasing Degree Sequence for above graph is as follows:
4,3,2,2,2,2,2,1,1,1
Neighbourhood/Connection Degree Sequence for above graph is as follows:
4,2,2,1,1,1,2,3,2,2
FINDING MAX ALGORITHM
Find_Max(A)
1. Max <- A[1]
2. Pos <- 1
3. For i <- 2 to n
4. If A[i] > Max
5. Then Max <- A[i]
6. Pos <- i
7. Return Max, Pos
Denotion : d( avg )
Average Degree of above Graph is as follows :
4+3+2+2+2+2+2+1+1+1 20
d( avg ) =
10
=
10
=2
REGULAR GRAPHS
Theorem: The sum of degree of all vertices of a regular graph is twice the size of regular graph.
Mathematically,
∑ deg(𝑣) = 2 | 𝐸 |
𝑣 ∈V
where, |E| stands for the number of edges in the graph (size of graph).
(Before) 4,2,2,1,1,1,2,3,2,2
(After) 1,1,0,0,1,2,3,2,2
REVERSE PROBLEM
HAVEL-HAKIMI ALGORITHM
4,3,2,2,2,2,2,1,1,1
Assuming deleted vertex is adjacent to the immediately appearing neighbours in the list.
4,3,2,2,2,2,2,1,1,1
2,1,1,1,2,2,1,1,1
Now this creates ambiguity, there are chances that vertex with vertex degree 4 can be adjacent
to some other vertex which is not present among immediate preceding 4 degree vertex (i.e.
there might be a graph with different adjacency)
Reason is as follows :
d(y) is bigger set than d(z)
If d(y)>d(z)
(x,y) ∉ E
(x,z) ∈ E
If there is a set of 5 elements and a set of 3 elements. It is guaranteed that what is there in a 5 element
set is not going to be present in a set of 3 elements.
N(Y) ⊆ N(Z)
Suppose N(Y)’s every element also belongs to N(Z). Therefore, N(Y) ⊆ N(Z). Cardinality of subset
cannot be greater than set. Thus proving by contradiction as below:
4 3 2 2 2 2 2 1 1 1
v1 v2 v3 v4 v5 v6 v7 v8 v9 v10
Deleting V1
v1 v2 v3 v4 v5 v6 v7 v8 v9 v10
0 2 1 1 1 2 2 1 1 1
v1 v2 v3 v4 v5 v6 v7 v8 v9 v10
v2 v6 v7 v3 v4 v5 v8 v9 v10 v1
Deleting V2
0 2-1 2-1 1 1 1 1 1 1 0
=1 =1
v2 v6 v7 v3 v4 v5 v8 v9 v10 v1
1 1 1 1 1 1 1 1 0 0
v6 v7 v3 v4 v5 v8 v9 v10 v1 v2
Deleting V6
0 1-1 1 1 1 1 1 1 0 0
=0
v6 v7 v3 v4 v5 v8 v9 v10 v1 v2
1 1 1 1 1 1 0 0 0 0
v3 v4 v5 v8 v9 v10 v1 v2 v6 v7
Deleting V3
0 1 -1 1 1 1 1 0 0 0 0
=0
v3 v4 v5 v8 v9 v10 v1 v2 v6 v6
1 1 1 1 0 0 0 0 0 0
v5 v8 v9 v10 v1 v2 v6 v7 v3 v4
Deleting V5
0 0 1 1 0 0 0 0 0 0
v5 v8 v9 v10 v1 v2 v6 v7 v3 v4
1 1 0 0 0 0 0 0 0 0
v9 v10 v1 v2 v6 v7 v3 v4 v5 v8
Deleting V9
0 1-1 0 0 0 0 0 0 0 0
=0
v9 v10 v1 v2 v6 v6 v3 v4 v5 v8
0 1-1 0 0 0 0 0 0 0 0
=0
v9 v10 v1 v2 v6 v6 v3 v4 v5 v8
Step 4 : In step 3 v9 vertex has degree vertex 1 (when we are deleting v9) and is affecting v10. Therefore, we can
say that v9 is connected with v10
In step 3 v5 vertex has degree vertex 1 (when we are deleting v5) and is affecting v8. Therefore, we can say that
v5 is connected with v8.
In step 3 v3 vertex has degree vertex 1 (when we are deleting v3) and is affecting v4. Therefore, we can say that
v3 is connected with v4.
In step 3 v6 vertex has degree vertex 1 (when we are deleting v6) and is affecting v7. Therefore, we can say that
v6 is connected with v7.
In step 3 v2 vertex has degree vertex 2 (when we are deleting v2) and is affecting v6 and v7. Therefore, we can
say that v2 is connected with v6 and v7.
In step 3 v1 vertex has degree vertex 4 (when we are deleting v1) and is affecting v2, v3, v4 and v5. Therefore,
we can say that v1 is connected with v2, v3, v4 and v5.
Step 5 :
Comparing above 2 graphs, we came to know they are not same and to make it similar we know that we have to
switch 2 edges. So we are removing 2 edges that were present (and making them absent) adding other 2 edges
which were absent (and making them present). Following this criteria we build the below graph that makes the
above 2 graph similar from vertex degrees point of view.
Red Line indicates deleted lines.
Remove 2 connections that are present and add 2 connections that are absent among the loop of those
vertex.
Havel-Hakimi’s Theorem might result into varying graph from person to person.