SlideShare a Scribd company logo
1 of 9
Graph
A graph G consists of two finite sets: a non empty set V (G) of vertices
and a set E (G) of edges, where each edge is associated with a set
consisting of either one or two vertices called its endpoints. The
correspondence from edges to endpoints is called the edge-endpoint
function. An edge with just one endpoint is called a loop, and two or
more distinct edges with the same set of endpoints are said to be parallel.
An edge is said to connect its endpoints; two vertices that are connected
by an edge are called adjacent; and a vertex that is an endpoint of a loop
is said to be adjacent t0 itself. An edge is said to be incident on each of
its endpoints, and two edges incident on the same en d point are called
adjacent. A vertex on which no edges are incident is called isolated.
Infinite Graph
The set of vertices V of a graph G may be infinite. A graph with an
infinite vertex set or an infinite number of edges is called an infinite
graph.
Finite graph
A graph with a finite vertex set and a finite edge set is called a finite
graph
In general, a graph consists of a set of vertices and a set of edges
connecting various pairs of vertices. The edges may be straight or
curved and should either connect one vertex to another or a vertex to
itself, as shown below.
In this drawing, the vertices have been labeled with v’s and the edges
with e’s. When an edge connects a vertex to itself (as e5 does), it is
called a loop. When two edges connect the same pair of vertices (as e2
and e3 do), they are said to be parallel. Its s quite possible for a vertex to
be unconnected by an edge to any other vertex in the graph (as v5 is),
and in that case the vertex is said to be isolated.
Graphs have pictorial representations in which the vertices are
represented by dot sand the edges by line segments. A given pictorial
representation uniquely determines a graph.
Terminology
a. Write the vertex set
and the edge set, and give a
table showing the edge-
endpoint function.
b. Find all edges that are incident on v1, all vertices that are adjacent
to v1, all edges that are adjacent to e1, all loops, all parallel edges, all
vertices that are adjacent to themselves, an d all isolated vertices.
Solution
a. vertex set={ v1,v2,v3,v4,v5,v6}
Edge set = {e1, e2, e3, e4, e5, e6, e7}
Edge-end point function:
Note that the isolated vertex v4 does not appear
in this table. Although each edge must have
either one or two endpoints, a vertex need not
be an endpoint of an edge.
b. e1, e2, and e3 are incident on v1.
V2 and v3 are adjacent to v1.
e2, e3, and e4 are adjacent to e1.
e6 and e7 are loops.
e2 and e3 are parallel.
v5 and v6 are adjacent to themselves.
v4 is an isolated vertex.
As noted earlier, a given pictorial representation uniquely determines a
graph. However, a given graph may have more than one pictorial
representation. Such things as the lengths or curvatures of the edges and
the relative position of the vertices on the page may vary from one
pictorial representation to another.
Labeling drawings to Show they represent the same graph
Consider the two drawings shown in Figure Label vertices and edges in
such a way that both drawings represent the same graph.
Imagine putting one end of a piece of string at
the top vertex of Figure (a) (call this vertex v1),
then laying the string to the next adjacent vertex
on the lower right (call this vertex v2), then
laying it to the next adjacent vertex on the upper
left (v3), and so forth, returning finally to the top
vertex v1. Call the first edge e1, the second e2,
and so forth, as shown below.
Now imagine picking up the piece of string, together with its labels, and
repositioning it as follows:
This is the same as Figure (b), so both drawings are
representations of the graph
withvertexset{v1,v2,v3,v4,v5},edgeset{e1,e2,e3,e4,e
5},andedge-endpointfunction as follows:
simple graph
A simple graph is a graph that does not have any loops or parallel edges.
In a simple graph, an edge with end points v and w is denoted {v, w}.
Draw all simple graphs with the four vertices {u, v, w, and x} and two
edges, one of which is {u, v}.
Solution:
Each possible edge of a simple graph corresponds to a subset of two
vertices. Given four vertices, there are such subsets in all: {u, v},
{u, w}, {u, x}, {v, w}, {v, x}, and {w, x}. Now one edge of the graph is
specified to be {u, v}, so any of the remaining five from this list can be
chosen to be the second edge. The possibilities are shown on the next
page.
Another important class of graphs consists of those that are “complete”
in the sense that all pairs of vertices are connected by edges.
Deificationof complete graph
Let n be a positive integer. A complete graph on n vertices, denoted Kn,
is a simple graph with n vertices and exactly one edge connecting each
pair of distinct vertices.
The ‘K’ stands for the German word komplett, which means “complete.”
Complete Graphs on n Vertices: K1, K2, K3, K4 and K5
The complete graphs K1, K2, K3, K4, and K5 can be drawn as follows:
In yet another class of graphs, the vertex set can be separated into two
subsets: Each vertex in one of the subsets is connected by exactly one
edge to each vertex in the other subset, but not to any vertices in its own
subset. Such a graph is called complete bipartite.
Definition:
Let m and n be positive integers. A complete bipartite graph on (m, n)
vertices, denoted Km,n,isasimplegraphwithdistinctverticesv1,v2,...,vm
andw1,w2,..., wn that satisfies the following properties: For alli,k
=1,2,...,m and for all j,l = 1,2,...,n,
1. There is an edge from each vertex vi to each vertex wj.
2. There is no edge from any vertex vi to any other vertex vk.
3. There is no edge from any vertex wj to any other vertex wl.
The HandshakeTheorem
If G is any graph, then the sum of the degrees of all the vertices of
G equals twice the number of edges of G. Specifically, if the
vertices of G are v1,v2,...,vn, where n is a nonnegative integer,
then the total degree of G =deg(v1)+deg(v2)+···+deg(vn) =2·(the
number of edges of G).
Proof
Let G be a particular but arbitrarily chosen graph, and suppose that
G has n vertices v1, v2…vn and m edges, where n is a positive
integer and m is a nonnegative integer. We claim that each edge of
G contributes2tothetotaldegree of G. For suppose e is an arbitrarily
chosen edge with end points vi and vj. This edge contributes1 to
the degree of vi and 1 to the degree vj.As shown below, this is true
even if I = j, because an edge that is a loop is counted twice in
computing the degree of the vertex on which it is incident.
Therefore, e contributes 2 to the total degree of G. Since e was
arbitrarily chosen, this shows that each edge of G contributes 2 to
the total degree of G. Thus the total degree of G =2· (the number
of edges of G).
CorollaryTheorem
The total degree of a graph is even.
Proof:
The total degree of G equals 2 times the number of edges, which is
an integer, and so the total degree of G is even.
Determining Whether Certain Graphs Exist
Draw a graph with the specified properties or show that no such
graph exists.
a. A graph with four vertices of degrees 1, 1, 2, and3
b. A graph with four vertices of degrees 1, 1, 3, and3
c. A simple graph with four vertices of degrees 1, 1, 3, and3
Solution
a. No such graph is possible. The total degree of a graph is even. But a
graph with four vertices of degrees 1, 1, 2, and3would has a total degree
of 1+1+2+3=7, which is odd.
b. Let G be any of the graphs shown below.
In each case, no matter how the edges are labeled, deg (a) =1, deg (b)
=1, deg(c) = 3, and deg (d) =3.
c. There is no simple graph with four vertices of degrees 1, 1, 3,
and3
Regular Graph
A simple graph is called regular if every vertex of this graph has the
same degree. A regular graph is called n-regular if every vertex in this
graph has degree n.
A graph G is regular of degree k or k-regular if every vertex of G has
degree k. In other words, a graph is regular if every vertex has the same
degree. Following are some regular graphs.
REMARK:
The complete graph Kn is (n-1) regular.
Draw two 3-regular graphs with six vertices.

