Graph Data Structures: Representing Graphs Using Matrices, Lists, & Sets
Python 3.7 | Intermediate
- 8 videos | 52m 40s
- Includes Assessment
- Earns a Badge
In order to really understand how graphs work, it is important to know how they are implemented. There are multiple ways to represent graphs in code and each representation has its own advantages and disadvantages. In this course, you will implement graphs using three different representations - the adjacency matrix, the adjacency list, and the adjacency set. Learn how the adjacency matrix representation uses a square matrix to represent connections between the nodes of a graph and also edge weights. Next, explore how the adjacency list suffers from a major drawback: the same graph can have multiple representations. Finally, discover how the adjacency set representation has exactly one way in which a graph is represented. When you are finished with this course, you will be able to create and work with your own graph structures and optimize them for different purposes.
WHAT YOU WILL LEARN
discover the key concepts covered in this coursemodel graphs using a square adjacency matrix to represent nodes and edgesrepresent graphs using an adjacency matrix in Pythonrepresent different graph types - directed, undirected, weighted, and unweighted using adjacency matrices
model graphs using an adjacency list and adjacency set and compare the two representationsrepresent graphs using an adjacency list in Pythonrepresent graphs using an adjacency set in Pythonsummarize the key concepts covered in this course
IN THIS COURSE
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.Digital badges are yours to keep, forever.
YOU MIGHT ALSO LIKE
Journey Data Visualization Mastery