Types of Graphs in Discrete Mathematics: A Comprehensive Guide with Examples

Zachary Aug 05, 2026

Discrete mathematics, a branch that deals with abstract structures like sets, graphs, and sequences, is a fundamental component of computer science and mathematics. Graphs, in particular, serve as a powerful tool to model and analyze various problems, from social networks to circuit design.

Displacement-Time Graph | Physics Motion Graph Study Notes
Displacement-Time Graph | Physics Motion Graph Study Notes

In this article, we delve into the different types of graphs in discrete mathematics, providing examples to illustrate each concept. Let's embark on our journey, starting with the most basic type of graph.

What are the 6 types of graphs – Free Download
What are the 6 types of graphs – Free Download

Simple Graphs

Simple graphs, also known as undirected graphs, are the building blocks of graph theory. They consist of vertices (or nodes) connected by edges, with no self-loops or multiple edges between the same pair of vertices.

an image of graphs and functions in the form of lines with different slope intercepts
an image of graphs and functions in the form of lines with different slope intercepts

For instance, consider a social network. Each person (vertex) is connected to their friends (edges) but not to themselves (no self-loops), and there are no duplicate connections (no multiple edges).

Undirected Graphs

Complete Computer Science & Cybersecurity Infographics Bundle
Complete Computer Science & Cybersecurity Infographics Bundle

Undirected graphs are a type of simple graph where edges have no inherent direction. In our social network example, friendship is mutual; thus, it makes sense to represent it as an undirected graph.

Here's a simple representation in adjacency matrix form:

AliceBobCharlie
Alice011
Bob101
Charlie110
Sine & Cosine Graphs Made Easy 🌊 | Trigonometric Waves Explained
Sine & Cosine Graphs Made Easy 🌊 | Trigonometric Waves Explained

Directed Graphs

Directed graphs, on the other hand, consist of edges with a clear start and end point, forming a directed edge from the first vertex to the second. They are often used to model relationships that are not reciprocal.

For example, consider a 'follower' relationship on Twitter. If user A follows user B, it doesn't mean that B follows A. This can be naturally modeled as a directed graph. Here's how the adjacency matrix could look:

a notebook page with graphs and diagrams on it, including data structures in different colors
a notebook page with graphs and diagrams on it, including data structures in different colors
AliceBobCharlie
Alice010
Bob001
Charlie100

Advanced Graph Types

Master Graphs Fast – Pie, Bar, and Line Graph with Clear Examples
Master Graphs Fast – Pie, Bar, and Line Graph with Clear Examples
Bar Graph vs Histogram 📊 | Understand the Difference Easily
Bar Graph vs Histogram 📊 | Understand the Difference Easily
Normal Distribution vs t-Distribution 📈 | Key Differences Explained
Normal Distribution vs t-Distribution 📈 | Key Differences Explained
an info sheet with graphs and diagrams on it
an info sheet with graphs and diagrams on it
Statistics Notes, Statistics, Data Analysis, Neuroscience, Study Notes, Data Science, Economics, Psychology, Science
Statistics Notes, Statistics, Data Analysis, Neuroscience, Study Notes, Data Science, Economics, Psychology, Science
an info sheet with different statistics and graphs on it, including the data visual process
an info sheet with different statistics and graphs on it, including the data visual process
a poster with different types of test sheets
a poster with different types of test sheets
Basic Graph Types ( Read ) | Statistics
Basic Graph Types ( Read ) | Statistics
Data Science, Science
Data Science, Science
a poster with some calculations on it
a poster with some calculations on it

Beyond simple and directed graphs, discrete mathematics offers more complex graph types that capture specific scenarios.

We highlight two such graphs below, but the landscape of graph theory is vast, with many more types waiting to be explored.

Weighted Graphs

Weighted graphs assign a numerical value (weight) to each edge, denoting its 'cost' or 'strength'. This is particularly useful in scenario analysis, like mapping roads with distances (weights) between intersections.

Here's a simple example of a weighted graph:

  • Vertices: A, B, C
  • Edges: A-B (weight: 1), B-C (weight: 2), A-C (weight: 3)

Multigraphs

MultigraphsGeneral graphs permit multiple edges between the same pair of vertices, significantly expanding their versatility. They can capture different types of interactions, such as friendships and family relationships in a social network.

Consider the following multigraph where multiple edges represent different types of relationships:

  • Vertices: Alice, Bob, Charlie
  • Edges: Alice-Bob (friendship), Alice-Bob (collaboration), Bob-Charlie (friendship), Bob-Charlie (family)

Much like the diverse set of graphs in discrete mathematics, real-world problems exhibit multifaceted relationships and interactions. With a solid grasp of these graphs, you're better equipped to model and analyze these intricacies. Keep exploring, keep learning, and enjoy the journey into the fascinating world of graphs!