More Related Content

What's hot

Applications of graphs
Applications of graphsApplications of graphs
Applications of graphs
Tech_MX
 
Mithfh lecturenotes 9
Mithfh lecturenotes 9Mithfh lecturenotes 9
Mithfh lecturenotes 9
Praveen Kumar
 
introduction to graph theory
introduction to graph theoryintroduction to graph theory
introduction to graph theory
Chuckie Balbuena
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
ijceronline
 
Data structure computer graphs
Data structure computer graphsData structure computer graphs
Data structure computer graphs
Kumar
 

What's hot (20)

Applications of graphs
Applications of graphsApplications of graphs
Applications of graphs
 
Graph applications chapter
Graph applications chapterGraph applications chapter
Graph applications chapter
 
Mithfh lecturenotes 9
Mithfh lecturenotes 9Mithfh lecturenotes 9
Mithfh lecturenotes 9
 
Fallsem2015 16 cp4194-13-oct-2015_rm01_graphs
Fallsem2015 16 cp4194-13-oct-2015_rm01_graphsFallsem2015 16 cp4194-13-oct-2015_rm01_graphs
Fallsem2015 16 cp4194-13-oct-2015_rm01_graphs
 
Assignmnt 1 fdp
Assignmnt 1 fdpAssignmnt 1 fdp
Assignmnt 1 fdp
 
