Lesson 13 Graphs
Lesson 13 Graphs
LESSON 13 Week 17
Topic: Graphs
A graph G consists of
an edge-endpoint function on G which associates each edge a unique pair of end points on V.
Note
1
Immaculate Conception - I College of Arts and Technology
DISCRETE STRUCTURE 2 (CS2)
Examples
1. In the graph below (heavy dots denote vertices, lines or arcs denote edges)
the vertex set V={v1, v2, v3, v4,v5}, the edge set E={e1, e2, e3, e4} and the edge-endpoint
function is given by
Note: The e1 type edge is called a loop, and e3, e4, e5 type edges are called multiple
edges or parallel edges.
the vertex set V={v1, v2, v3}, the edge set E={e1, e2, e3, e4}, and the edge-endpoint function is
given by
2
Immaculate Conception - I College of Arts and Technology
DISCRETE STRUCTURE 2 (CS2)
A simple graph is a graph that has neither loops nor parallel edges. In such cases, the
identification of an edge e with its endpoints (e) will not cause confusion. Thus an edge with
endpoints v and w may be denoted by {v, w} in simple graphs.
A complete graph is a simple graph in which each pair of vertices are joined by an edge.
Examples
3. The complete graph with n vertices is denoted by Kn. The first few are
4. A graph is complete bipartite if it is a simple graph, and its vertices can be put into two
groups so that any pair of vertices from different groups are joined by an edge while no pair of
vertices are joined by an edge if they are from a same group. Such a graph is denoted
by Km,n if the two groups contains exactly m and n vertices respectively. For example,