Search⌘ K

Graphs

Explore the foundational concepts of graphs, including vertices, edges, and the distinctions between simple and non-simple graphs. Understand key terms like adjacency, incidence, and degree, and learn how graphs are represented without assuming geometric properties.

A graph and its constituent parts

Imagine some dots. Let’s give these dots a name—vertices. Now imagine some lines, each connecting one dot to another. Let’s call these edges. This structure we just built in our mind is an example of what we want to conceive as a graph.

An example of a graph
An example of a graph

Of course, we want a more precise definition, so we know exactly what constitutes a graph and what doesn’t.

A graph GG consists of a non-empty set VV, whose elements are called vertices, and a set EE, whose elements are called edges, such that each edge is associated with one or two vertices called its end-vertices.

We use the notation G=(V,E)G = (V, E) to highlight that VV is the vertex set and EE ...