Describing graphs

We'll cover the following...

Here's one way to represent a social network:

widget

A line between the names of two people means that they know each other. If there's no line between two names, then the people do not know each other. The relationship "know each other" goes both ways; for example, because Audrey knows Gayle, that means Gayle knows Audrey.

This social network is a graph. The names are the vertices of the graph. (If you're talking about just one of the vertices, it's a vertex.) Each line is an edge, connecting two vertices. We denote an edge connecting vertices uu and vv by the pair (u,v)(u, v). Because the "know each other" relationship goes both ways, this graph is undirected. An undirected edge (u,v)(u, v) ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy