INTERACTIVE COURSE

Intermediate

42 Lessons

5h

Certificate of Completion

AI Explanations

AI Explanations

18 Playgrounds

5 Challenges

11 Quizzes

146 Illustrations

Takeaway Skills

Learn how graphs can be represented as data structures

Traverse graphs using search algorithms

Find the shortest paths in graphs

Find maximum matchings

Solve flow problems

Compute minimum spanning trees

Course Overview

Graph algorithms are the core of many real-world applications of computer science, such as automotive navigation or routing in computer networks. They’re also a common subject in coding interviews at top-tier tech companies. In this course, we’ll learn about the basic concepts of graph theory and how to represent graphs as data structures in code. We’ll study essential graph algorithms such as depth-first search or Dijkstra's algorithm to traverse graphs and find shortest paths. Finally, we’ll learn to s...

Course Content

1

Introduction

Introduction to Graph AlgorithmsDirected and Undirected GraphsGraph Terminology IGraph Terminology IIWeighted GraphsExcursion: Algorithm AnalysisQuiz: Introduction to Graph Algorithms

2

Graph Representations

Adjacency MatrixAdjacency ListRepresenting Weighted GraphsComparison of Graph RepresentationsQuiz: Graph RepresentationsChallenge: Converting Graph Representations

3

Graph Traversal

Depth-first Search (DFS)Implementation of DFSBreadth First Search (BFS)Implementation of BFSApplication 1: Topological SortApplication 2: Strongly Connected ComponentsImplementation of Kosaraju's AlgorithmQuiz: Graph TraversalChallenge: Bipartite Graph Check

4

Shortest Paths

Shortest Path ProblemsDijkstra's Algorithm for the SSSPImplementation of DijkstraFloyd-Warshall Algorithm for the ASSPImplementation of Floyd-WarshallQuiz: Shortest PathsChallenge: Bellmann-Ford

5

Spanning Trees

The Minimum Spanning Tree ProblemKruskal's AlgorithmImplementation of Kruskal's AlgorithmQuiz: Spanning TreesChallenge: Maximum Spanning Trees

6

Flow Problems

6 Lessons

7

Conclusion

1 Lesson

8

Appendix

1 Lesson

COURSE AUTHOR

How You'll Learn

You don’t get better at swimming by watching others. Coding is no different. Practice as you learn with live code environments inside your browser.

Videos are holding you back. Educative‘s interactive, text-based lessons accelerate learning — no setup, downloads, or alt-tabbing required.

Learn faster and smarter with adaptive AI tools embedded in every Educative course.

Built-in assessments let you test your skills. Completion certificates let you show them off.