Graph in Data Structure
Graph in Data StructureGraph in Data Structure
Graph in Data Structure
 
Ar25260265
Ar25260265Ar25260265
Ar25260265
 
introduction to graph theory
introduction to graph theoryintroduction to graph theory
introduction to graph theory
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
Data structure computer graphs
Data structure computer graphsData structure computer graphs
Data structure computer graphs
 
Isomorphic graph
Isomorphic graphIsomorphic graph
Isomorphic graph
 
Solutions1.1
Solutions1.1Solutions1.1
Solutions1.1
 
INDEPENDENT AND CONNECTED DOMINATION NUMBER IN MIDDLE AND LINE GRAPHS
INDEPENDENT AND CONNECTED DOMINATION NUMBER IN MIDDLE AND LINE GRAPHSINDEPENDENT AND CONNECTED DOMINATION NUMBER IN MIDDLE AND LINE GRAPHS
INDEPENDENT AND CONNECTED DOMINATION NUMBER IN MIDDLE AND LINE GRAPHS
 
Connected and disconnected graph
Connected and disconnected graphConnected and disconnected graph
Connected and disconnected graph
 
C04 06 1923
C04 06 1923C04 06 1923
C04 06 1923
 
Graph ds
Graph dsGraph ds
Graph ds
 
Vector Geometry
Vector GeometryVector Geometry
Vector Geometry
 
H0431038048
H0431038048H0431038048
H0431038048
 
Graph theory
Graph theoryGraph theory
Graph theory
 
THREE DIMENSIONAL GEOMETRY
THREE DIMENSIONAL GEOMETRYTHREE DIMENSIONAL GEOMETRY
THREE DIMENSIONAL GEOMETRY
 

Similar to Ass. (3)graph d.m

1. Graph and Graph Terminologiesimp.pptx
1. Graph and Graph Terminologiesimp.pptx1. Graph and Graph Terminologiesimp.pptx
1. Graph and Graph Terminologiesimp.pptx
swapnilbs2728
 

Similar to Ass. (3)graph d.m (20)

Graphs.pdf
Graphs.pdfGraphs.pdf
Graphs.pdf
 
Magtibay buk bind#2
Magtibay buk bind#2Magtibay buk bind#2
Magtibay buk bind#2
 
Graph-theory.ppt
Graph-theory.pptGraph-theory.ppt
Graph-theory.ppt
 
Graph.ppt
Graph.pptGraph.ppt
Graph.ppt
 
Elements of Graph Theory for IS.pptx
Elements of Graph Theory for IS.pptxElements of Graph Theory for IS.pptx
Elements of Graph Theory for IS.pptx
 
Lecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptxLecture 1--Graph Algorithms -- Basics.pptx
Lecture 1--Graph Algorithms -- Basics.pptx
 
graph ASS (1).ppt
graph ASS (1).pptgraph ASS (1).ppt
graph ASS (1).ppt
 
Ppt of graph theory
Ppt of graph theoryPpt of graph theory
Ppt of graph theory
 
Unit 2: All
Unit 2: AllUnit 2: All
Unit 2: All
 
FCS (graphs).pptx
FCS (graphs).pptxFCS (graphs).pptx
FCS (graphs).pptx
 
Graph ASS DBATU.pptx
Graph ASS DBATU.pptxGraph ASS DBATU.pptx
Graph ASS DBATU.pptx
 
graph theory
graph theorygraph theory
graph theory
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Graph in Discrete mathemaetics.pptx
Graph in Discrete mathemaetics.pptxGraph in Discrete mathemaetics.pptx
Graph in Discrete mathemaetics.pptx
 
Graphs
GraphsGraphs
Graphs
 
1. Graph and Graph Terminologiesimp.pptx
1. Graph and Graph Terminologiesimp.pptx1. Graph and Graph Terminologiesimp.pptx
1. Graph and Graph Terminologiesimp.pptx
 
Types of graphs
Types of graphsTypes of graphs
Types of graphs
 
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph ColouringGraph Theory,Graph Terminologies,Planar Graph & Graph Colouring
Graph Theory,Graph Terminologies,Planar Graph & Graph Colouring
 
Graphs.pptx
Graphs.pptxGraphs.pptx
Graphs.pptx
 
