Interactive · 4 questions

Introduction to Graph Theory

So, what is graph theory. We'll first look at what a graph is :

Graph

The graph I'm talking about is not

or

It's

The concept of graph is very simple : It's a collection of

Choose all correct answers

Spot the idea in disguise

In a contest problem, this idea hides inside a situation you have not seen before. Learning to spot it is the real skill. These are real problems from the AMC 8, AMC 12 and AIME, the national math competitions for middle and high school students, each with a worked solution on LIVE by Po-Shen Loh.

Read · 2 min

A graph is a way of encoding relationships between objects in a mathematically rigorous way. That relationship could be between people, ideas, objects, or anything else that have relationships between them. These items in the graph are called vertices (or nodes) and the connections between them are called edges.

The set of vertices in a graph is denoted by the capital letter VV. The vertices are often denoted with subscripts v1,v2v_1, v_2 etc, where each vi∈Vv_i \in V.

The set of edges in a graph is denoted by the capital letter EE. Since an edge represents the connection between a pair of vertices viv_i and vjv_j, we often denote the edges as these pairings (v1,jvj)(v_1,jv_j), where a≠ba \neq b, since we don't allow edges from a vertex to itself. And since each edge is formed of a pair of elements from VV, we can say that E⊂V×VE\subset V\times V (where V×VV\times V is the set of pairings of elements in VV).

With all this in hand, we can say that a Graph G=(V,E)G=(V,E) is a specific arrangement of vertices VV and edges between those vertices EE. Conceptually, this means a graph is a set of points (vertices) with a bunch of lines (edges) drawn between the points (vertices).

We will now define some useful terms for describing aspects of graphs.

  • adjacent: v1∼v2v_1\sim v_2: Two vertices v1,v2v_1,v_2 are adjacent (written as v1∼v2v_1\sim v_2) in graph GG, if the graph has an edge between them. This can be denoted mathematically by saying (v1,v2)∈E(v_1,v_2)\in E.
  • neighbors: The neighbors of a vertex vv are all vertices adjacent to it. This is also described as the set vertices that vv has edges to.
  • degree: The degree of a vertex vv is the number of neighbors of the vv. This is also described as the number of vertices that vv is adjacent to.

A path is a sequence of vertices v0,v1,…,vkv_0,v_1,\dots,v_k such that vi∼vi+1v_i\sim v_{i+1} for all ii and no vertex is visited twice. A cycle is like a path but with vk∼v0v_k\sim v_0. Formally, a cycle is a sequence v0,…,vkv_0,\dots,v_k such that v0,…,vkv_0,\dots,v_k, v1,…,vk,v0v_1,\dots,v_k,v_0, v2,…,vk,v0,v1v_2,\dots,v_k,v_0,v_1, etc., all form paths. The length of a path is the number of edges (kk), and the length of a cycle is also the number edges (k+1k+1).

A graph is connected if for every two vertices there exists a path from one to the other. Otherwise, it's disconnected and thus consists of several connected components. The distance between any two vertices in a connected graph is the length of the shortest path from one to the other.

An orientation of a graph is an assignment of a direction to each vertex of a graph. A graph with an orientation is called a directed graph. They behave a lot differently from normal graphs: for example a normal graph can be connected but it can have an orientation in which it's disconnected.

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems