Introduction to Graphs
Explore the basics of graphs, including vertices, edges, and paths, and understand two common graph representations. Learn how graphs model real-world systems and perform fundamental graph operations efficiently.
We'll cover the following...
We'll cover the following...
Graphs overview
In this module, we study two representations of graphs and basic algorithms that use these representations.
Mathematically, a (directed) graph is a pair where is a set of vertices and is a set of ordered pairs of vertices called edges. An edge is directed from to ; is called the source of the edge and is called the target. A path in is a sequence of vertices ...