Skip to main content
← Back to Graph Theory samples
📈Graph Theory·15 min·Sample Lesson

Vertices and Edges: Mapping Connections with Graphs

In 1736, the people of Königsberg wondered whether a walker could cross all seven of their city's bridges exactly once without recrossing any. Mathematician Leonhard Euler solved the puzzle by turning the city into a simple picture made of dots and lines — and accidentally invented an entire branch of math called graph theory.

What You'll Learn

Define vertex and edge in your own words. Explain the story of the Seven Bridges of Königsberg. Calculate the degree of a vertex in a graph. Draw and analyze your own graph.

What Is a Graph?

A graph in math has nothing to do with bar charts or line graphs you make in class. Instead, it's a picture made of two simple parts: vertices, which are just points or dots (sometimes called nodes), and edges, which are the lines that connect two vertices together. Picture your five closest friends as five dots on a page. If you draw a line between every pair of friends who know each other, you've just built a graph.

The Seven Bridges of Königsberg

In the 1700s, the city of Königsberg (now Kaliningrad, Russia) had two islands connected to the mainland and to each other by seven bridges. Locals wondered: could you take a walk through the city and cross every single bridge exactly once, without recrossing any? Mathematician Leonhard Euler turned the city into a graph — each land area became a vertex, each bridge became an edge — and proved mathematically that it could not be done. His 1736 solution is considered the birth of graph theory.

Graphs Are Everywhere

Every time your phone's map app finds the fastest route, or a social media app suggests a 'friend of a friend,' it's using graph theory — treating streets or people as vertices and connections as edges.

Counting Degrees

Once you have a graph, one of the first things mathematicians measure is degree: how many edges touch a single vertex. In our Königsberg example, three of the four land areas had an odd degree (an odd number of bridges touching them). Euler proved that a path crossing every edge exactly once — now called an Euler path — can only exist if a graph has zero or exactly two vertices with an odd degree. Königsberg had four, so the walk was impossible.

Match each graph theory term to its meaning.

Terms

Vertex
Edge
Degree
Path

Definitions

A line connecting two vertices
A route that travels along edges from one vertex to another
The number of edges touching one vertex
A point or dot in a graph (also called a node)

Drag terms onto their definitions, or click a term then click a definition to match.

In 1736, mathematician Leonhard Euler studied the Seven Bridges of Königsberg. What did he prove?

A vertex in a friendship graph has 4 edges connected to it. What is the degree of that vertex?

🎯

Graph Your Own Friend Network

Draw a dot (vertex) for yourself and for 5 friends or family members. Draw a line (edge) between any two people who know each other directly. Count the degree of your own vertex by counting how many lines touch it. Then find which person in your graph has the highest degree, and explain in one sentence why that makes them the most 'connected' in your network.

Want to keep learning?

Sign up for free to access the full curriculum — all subjects, all ages.

Start Learning Free