Overview
Test Series
A graph is a way to show how things are connected using points (called vertices) and lines (called edges). It helps us understand relationships between pairs of objects. Graphs are often used in subjects like math, computer science, and networks to show how different items are linked.
A graph is a simple way to show how things are connected to each other. It is made up of two main parts: vertices (also called nodes or points) and edges (also called links or lines). Each vertex represents an object or item, and each edge shows a connection or relationship between two of these objects.
Maths Notes Free PDFs
Topic | PDF Link |
---|---|
Class 12 Maths Important Topics Free Notes PDF | Download PDF |
Class 10, 11 Mathematics Study Notes | Download PDF |
Most Asked Maths Questions in Exams | Download PDF |
Increasing and Decreasing Function in Maths | Download PDF |
For example, if we think of cities as vertices, then roads connecting them can be edges. In a graph, we draw the vertices as dots or circles, and the edges as straight or curved lines connecting the dots.
Graphs are useful in many areas such as computer science, networking, social media, and transportation. They help us understand relationships, plan routes, or even find the shortest path between two points.
Graphs are studied in discrete mathematics.
Edges are also called nodes or points and vertices are also called link or line.
Here the points marked with numbers 1, 2 and so on are the vertices or nodes and the line joining these nodes are the edges.
In the above graph, we can see that the edges and vertices are labeled.
The various types of graphs in Graph Theory are as follows:
A graph whose all edges are directed by arrows is known as a directed graph. They are also known as digraphs.
In the above image, we can see a directed graph where all the edges are directed in a certain direction.
A graph whose edges are not directed by arrows is known as an undirected graph.
In the above image, we see an undirected graph as its edges are not marked by arrows.
A graph in which there are no edges between its vertices is known as a null graph. It is also called an empty graph. A null graph with n number of vertices is denoted by Nn.
In the above image, three different null graphs are shown.
A graph with only one vertex is known as a trivial graph.
In the above image, we see only one node and edges arising from it, thus it is a trivial graph.
A graph that is undirected and has no parallel edges or loops is known as a simple graph.
A simple graph with n vertices has the degree of every vertex is at most n-1.
In the above image, we can see the difference between a simple and not a simple graph.
A graph in which every pair of vertices is joined by only one edge is called a complete graph. It contains all the possible edges.
A complete graph with n number of vertices contains exactly
nC2edges and is represented by Kn.
In the above image we see that each vertex in the graph is connected with all the remaining vertices through exactly one edge hence both graphs are complete graphs.
A connected graph is a graph where we can visit from any one vertex to any other vertex. In a connected graph, there is at least one edge or path that exists between every pair of vertices.
In the above image we can traverse from any one vertex to any other vertex; it is a connected graph.
A disconnected graph is a graph in which no path exists between every pair of vertices.
In the above image we see disconnected graphs.
A Regular graph is a graph in which the degree of all the vertices is the same. If the degree of all the vertices is k, then it is called a k-regular graph.
In the above image all the vertices have degree 2 and thus it is a 2-regular graph.
A graph with n vertices and n edges forming a cycle of n with all its edges is known as cycle graph. Any graph containing at least one cycle in it is known as a cyclic graph.
In the above image the graph contains two cycles in it hence it is a cyclic graph.
A graph that does not contain any cycle in it is called an acyclic graph.
In the above image the graph does not contain any cycle and thus it is an acyclic graph.
A bipartite graph is a type of graph in which the vertex set can be partitioned into two sets such that the edges only go between sets and not within them.
In the above image we see a bipartite graph.
A complete bipartite graph is a type of bipartite graph in which each vertex in the first set is joined to each vertex in the second set by only one edge.
We can say that a complete bipartite graph is the combination of a complete graph and a bipartite graph.
In the above image we see a complete bipartite graph.
A graph whose edges have been labeled with some weights or numbers is known as a weighted graph. The length of a path in a weighted graph is the sum of the weights of all the edges labeled in the path.
In the above image we see a weighted graph where all the edges are labeled with a number.
A graph in which there is more than one edge between any pair of vertices is called a multi-graph. In other words, if there is a loop in a graph then it is a multi-graph.
In the above image vertex B and C are connected with two edges and similarly vertex E and F are connected with 3 edges. Hence it is a multi-graph.
A graph that cannot be drawn without at least one pair of its crossing edges is known as a non-planar graph.
In the above image a non-planar graph is shown.
A subgraph G of a graph is graph G’ whose vertex set and edge set subsets of the graph G. In simple words a graph is said to be a subgraph if it is a part of another graph.
In the above image the graphs
H1,H2,andH3are different subgraphs of graph G.
There are 2 different types of subgraph:
Vertex Disjoint in Graph Theory
A subgraph with no common vertex is called a vertex disjoint subgraph of the parent graph G. Since the vertices in a vertex disjoint graph cannot have a common edge, a vertex disjoint subgraph will always be an edge-disjoint subgraph.
In the above image the vertex disjoint subgraphs have no vertices in common between them.
Edge Disjoint in Graph Theory
A subgraph with no common edge is called an edge-disjoint subgraph of graph G.
On considering the above example we see that the edge-disjoint subgraphs have no edges in common between them but they may have common vertices.
The properties related to a graph are listed below.
In graph theory, some common terms like Trees, Degree, and Cycle help us describe and understand graphs better. Let’s go through them one by one:
Trees:
A tree is a type of graph that connects different points (called vertices) in such a way that there is only one path between any two points. It doesn’t have any loops or cycles. Trees were first introduced by a British mathematician named Arthur Cayley in 1857. In simple words, it’s a connected graph without any round paths or circles.
Degree:
The degree of a vertex means how many edges (lines) are connected to that point. It shows how many direct connections a point has. It is written as deg(v), where v is the vertex.
Cycle:
A cycle is a path in a graph that starts and ends at the same point and forms a loop. If no point (vertex) is repeated in that loop, except the first and last one, then it is called a simple cycle. A cycle graph is shown as Cn, where n is the number of points.
Bellman-Ford algorithm
Borůvka’s algorithm
Ford–Fulkerson algorithm
Edmonds–Karp algorithm and many more.
Example 1: Identify which one of the following is a directed graph and which one is an undirected graph and why.
Solution:
Example 2: Write the number of edges and vertices in the present in the following graph. Also, state where its is directed or undirected graph.
Solution: We have been given a graph where there are 5 vertices and 5 edges. Also we see that none of the edges are marked with arrows, hence it is an undirected graph.
If you want to score well in your maths exam then you are at the right place. Here you will get weekly test preparation, live classes, and exam series. Download the Testbook App now to prepare a smart and high-ranking strategy for the exam.
If you are checking Types of Graphs article, also check the related maths articles: |
|
Download the Testbook APP & Get Pass Pro Max FREE for 7 Days
Download the testbook app and unlock advanced analytics.