Graph Theory37 sections · 1633 units
Open in Course

Vocabulary - The Edge

The "Lines"

The connections between vertices are called Edges. An edge connects Vertex uu to Vertex vv.

In the map example, a road between two cities is an edge. In social networks, a friendship is an edge. In chemistry, a bond between atoms is an edge.

Edges can carry extra information like weight (distance, cost, time) or direction. Problems often give you a list of edges: "There is an edge between 11 and 22, between 22 and 33." You will learn to store these efficiently. The number of edges EE affects algorithm speed.