Discrete chapter 4
Discrete chapter 4
Graph Theory
3.1. Definitions and Examples
Undirected graph Directed graph
loop
G=(V,E)
isolated vertex
multiple
edges
Pendant vertex
Notes:
1. Adjacent :- two vertices are said to be adjacent if there is an edge between them.
2. Degree of a vertex , d(v):- is the number of edges incident with it.
3. A vertex is pendant if and only if it has degree one. (only 1 edge is incident with it)
4. A vertex of degree zero is called isolated. (no edge is incident with it)
General Types of Graph
1. Undirected Graph
Definition:- A graph G = (V , E) consists of V, a non-empty set of
vertices (or nodes) and E, a set of edges. Each edge has either one or
two vertices associated with it, called its end points. An edge is said to
connect its endpoints.
2. Directed Graph
Definition:- A directed graph (or digraph) (V , E) consists of a nonempty
set of vertices V and a set of directed edges (or arcs) E. Each directed
edge is associated with an ordered pair of vertices.
The directed edge associated with the ordered pair (u, v) is said to start
at u and end at v.
3. Mixed Graph
Definition:- A graph with both directed and undirected
edges is called a mixed graph.
Types of Undirected Graph
1. Simple Graph
-A graph in which each edge connects two different vertices and where
no two edges connect the same pair of vertices is called a simple graph.
-In other word, A graph with out loops and multiple edges.
An edge that connect a vertex to itself is called loop
2. Multi Graph
Graphs that may have multiple edges connecting the same vertices are
called multigraphs.
3. Pseudo Graph
Graphs that may include loops, and possibly multiple
edges connecting the same pair of vertices or a vertex to
itself, are sometimes called pseudo graphs
3.2. Types of Simple Graphs
1. Empty Graph(En) is a graph without edges.
2. Cycle Graph(Cn)
3. Wheel Graph(Wn)
4. Complete Graph(Kn)
5. Regular Graph(Rn)
2. Cycle:- Continued…
A cycle C𝑛 , 𝑛 ≥ 3, consists of n vertices v1, v2,..., vn and
edges {v1, v2}, {v2, v3},...,{vn−1, vn}, and {vn, v1}. The cycles
C3, C4, C5, and C6 are displayed in Figure below
• Properties:
o There is a unique simple path between any 2
of its vertices.
o No loops.
o No multiple edges.