Graph theory
Graph theory Graph theory
Graph theory
 

More from Syed Umair (20)

Assignement code
Assignement codeAssignement code
Assignement code
 
Tree 4
Tree 4Tree 4
Tree 4
 
Title page
Title pageTitle page
Title page
 
S.k
S.kS.k
S.k
 
Q.a
Q.aQ.a
Q.a
 
Prog
ProgProg
Prog
 
Perception
PerceptionPerception
Perception
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word document
 
New microsoft office word document (2)
New microsoft office word document (2)New microsoft office word document (2)
New microsoft office word document (2)
 
M.b
M.bM.b
M.b
 
C++ 4
C++ 4C++ 4
C++ 4
 
B.g
B.gB.g
B.g
 
Assignement of programming & problem solving
Assignement of programming & problem solvingAssignement of programming & problem solving
Assignement of programming & problem solving
 
Assignement of discrete mathematics
Assignement of discrete mathematicsAssignement of discrete mathematics
Assignement of discrete mathematics
 
A.i
A.iA.i
A.i
 
H m
H mH m
H m
 
Prog
ProgProg
Prog
 
Assignment c++12
Assignment c++12Assignment c++12
Assignment c++12
 
Assignement of discrete mathematics
Assignement of discrete mathematicsAssignement of discrete mathematics
Assignement of discrete mathematics
 
Assignement c++
Assignement c++Assignement c++
Assignement c++
 

Recently uploaded

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 

