-
Course
- Core Tech
Working with Graph Algorithms in Python
This course focuses on how to represent a graph using three common classes of graph algorithms - the topological sort to sort vertices by precedence relationships, the shortest path algorithm, and finally the spanning tree algorithms.
What you'll learn
A graph is the underlying data structure behind social networks, maps, routing networks and logistics, and a whole range of applications that you commonly use today. In this course, Working with Graph Algorithms in Python, you'll learn different kinds of graphs, their use cases, and how they're represented in code. First, you'll dive into understanding the pros and cons of adjacency matrices, adjacency lists, adjacency sets, and know when you would choose one data structure over another. Next, you'll explore common graph algorithms, such as the topological sort, used to model dependencies in tasks, build components, and manage projects. Additionally, you'll cover how to find the shortest path in a graph, the core algorithm for mapping technologies. Lastly, you'll be introduced to spanning tree algorithms, which are used to find a path and covers all nodes with minimum cost, the fundamental algorithm behind figuring flight paths, and bus routes. By the end of this course, you'll have a better understanding of these principles and the necessary skills to implement them into simple, easy to follow Python code.
Table of contents
- Version Check | 16s
- Prerequisites and Course Overview | 2m 40s
- Modeling Relationships Using Graphs | 4m 12s
- Directed and Undirected Graphs | 1m 43s
- Undirected Graphs, Trees, and Forests | 4m 16s
- Directed Graphs and Precedence Relationships | 3m 9s
- The Adjacency Matrix | 3m 6s
- Demo: Representing a Graph as an Adjacency Matrix | 8m 26s
- The Adjacency List and the Adjacency Set | 3m 17s
- Demo: Representing a Graph as an Adjacency Set | 3m 53s
- Comparing Graph Data Structures | 3m 28s
- Breadth-first and Depth-first Graph Traversal | 5m 5s
- Demo: Implementing Breadth-first Traversal in Python | 3m 17s
- Demo: Implementing Depth-first Traversal in Python | 3m 19s
About the author
A problem solver at heart, Janani has a Masters degree from Stanford and worked for 7+ years at Google. She was one of the original engineers on Google Docs and holds 4 patents for its real-time collaborative editing framework.
More Courses by Janani