Back to MATHEMATICS
Unit 3Lesson 5 2 min read

Introduction to Graph Theory

17/18

Learning Objectives

Define a graph, vertex, and edge.
Distinguish between directed and undirected graphs, and weighted and unweighted graphs.
Understand the concept of a graph traversal (e.g., Breadth-First Search).
Identify practical applications of graph theory.

The Mathematics of Networks

Graph theory is the study of graphs, which are mathematical structures used to model pairwise relations between objects. A graph in this context is not a plot of data, but a collection of nodes and connections.

Components of a Graph

A graph G consists of two sets:

Vertices (V): A set of nodes or points.
Edges (E): A set of connections between pairs of vertices.

Types of Graphs

Undirected Graph: Edges have no orientation. The connection between vertex A and B is the same as from B to A.
Directed Graph (Digraph): Edges have a direction, represented by arrows. The connection from A to B is distinct from the connection from B to A.
Unweighted Graph: Edges simply represent a connection.
Weighted Graph: Each edge is assigned a numerical value, or 'weight', which can represent cost, distance, or capacity.

Graph Traversal

A graph traversal is the process of visiting (checking and/or updating) each vertex in a graph.

Breadth-First Search (BFS): An algorithm for traversing a graph. It starts at a chosen 'root' vertex and explores all of the neighbor vertices at the present depth prior to moving on to the vertices at the next depth level. It explores the graph layer by layer.
Depth-First Search (DFS): An algorithm that explores as far as possible along each branch before backtracking.

Applications

Graph theory is an extremely useful tool for modeling networks and relationships in the real world.

Computer Science: Computer networks, social networks (Facebook, Twitter), the structure of the World Wide Web.
Logistics and Operations: Finding the shortest path for a delivery route (e.g., Google Maps), optimizing airline networks.
Biology: Modeling protein-protein interaction networks, gene regulatory networks.
Chemistry: Representing molecules, where atoms are vertices and bonds are edges.

Key Terms

Graph Theory
The study of graphs as a representation of pairwise relationships between objects.
Vertex
The fundamental unit of which graphs are formed. Also called a node or a point.
Edge
A connection between two vertices in a graph. Also called a link or a line.
Breadth-First Search (BFS)
A graph traversal algorithm that explores the neighbor nodes of the current depth first before moving to the next level nodes.
Weighted Graph
A graph in which each edge is given a numerical weight.

Check Your Understanding

1

In graph theory, what are the two fundamental components that make up a graph?

2

In a social network like Facebook, if vertices represent people, what do the edges represent? Would this be a directed or undirected graph?

3

What does the 'weight' on an edge in a weighted graph typically represent?