Graph Theory 1
Graph Theory 1
Theory
M. ZEESHAN KHAN
Graph
A graph is a pictorial and mathematical representation of a set of objects where some pairs of
objects are connected by links.
The interconnected objects are represented by points termed as vertices or nodes and the links
that connect the vertices are called edges or arcs or lines.
In other words, a graph is an ordered pair G = (V, E) where,
•G specifies the graph.
•V is the vertex-set whose elements are called the vertices, or nodes of the graph. This set is often
denoted by V(G) or just V.
•E is the edge-set whose elements are called the edges, or connections between vertices of the
graph. This set is often denoted by E(G) or just E.
In the above graph,
V = {A, B, C, D, E}
E = {AB, BC, CA, AD}
Graph Theory
2.Line Here, 'A' and 'B' are the points and links between two
points is called a line.
A vertex is a synonym of point in graph i.e. one of
the points on which the graph is defined and which
may be connected by lines/edges is called a vertex.
Here, 'A' and 'B' are the vertices and the link 'AB' between them
is called an edge.
Graph specifies to a "function graph" or "graph of a function"
i.e. a plot.
5. Graph
Example:
1. Null Graph
Example:
2. Trivial v
Graph
In the above graph, there is only one vertex 'v' without any
edge. Therefore, it is a trivial graph.
A simple graph is the undirected graph with no parallel
edges and no loops.
A simple graph which has n vertices, the degree of every vertex is
at most n -1.
3. Simple
Graph
In the above example, First graph is not a simple graph because it
has two edges between the vertices A and B and it also has a
loop.
Second graph is a simple graph because it does not contain any
loop and parallel edges.
An undirected graph is a graph whose edges are not
directed.
Example
4. Undirected
Graph
5. Directed Graph
6. Complete Graph
7. Connected
Graph
Example:
8. Disconnected
Graph
The above graph consists of two independent components
which are disconnected. Since it is not possible to visit from the
vertices of one component to the vertices of other components
therefore, it is a disconnected graph.
A Regular graph is a graph in which degree of all the vertices
is same.
Example:
9. Rigular Graph
Example:
12. Complete Bipartite
Graph
A weighted graph is a graph whose edges have been labeled
with some weights or numbers.
Example:
In the above graph, if path is a -> b -> c -> d -> e -> g then the
length of the path is 5 + 4 + 5 + 6 + 5 = 25.
A graph in which there are multiple edges between any pair of
vertices or there are edges from a vertex to itself (loop) is
called a multi – graph.
Example:
Thanks.