Ass. (3)graph d.m

  • 1. Graph A graph G consists of two finite sets: a non empty set V (G) of vertices and a set E (G) of edges, where each edge is associated with a set consisting of either one or two vertices called its endpoints. The correspondence from edges to endpoints is called the edge-endpoint function. An edge with just one endpoint is called a loop, and two or more distinct edges with the same set of endpoints are said to be parallel. An edge is said to connect its endpoints; two vertices that are connected by an edge are called adjacent; and a vertex that is an endpoint of a loop is said to be adjacent t0 itself. An edge is said to be incident on each of its endpoints, and two edges incident on the same en d point are called adjacent. A vertex on which no edges are incident is called isolated. Infinite Graph The set of vertices V of a graph G may be infinite. A graph with an infinite vertex set or an infinite number of edges is called an infinite graph. Finite graph A graph with a finite vertex set and a finite edge set is called a finite graph In general, a graph consists of a set of vertices and a set of edges connecting various pairs of vertices. The edges may be straight or curved and should either connect one vertex to another or a vertex to itself, as shown below.
  • 2. In this drawing, the vertices have been labeled with v’s and the edges with e’s. When an edge connects a vertex to itself (as e5 does), it is called a loop. When two edges connect the same pair of vertices (as e2 and e3 do), they are said to be parallel. Its s quite possible for a vertex to be unconnected by an edge to any other vertex in the graph (as v5 is), and in that case the vertex is said to be isolated. Graphs have pictorial representations in which the vertices are represented by dot sand the edges by line segments. A given pictorial representation uniquely determines a graph. Terminology a. Write the vertex set and the edge set, and give a table showing the edge- endpoint function.
  • 3. b. Find all edges that are incident on v1, all vertices that are adjacent to v1, all edges that are adjacent to e1, all loops, all parallel edges, all vertices that are adjacent to themselves, an d all isolated vertices. Solution a. vertex set={ v1,v2,v3,v4,v5,v6} Edge set = {e1, e2, e3, e4, e5, e6, e7} Edge-end point function: Note that the isolated vertex v4 does not appear in this table. Although each edge must have either one or two endpoints, a vertex need not be an endpoint of an edge. b. e1, e2, and e3 are incident on v1. V2 and v3 are adjacent to v1. e2, e3, and e4 are adjacent to e1. e6 and e7 are loops. e2 and e3 are parallel. v5 and v6 are adjacent to themselves. v4 is an isolated vertex. As noted earlier, a given pictorial representation uniquely determines a graph. However, a given graph may have more than one pictorial representation. Such things as the lengths or curvatures of the edges and the relative position of the vertices on the page may vary from one pictorial representation to another.
  • 4. Labeling drawings to Show they represent the same graph Consider the two drawings shown in Figure Label vertices and edges in such a way that both drawings represent the same graph. Imagine putting one end of a piece of string at the top vertex of Figure (a) (call this vertex v1), then laying the string to the next adjacent vertex on the lower right (call this vertex v2), then laying it to the next adjacent vertex on the upper left (v3), and so forth, returning finally to the top vertex v1. Call the first edge e1, the second e2, and so forth, as shown below. Now imagine picking up the piece of string, together with its labels, and repositioning it as follows: This is the same as Figure (b), so both drawings are representations of the graph withvertexset{v1,v2,v3,v4,v5},edgeset{e1,e2,e3,e4,e 5},andedge-endpointfunction as follows:
  • 5. simple graph A simple graph is a graph that does not have any loops or parallel edges. In a simple graph, an edge with end points v and w is denoted {v, w}. Draw all simple graphs with the four vertices {u, v, w, and x} and two edges, one of which is {u, v}. Solution: Each possible edge of a simple graph corresponds to a subset of two vertices. Given four vertices, there are such subsets in all: {u, v}, {u, w}, {u, x}, {v, w}, {v, x}, and {w, x}. Now one edge of the graph is specified to be {u, v}, so any of the remaining five from this list can be chosen to be the second edge. The possibilities are shown on the next page. Another important class of graphs consists of those that are “complete” in the sense that all pairs of vertices are connected by edges.
  • 6. Deificationof complete graph Let n be a positive integer. A complete graph on n vertices, denoted Kn, is a simple graph with n vertices and exactly one edge connecting each pair of distinct vertices. The ‘K’ stands for the German word komplett, which means “complete.” Complete Graphs on n Vertices: K1, K2, K3, K4 and K5 The complete graphs K1, K2, K3, K4, and K5 can be drawn as follows: In yet another class of graphs, the vertex set can be separated into two subsets: Each vertex in one of the subsets is connected by exactly one edge to each vertex in the other subset, but not to any vertices in its own subset. Such a graph is called complete bipartite. Definition: Let m and n be positive integers. A complete bipartite graph on (m, n) vertices, denoted Km,n,isasimplegraphwithdistinctverticesv1,v2,...,vm andw1,w2,..., wn that satisfies the following properties: For alli,k =1,2,...,m and for all j,l = 1,2,...,n, 1. There is an edge from each vertex vi to each vertex wj. 2. There is no edge from any vertex vi to any other vertex vk. 3. There is no edge from any vertex wj to any other vertex wl.
  • 7. The HandshakeTheorem If G is any graph, then the sum of the degrees of all the vertices of G equals twice the number of edges of G. Specifically, if the vertices of G are v1,v2,...,vn, where n is a nonnegative integer, then the total degree of G =deg(v1)+deg(v2)+···+deg(vn) =2·(the number of edges of G). Proof Let G be a particular but arbitrarily chosen graph, and suppose that G has n vertices v1, v2…vn and m edges, where n is a positive integer and m is a nonnegative integer. We claim that each edge of G contributes2tothetotaldegree of G. For suppose e is an arbitrarily chosen edge with end points vi and vj. This edge contributes1 to the degree of vi and 1 to the degree vj.As shown below, this is true even if I = j, because an edge that is a loop is counted twice in computing the degree of the vertex on which it is incident.
  • 8. Therefore, e contributes 2 to the total degree of G. Since e was arbitrarily chosen, this shows that each edge of G contributes 2 to the total degree of G. Thus the total degree of G =2· (the number of edges of G). CorollaryTheorem The total degree of a graph is even. Proof: The total degree of G equals 2 times the number of edges, which is an integer, and so the total degree of G is even. Determining Whether Certain Graphs Exist Draw a graph with the specified properties or show that no such graph exists. a. A graph with four vertices of degrees 1, 1, 2, and3 b. A graph with four vertices of degrees 1, 1, 3, and3 c. A simple graph with four vertices of degrees 1, 1, 3, and3 Solution a. No such graph is possible. The total degree of a graph is even. But a graph with four vertices of degrees 1, 1, 2, and3would has a total degree of 1+1+2+3=7, which is odd. b. Let G be any of the graphs shown below.
  • 9. In each case, no matter how the edges are labeled, deg (a) =1, deg (b) =1, deg(c) = 3, and deg (d) =3. c. There is no simple graph with four vertices of degrees 1, 1, 3, and3 Regular Graph A simple graph is called regular if every vertex of this graph has the same degree. A regular graph is called n-regular if every vertex in this graph has degree n. A graph G is regular of degree k or k-regular if every vertex of G has degree k. In other words, a graph is regular if every vertex has the same degree. Following are some regular graphs. REMARK: The complete graph Kn is (n-1) regular. Draw two 3-regular graphs with six vertices.